Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error starting ApplicationContext #32

Open
ArthurSilverberg opened this issue Aug 8, 2018 · 0 comments
Open

Error starting ApplicationContext #32

ArthurSilverberg opened this issue Aug 8, 2018 · 0 comments

Comments

@ArthurSilverberg
Copy link

.Initialising pipeline ...
13:09:39.913 [AWT-EventQueue-0] INFO gate.creole.CreoleRegisterImpl - CREOLE plugin loaded: file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/plugins/ANNIE/
.Initialisation completed ...
13:09:41.372 [AWT-EventQueue-0] DEBUG gate.util.persistence.PersistenceManager$URLHolder - CurrentPresistenceURL is file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/pipeline/uk_version/letters/passOne.xgapp created=file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/plugins/ANNIE/resources/gazetteer/uk_version/lists.def
13:09:42.798 [AWT-EventQueue-0] DEBUG gate.util.persistence.PersistenceManager$URLHolder - CurrentPresistenceURL is file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/pipeline/uk_version/letters/passOne.xgapp created=file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/plugins/ANNIE/resources/gazetteer/uk_version/lists2.def
13:09:43.042 [AWT-EventQueue-0] DEBUG gate.util.persistence.PersistenceManager$URLHolder - CurrentPresistenceURL is file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/pipeline/uk_version/letters/passOne.xgapp created=file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/rule-set/uk_version/Letters/FAX.jape
13:09:43.206 [AWT-EventQueue-0] DEBUG gate.util.persistence.PersistenceManager$URLHolder - CurrentPresistenceURL is file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/pipeline/uk_version/letters/passOne.xgapp created=file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/rule-set/uk_version/Letters/PHONE.jape
13:09:43.285 [AWT-EventQueue-0] DEBUG gate.util.persistence.PersistenceManager$URLHolder - CurrentPresistenceURL is file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/pipeline/uk_version/letters/passOne.xgapp created=file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/rule-set/uk_version/Letters/CITY-TVD.jape
13:09:43.363 [AWT-EventQueue-0] DEBUG gate.util.persistence.PersistenceManager$URLHolder - CurrentPresistenceURL is file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/pipeline/uk_version/letters/passOne.xgapp created=file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/rule-set/uk_version/Letters/COUNTRY.jape
13:09:43.481 [AWT-EventQueue-0] DEBUG gate.util.persistence.PersistenceManager$URLHolder - CurrentPresistenceURL is file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/pipeline/uk_version/letters/passOne.xgapp created=file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/rule-set/uk_version/Letters/COUNTY.jape
13:09:43.637 [AWT-EventQueue-0] DEBUG gate.util.persistence.PersistenceManager$URLHolder - CurrentPresistenceURL is file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/pipeline/uk_version/letters/passOne.xgapp created=file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/rule-set/uk_version/Letters/HOSPITAL.jape
13:09:43.715 [AWT-EventQueue-0] DEBUG gate.util.persistence.PersistenceManager$URLHolder - CurrentPresistenceURL is file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/pipeline/uk_version/letters/passOne.xgapp created=file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/rule-set/uk_version/Letters/PROFESSION.jape
13:09:43.799 [AWT-EventQueue-0] DEBUG gate.util.persistence.PersistenceManager$URLHolder - CurrentPresistenceURL is file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/pipeline/uk_version/letters/passOne.xgapp created=file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/rule-set/uk_version/Letters/DOB.jape
13:09:43.863 [AWT-EventQueue-0] DEBUG gate.util.persistence.PersistenceManager$URLHolder - CurrentPresistenceURL is file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/pipeline/uk_version/letters/passOne.xgapp created=file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/rule-set/uk_version/Letters/ID.jape
13:09:43.932 [AWT-EventQueue-0] DEBUG gate.util.persistence.PersistenceManager$URLHolder - CurrentPresistenceURL is file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/pipeline/uk_version/letters/passOne.xgapp created=file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/rule-set/uk_version/Letters/POSTCODE.jape
13:09:43.979 [AWT-EventQueue-0] DEBUG gate.util.persistence.PersistenceManager$URLHolder - CurrentPresistenceURL is file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/pipeline/uk_version/letters/passOne.xgapp created=file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/rule-set/uk_version/Letters/AGE.jape
13:09:44.042 [AWT-EventQueue-0] DEBUG gate.util.persistence.PersistenceManager$URLHolder - CurrentPresistenceURL is file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/pipeline/uk_version/letters/passOne.xgapp created=file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/rule-set/uk_version/Letters/STREET.jape
13:09:44.104 [AWT-EventQueue-0] DEBUG gate.util.persistence.PersistenceManager$URLHolder - CurrentPresistenceURL is file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/pipeline/uk_version/letters/passOne.xgapp created=file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/rule-set/uk_version/Letters/PATIENT.jape
13:09:44.198 [AWT-EventQueue-0] DEBUG gate.util.persistence.PersistenceManager$URLHolder - CurrentPresistenceURL is file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/pipeline/uk_version/letters/passOne.xgapp created=file:/C:/Users/GIGNWI_Ar208671/Desktop/texscrubber-feature-ner-integration/build/libs/GATE/rule-set/uk_version/Letters/MEDICALSTAFF.jape

. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////
:: Spring Boot :: (v1.5.1.RELEASE)

2018-08-08 13:09:46.032 INFO 16176 --- [pool-1-thread-1] o.s.boot.SpringApplication : Starting application on RQFW3LAP0000796 with PID 16176 (C:\Users\GIGNWI_Ar208671\Desktop\texscrubber-feature-ner-integration\build\libs\texscrubber-0.1.jar started by gignwi_Ar208671 in C:\Users\GIGNWI_Ar208671\Desktop\texscrubber-feature-ner-integration\build\libs)
2018-08-08 13:09:46.094 INFO 16176 --- [pool-1-thread-1] o.s.boot.SpringApplication : No active profile set, falling back to default profiles: default
2018-08-08 13:09:46.376 INFO 16176 --- [pool-1-thread-1] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@166115f0: startup date [Wed Aug 08 13:09:46 BST 2018]; root of context hierarchy
2018-08-08 13:09:48.239 WARN 16176 --- [pool-1-thread-1] o.s.c.a.ConfigurationClassEnhancer : @bean method ScopeConfiguration.stepScope is non-static and returns an object assignable to Spring's BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired, @resource and @PostConstruct within the method's declaring @configuration class. Add the 'static' modifier to this method to avoid these container lifecycle issues; see @bean javadoc for complete details.
2018-08-08 13:09:48.302 WARN 16176 --- [pool-1-thread-1] o.s.c.a.ConfigurationClassEnhancer : @bean method ScopeConfiguration.jobScope is non-static and returns an object assignable to Spring's BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired, @resource and @PostConstruct within the method's declaring @configuration class. Add the 'static' modifier to this method to avoid these container lifecycle issues; see @bean javadoc for complete details.
2018-08-08 13:09:48.925 WARN 16176 --- [pool-1-thread-1] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reader' defined in org.healtex.batch.BatchConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.batch.item.file.MultiResourceItemReader]: Factory method 'reader' threw exception; nested exception is java.lang.NullPointerException
2018-08-08 13:09:48.982 INFO 16176 --- [pool-1-thread-1] utoConfigurationReportLoggingInitializer :

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2018-08-08 13:09:49.013 ERROR 16176 --- [pool-1-thread-1] o.s.boot.SpringApplication : Application startup failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reader' defined in org.healtex.batch.BatchConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.batch.item.file.MultiResourceItemReader]: Factory method 'reader' threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173) ~[spring-beans-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067) ~[spring-beans-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) ~[spring-beans-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) ~[spring-beans-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866) ~[spring-context-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542) ~[spring-context-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737) ~[spring-boot-1.5.1.RELEASE.jar!/:1.5.1.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370) ~[spring-boot-1.5.1.RELEASE.jar!/:1.5.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) ~[spring-boot-1.5.1.RELEASE.jar!/:1.5.1.RELEASE]
at org.healtex.gui.RunBatch.doInBackground(RunBatch.java:91) [classes!/:0.1]
at org.healtex.gui.RunBatch.doInBackground(RunBatch.java:41) [classes!/:0.1]
at java.desktop/javax.swing.SwingWorker$1.call(Unknown Source) [na:na]
at java.base/java.util.concurrent.FutureTask.run(Unknown Source) [na:na]
at java.desktop/javax.swing.SwingWorker.run(Unknown Source) [na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:na]
at java.base/java.lang.Thread.run(Unknown Source) [na:na]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.batch.item.file.MultiResourceItemReader]: Factory method 'reader' threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[spring-beans-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[spring-beans-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
... 22 common frames omitted
Caused by: java.lang.NullPointerException: null
at org.healtex.batch.BatchConfiguration.reader(BatchConfiguration.java:64) ~[classes!/:0.1]
at org.healtex.batch.BatchConfiguration$$EnhancerBySpringCGLIB$$12246099.CGLIB$reader$0() ~[classes!/:0.1]
at org.healtex.batch.BatchConfiguration$$EnhancerBySpringCGLIB$$12246099$$FastClassBySpringCGLIB$$bef9288d.invoke() ~[classes!/:0.1]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356) ~[spring-context-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.healtex.batch.BatchConfiguration$$EnhancerBySpringCGLIB$$12246099.reader() ~[classes!/:0.1]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[na:na]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ~[spring-beans-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
... 23 common frames omitted

.Initialising pipeline ...
.Initialisation completed ...

. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////
:: Spring Boot :: (v1.5.1.RELEASE)

2018-08-08 13:10:22.957 INFO 16176 --- [pool-1-thread-2] o.s.boot.SpringApplication : Starting application on RQFW3LAP0000796 with PID 16176 (C:\Users\GIGNWI_Ar208671\Desktop\texscrubber-feature-ner-integration\build\libs\texscrubber-0.1.jar started by gignwi_Ar208671 in C:\Users\GIGNWI_Ar208671\Desktop\texscrubber-feature-ner-integration\build\libs)
2018-08-08 13:10:22.988 INFO 16176 --- [pool-1-thread-2] o.s.boot.SpringApplication : No active profile set, falling back to default profiles: default
2018-08-08 13:10:23.003 INFO 16176 --- [pool-1-thread-2] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@68f6a0b8: startup date [Wed Aug 08 13:10:23 BST 2018]; root of context hierarchy
2018-08-08 13:10:23.662 WARN 16176 --- [pool-1-thread-2] o.s.c.a.ConfigurationClassEnhancer : @bean method ScopeConfiguration.stepScope is non-static and returns an object assignable to Spring's BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired, @resource and @PostConstruct within the method's declaring @configuration class. Add the 'static' modifier to this method to avoid these container lifecycle issues; see @bean javadoc for complete details.
2018-08-08 13:10:23.694 WARN 16176 --- [pool-1-thread-2] o.s.c.a.ConfigurationClassEnhancer : @bean method ScopeConfiguration.jobScope is non-static and returns an object assignable to Spring's BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired, @resource and @PostConstruct within the method's declaring @configuration class. Add the 'static' modifier to this method to avoid these container lifecycle issues; see @bean javadoc for complete details.

.Initialising pipeline ...
.Initialisation completed ...
2018-08-08 13:10:27.504 INFO 16176 --- [pool-1-thread-2] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2018-08-08 13:10:27.546 INFO 16176 --- [pool-1-thread-2] o.s.b.a.b.JobLauncherCommandLineRunner : Running default command line with: [--inputDir=C:\Users\GIGNWI_Ar208671\Documents\Mitre\raw_text, --workingDir=C:\Users\GIGNWI_Ar208671\Documents\Mitre\cleansed_text\temp, --outputDir=C:\Users\GIGNWI_Ar208671\Documents\Mitre\cleansed_text]
2018-08-08 13:10:28.460 INFO 16176 --- [pool-1-thread-2] o.s.b.c.r.s.JobRepositoryFactoryBean : No database type set, using meta data indicating: HSQL
2018-08-08 13:10:28.663 INFO 16176 --- [pool-1-thread-2] o.s.b.c.l.support.SimpleJobLauncher : No TaskExecutor has been set, defaulting to synchronous executor.
2018-08-08 13:10:28.788 INFO 16176 --- [pool-1-thread-2] o.s.b.f.xml.XmlBeanDefinitionReader : Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
2018-08-08 13:10:29.060 INFO 16176 --- [pool-1-thread-2] o.s.jdbc.support.SQLErrorCodesFactory : SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase, Hana]
2018-08-08 13:10:29.106 INFO 16176 --- [pool-1-thread-2] utoConfigurationReportLoggingInitializer :

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2018-08-08 13:10:29.169 ERROR 16176 --- [pool-1-thread-2] o.s.boot.SpringApplication : Application startup failed

java.lang.IllegalStateException: Failed to execute CommandLineRunner
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:779) ~[spring-boot-1.5.1.RELEASE.jar!/:1.5.1.RELEASE]
at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:760) ~[spring-boot-1.5.1.RELEASE.jar!/:1.5.1.RELEASE]
at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:747) ~[spring-boot-1.5.1.RELEASE.jar!/:1.5.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-1.5.1.RELEASE.jar!/:1.5.1.RELEASE]
at org.healtex.gui.RunBatch.doInBackground(RunBatch.java:91) [classes!/:0.1]
at org.healtex.gui.RunBatch.doInBackground(RunBatch.java:41) [classes!/:0.1]
at java.desktop/javax.swing.SwingWorker$1.call(Unknown Source) [na:na]
at java.base/java.util.concurrent.FutureTask.run(Unknown Source) [na:na]
at java.desktop/javax.swing.SwingWorker.run(Unknown Source) [na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:na]
at java.base/java.lang.Thread.run(Unknown Source) [na:na]
Caused by: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [SELECT JOB_INSTANCE_ID, JOB_NAME from BATCH_JOB_INSTANCE where JOB_NAME = ? order by JOB_INSTANCE_ID desc]; nested exception is java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: BATCH_JOB_INSTANCE
at org.springframework.jdbc.support.SQLExceptionSubclassTranslator.doTranslate(SQLExceptionSubclassTranslator.java:91) ~[spring-jdbc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73) ~[spring-jdbc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81) ~[spring-jdbc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:649) ~[spring-jdbc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:684) ~[spring-jdbc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:716) ~[spring-jdbc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:726) ~[spring-jdbc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.batch.core.repository.dao.JdbcJobInstanceDao.getJobInstances(JdbcJobInstanceDao.java:230) ~[spring-batch-core-3.0.7.RELEASE.jar!/:3.0.7.RELEASE]
at org.springframework.batch.core.explore.support.SimpleJobExplorer.getJobInstances(SimpleJobExplorer.java:173) ~[spring-batch-core-3.0.7.RELEASE.jar!/:3.0.7.RELEASE]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[na:na]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) ~[spring-aop-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) ~[spring-aop-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.batch.core.configuration.annotation.SimpleBatchConfiguration$PassthruAdvice.invoke(SimpleBatchConfiguration.java:127) ~[spring-batch-core-3.0.7.RELEASE.jar!/:3.0.7.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213) ~[spring-aop-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at com.sun.proxy.$Proxy57.getJobInstances(Unknown Source) ~[na:na]
at org.springframework.boot.autoconfigure.batch.JobLauncherCommandLineRunner.getNextJobParameters(JobLauncherCommandLineRunner.java:131) ~[spring-boot-autoconfigure-1.5.1.RELEASE.jar!/:1.5.1.RELEASE]
at org.springframework.boot.autoconfigure.batch.JobLauncherCommandLineRunner.execute(JobLauncherCommandLineRunner.java:212) ~[spring-boot-autoconfigure-1.5.1.RELEASE.jar!/:1.5.1.RELEASE]
at org.springframework.boot.autoconfigure.batch.JobLauncherCommandLineRunner.executeLocalJobs(JobLauncherCommandLineRunner.java:231) ~[spring-boot-autoconfigure-1.5.1.RELEASE.jar!/:1.5.1.RELEASE]
at org.springframework.boot.autoconfigure.batch.JobLauncherCommandLineRunner.launchJobFromProperties(JobLauncherCommandLineRunner.java:123) ~[spring-boot-autoconfigure-1.5.1.RELEASE.jar!/:1.5.1.RELEASE]
at org.springframework.boot.autoconfigure.batch.JobLauncherCommandLineRunner.run(JobLauncherCommandLineRunner.java:117) ~[spring-boot-autoconfigure-1.5.1.RELEASE.jar!/:1.5.1.RELEASE]
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:776) ~[spring-boot-1.5.1.RELEASE.jar!/:1.5.1.RELEASE]
... 11 common frames omitted
Caused by: java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: BATCH_JOB_INSTANCE
at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.jdbc.JDBCPreparedStatement.(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.jdbc.JDBCConnection.prepareStatement(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[na:na]
at org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126) ~[tomcat-jdbc-8.5.11.jar!/:na]
at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:108) ~[tomcat-jdbc-8.5.11.jar!/:na]
at org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:81) ~[tomcat-jdbc-8.5.11.jar!/:na]
at com.sun.proxy.$Proxy65.prepareStatement(Unknown Source) ~[na:na]
at org.springframework.jdbc.core.JdbcTemplate$SimplePreparedStatementCreator.createPreparedStatement(JdbcTemplate.java:1521) ~[spring-jdbc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:627) ~[spring-jdbc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
... 33 common frames omitted
Caused by: org.hsqldb.HsqlException: user lacks privilege or object not found: BATCH_JOB_INSTANCE
at org.hsqldb.error.Error.error(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.error.Error.error(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.ParserDQL.readTableName(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.ParserDQL.readTableOrSubquery(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.ParserDQL.XreadTableReference(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.ParserDQL.XreadFromClause(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.ParserDQL.XreadTableExpression(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.ParserDQL.XreadQuerySpecification(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.ParserDQL.XreadSimpleTable(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.ParserDQL.XreadQueryPrimary(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.ParserDQL.XreadQueryTerm(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.ParserDQL.XreadQueryExpressionBody(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.ParserDQL.XreadQueryExpression(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.ParserDQL.compileCursorSpecification(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.ParserCommand.compilePart(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.ParserCommand.compileStatement(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.Session.compileStatement(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.StatementManager.compile(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
at org.hsqldb.Session.execute(Unknown Source) ~[hsqldb-2.3.3.jar!/:2.3.3]
... 45 common frames omitted

2018-08-08 13:10:29.602 INFO 16176 --- [pool-1-thread-2] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@68f6a0b8: startup date [Wed Aug 08 13:10:23 BST 2018]; root of context hierarchy
2018-08-08 13:10:29.602 INFO 16176 --- [pool-1-thread-2] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant