Skip to content

Instantly share code, notes, and snippets.

@jbq
Created October 12, 2023 12:38
Show Gist options
  • Save jbq/46b4d88499c48696aee6be6d49a67d51 to your computer and use it in GitHub Desktop.
Save jbq/46b4d88499c48696aee6be6d49a67d51 to your computer and use it in GitHub Desktop.
java.lang.NullPointerException: date must not be null
at java.base/java.util.Objects.requireNonNull(Objects.java:235) ~[na:na]
at java.base/java.util.Calendar.setTime(Calendar.java:1792) ~[na:na]
at java.base/java.text.SimpleDateFormat.format(SimpleDateFormat.java:978) ~[na:na]
at java.base/java.text.SimpleDateFormat.format(SimpleDateFormat.java:971) ~[na:na]
at java.base/java.text.DateFormat.format(DateFormat.java:378) ~[na:na]
at com.chemra.ixcalcpro.entities.project.Project.toString(Project.java:82) ~[classes!/:0.0.1-SNAPSHOT]
at java.base/java.util.Formatter$FormatSpecifier.printString(Formatter.java:3056) ~[na:na]
at java.base/java.util.Formatter$FormatSpecifier.print(Formatter.java:2933) ~[na:na]
at java.base/java.util.Formatter.format(Formatter.java:2689) ~[na:na]
at java.base/java.util.Formatter.format(Formatter.java:2625) ~[na:na]
at java.base/java.lang.String.format(String.java:4145) ~[na:na]
at org.jboss.logging.Slf4jLocationAwareLogger.doLogf(Slf4jLocationAwareLogger.java:81) ~[jboss-logging-3.5.0.Final.jar!/:3.5.0.Final]
at org.jboss.logging.Logger.debugf(Logger.java:739) ~[jboss-logging-3.5.0.Final.jar!/:3.5.0.Final]
at org.hibernate.sql.results.graph.entity.AbstractEntityInitializer.instantiateEntity(AbstractEntityInitializer.java:708) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.sql.results.graph.entity.AbstractEntityInitializer.resolveEntityInstance(AbstractEntityInitializer.java:699) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Fin
al]
at org.hibernate.sql.results.graph.entity.AbstractEntityInitializer.resolveInstance(AbstractEntityInitializer.java:666) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.sql.results.graph.entity.AbstractEntityInitializer.initializeInstance(AbstractEntityInitializer.java:775) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.sql.results.internal.StandardRowReader.coordinateInitializers(StandardRowReader.java:152) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.sql.results.internal.StandardRowReader.readRow(StandardRowReader.java:97) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.sql.results.spi.ListResultsConsumer.consume(ListResultsConsumer.java:178) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.sql.results.spi.ListResultsConsumer.consume(ListResultsConsumer.java:33) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.sql.exec.internal.JdbcSelectExecutorStandardImpl.doExecuteQuery(JdbcSelectExecutorStandardImpl.java:443) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.sql.exec.internal.JdbcSelectExecutorStandardImpl.executeQuery(JdbcSelectExecutorStandardImpl.java:166) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.sql.exec.internal.JdbcSelectExecutorStandardImpl.list(JdbcSelectExecutorStandardImpl.java:91) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.sql.exec.spi.JdbcSelectExecutor.list(JdbcSelectExecutor.java:31) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.loader.ast.internal.SingleIdLoadPlan.load(SingleIdLoadPlan.java:140) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.loader.ast.internal.SingleIdLoadPlan.load(SingleIdLoadPlan.java:110) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.loader.ast.internal.SingleIdEntityLoaderStandardImpl.load(SingleIdEntityLoaderStandardImpl.java:72) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.persister.entity.AbstractEntityPersister.doLoad(AbstractEntityPersister.java:4416) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:4406) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:590) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:563) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:221) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.event.internal.DefaultLoadEventListener.doOnLoad(DefaultLoadEventListener.java:105) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:72) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:118) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.internal.SessionImpl.fireLoadNoChecks(SessionImpl.java:1244) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.internal.SessionImpl.immediateLoad(SessionImpl.java:1047) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:173) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:309) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor.intercept(ByteBuddyInterceptor.java:44) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at org.hibernate.proxy.ProxyConfiguration$InterceptorDispatcher.intercept(ProxyConfiguration.java:102) ~[hibernate-core-6.1.7.Final.jar!/:6.1.7.Final]
at com.chemra.ixcalcpro.entities.project.Project$HibernateProxy$DzN9xxYt.getInputWater(Unknown Source) ~[classes!/:0.0.1-SNAPSHOT]
at com.chemra.ixcalcpro.services.water.InputWaterServiceImpl.computeInputWater(InputWaterServiceImpl.java:59) ~[classes!/:0.0.1-SNAPSHOT]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343) ~[spring-aop-6.0.7.jar!/:6.0.7]
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196) ~[spring-aop-6.0.7.jar!/:6.0.7]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-6.0.7.jar!/:6.0.7]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750) ~[spring-aop-6.0.7.jar!/:6.0.7]
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123) ~[spring-tx-6.0.7.jar!/:6.0.7]
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:391) ~[spring-tx-6.0.7.jar!/:6.0.7]
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119) ~[spring-tx-6.0.7.jar!/:6.0.7]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184) ~[spring-aop-6.0.7.jar!/:6.0.7]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750) ~[spring-aop-6.0.7.jar!/:6.0.7]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:702) ~[spring-aop-6.0.7.jar!/:6.0.7]
at com.chemra.ixcalcpro.services.water.InputWaterServiceImpl$$SpringCGLIB$$0.computeInputWater(<generated>) ~[classes!/:0.0.1-SNAPSHOT]
at com.chemra.ixcalcpro.controllers.workflow.ProjectWorkflowController.inputWaterForm(ProjectWorkflowController.java:168) ~[classes!/:0.0.1-SNAPSHOT]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment