Home > Back-end >  @ PostConstruct cause the program start to null pointer, the program startup initialization time nee
@ PostConstruct cause the program start to null pointer, the program startup initialization time nee

Time:09-29

14:35:20. 616/restartedMain ERROR O.S.B.S pringApplication - [reportFailure, 771] - Application startup failed
Org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'machineInit' : the Invocation of the init method failed; Nested exception is org. Mybatis. Spring. MyBatisSystemException: nested exception is org. Apache. Ibatis. Exceptions. PersistenceException:
# # # Error querying the database. Cause: Java. Lang. NullPointerException
# # # Cause: Java. Lang. NullPointerException
The at org. Springframework. Beans. Factory. The annotation. InitDestroyAnnotationBeanPostProcessor. PostProcessBeforeInitialization (InitDestroyAnnotationBeanPostProcessor. Java: 137)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. ApplyBeanPostProcessorsBeforeInitialization (AbstractAutowireCapableBeanFactory. Java: 409)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. InitializeBean (AbstractAutowireCapableBeanFactory. Java: 1620)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. DoCreateBean (AbstractAutowireCapableBeanFactory. Java: 555)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. CreateBean (AbstractAutowireCapableBeanFactory. Java: 483)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory $1. GetObject (AbstractBeanFactory. Java: 306)
The at org. Springframework. Beans. Factory. Support. DefaultSingletonBeanRegistry. GetSingleton (DefaultSingletonBeanRegistry. Java: 230)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. DoGetBean (AbstractBeanFactory. Java: 302)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. GetBean (AbstractBeanFactory. Java: 197)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. DoGetBean (AbstractBeanFactory. Java: 296)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. GetBean (AbstractBeanFactory. Java: 197)
The at org. Springframework. Beans. Factory. Support. DefaultListableBeanFactory. PreInstantiateSingletons (DefaultListableBeanFactory. Java: 761)
The at org. Springframework. Context. Support. AbstractApplicationContext. FinishBeanFactoryInitialization (AbstractApplicationContext. Java: 867)
The at org. Springframework. Context. Support. AbstractApplicationContext. Refresh (AbstractApplicationContext. Java: 543)
The at org. Springframework. Boot. Context. Embedded. EmbeddedWebApplicationContext. Refresh (EmbeddedWebApplicationContext. Java: 122)
The at org. Springframework. Boot. SpringApplication. Refresh (SpringApplication. Java: 693)
The at org. Springframework. Boot. SpringApplication. RefreshContext (SpringApplication. Java: 360)
The at org. Springframework. Boot. SpringApplication. Run (SpringApplication. Java: 303)
The at org. Springframework. Boot. Builder. SpringApplicationBuilder. Run (SpringApplicationBuilder. Java: 134)
At com. HZWQ. Micro. JsApplication. Main (JsApplication. Java: 26)
At sun. Reflect. NativeMethodAccessorImpl. Invoke0 (Native Method)
At sun. Reflect. NativeMethodAccessorImpl. Invoke (NativeMethodAccessorImpl. Java: 62)
At sun. Reflect. DelegatingMethodAccessorImpl. Invoke (43) DelegatingMethodAccessorImpl. Java:
The at Java. Lang. Reflect. Method. Invoke (498) Method. The Java:
The at org. Springframework. Boot. Devtools. Restart. RestartLauncher. Run (49) RestartLauncher. Java:
Under Caused by: org. Mybatis. Spring. MyBatisSystemException: nested exception is org. Apache. Ibatis. Exceptions. PersistenceException:
# # # Error querying the database. Cause: Java. Lang. NullPointerException
# # # Cause: Java. Lang. NullPointerException
The at org. Mybatis. Spring. MyBatisExceptionTranslator. TranslateExceptionIfPossible (MyBatisExceptionTranslator. Java: 77)
The at org. Mybatis. Spring. SqlSessionTemplate $SqlSessionInterceptor. Invoke (SqlSessionTemplate. Java: 446)
At com. Sun. Proxy. $Proxy116. SelectList (Unknown Source)
The at org. Mybatis. Spring. SqlSessionTemplate. SelectList (SqlSessionTemplate. Java: 230)
The at org. Apache. Ibatis. Binding. MapperMethod. ExecuteForMany (MapperMethod. Java: 137)
The at org. Apache. Ibatis. Binding. MapperMethod. Execute (MapperMethod. Java: 75)
The at org. Apache. Ibatis. Binding. MapperProxy. Invoke (MapperProxy. Java: 59)
At com. Sun. Proxy. $Proxy151. GetSysPara (Unknown Source)
At com.hzwq.micro.xcjs.config.Com monManager. GetSysPara (CommonManager. Java: 107)
The at com.hzwq.micro.common.util.Com monUtil. GetSysPara (CommonUtil. Java: 121)
At com.hzwq.micro.com, mon. Util. MachineInit. Init (MachineInit. Java: 24)
At sun. Reflect. NativeMethodAccessorImpl. Invoke0 (Native Method)
At sun. Reflect. NativeMethodAccessorImpl. Invoke (NativeMethodAccessorImpl. Java: 62)
At sun. Reflect. DelegatingMethodAccessorImpl. Invoke (43) DelegatingMethodAccessorImpl. Java:
The at Java. Lang. Reflect. Method. Invoke (498) Method. The Java:
The at org. Springframework. Beans. Factory. The annotation. InitDestroyAnnotationBeanPostProcessor $LifecycleElement. Invoke (InitDestroyAnnotationBeanPostProcessor. Java: 366)
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related