I'm trying to deploy my springboot application in heroku. This application contains a spriboot back end and ionic framework for front end. All these are packaged in a war file, which is being deployed successfully in my local tomcat and also it works like a charm. When I try to deploy this on heroku, on deploying the Springboot it crashes with the following error:
2019-06-02T10:14:27.864513+00:00 app[web.1]: :: Spring Boot ::
(v2.1.5.RELEASE) 2019-06-02T10:14:27.864559+00:00 app[web.1]:
2019-06-02T10:14:28.086513+00:00 app[web.1]: 2019-06-02 10:14:28.081
INFO 4 --- [ost-startStop-1] c.m.g.movierama.MovieramaApplication
: Starting MovieramaApplication v0.0.1-SNAPSHOT on
5afc3cd9-f86f-466f-9b86-9f66bc5beae7 with PID 4
(/app/target/tomcat.12290/webapps/expanded/WEB-INF/classes started by
u40978 in /app) 2019-06-02T10:14:28.088166+00:00 app[web.1]:
2019-06-02 10:14:28.087 INFO 4 --- [ost-startStop-1]
c.m.g.movierama.MovieramaApplication : No active profile set,
falling back to default profiles: default
2019-06-02T10:14:29.523921+00:00 app[web.1]: 2019-06-02 10:14:29.521
INFO 4 --- [ost-startStop-1] .s.d.r.c.RepositoryConfigurationDelegate
: Bootstrapping Spring Data repositories in DEFAULT mode.
2019-06-02T10:14:29.562415+00:00 app[web.1]: 2019-06-02 10:14:29.562
INFO 4 --- [ost-startStop-1] .s.d.r.c.RepositoryConfigurationDelegate
: Finished Spring Data repository scanning in 26ms. Found 0 repository
interfaces. 2019-06-02T10:14:30.060948+00:00 app[web.1]: 2019-06-02
10:14:30.060 INFO 4 --- [ost-startStop-1]
faultConfiguringBeanFactoryPostProcessor : No bean named
'errorChannel' has been explicitly defined. Therefore, a default
PublishSubscribeChannel will be created.
2019-06-02T10:14:30.068963+00:00 app[web.1]: 2019-06-02 10:14:30.068
INFO 4 --- [ost-startStop-1] faultConfiguringBeanFactoryPostProcessor
: No bean named 'taskScheduler' has been explicitly defined.
Therefore, a default ThreadPoolTaskScheduler will be created.
2019-06-02T10:14:30.075260+00:00 app[web.1]: 2019-06-02 10:14:30.075
INFO 4 --- [ost-startStop-1] faultConfiguringBeanFactoryPostProcessor
: No bean named 'integrationHeaderChannelRegistry' has been explicitly
defined. Therefore, a default DefaultHeaderChannelRegistry will be
created. 2019-06-02T10:14:30.287747+00:00 app[web.1]: 2019-06-02
10:14:30.287 INFO 4 --- [ost-startStop-1]
trationDelegate$BeanPostProcessorChecker : Bean
'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration'
of type
[org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$c5e20e2a]
is not eligible for getting processed by all BeanPostProcessors (for
example: not eligible for auto-proxying)
2019-06-02T10:14:30.363779+00:00 app[web.1]: 2019-06-02 10:14:30.363
INFO 4 --- [ost-startStop-1] trationDelegate$BeanPostProcessorChecker
: Bean
'org.springframework.integration.config.IntegrationManagementConfiguration'
of type
[org.springframework.integration.config.IntegrationManagementConfiguration$$EnhancerBySpringCGLIB$$30d3c959]
is not eligible for getting processed by all BeanPostProcessors (for
example: not eligible for auto-proxying)
2019-06-02T10:14:30.399455+00:00 app[web.1]: 2019-06-02 10:14:30.399
INFO 4 --- [ost-startStop-1] trationDelegate$BeanPostProcessorChecker
: Bean 'integrationDisposableAutoCreatedBeans' of type
[org.springframework.integration.config.annotation.Disposables] is not
eligible for getting processed by all BeanPostProcessors (for example:
not eligible for auto-proxying) 2019-06-02T10:14:30.471157+00:00
app[web.1]: 2019-06-02 10:14:30.470 INFO 4 --- [ost-startStop-1]
o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring
embedded WebApplicationContext 2019-06-02T10:14:30.471413+00:00
app[web.1]: 2019-06-02 10:14:30.471 INFO 4 --- [ost-startStop-1]
o.s.web.context.ContextLoader : Root WebApplicationContext:
initialization completed in 2334 ms 2019-06-02T10:14:31.100545+00:00
app[web.1]: 2019-06-02 10:14:31.100 INFO 4 --- [ost-startStop-1]
com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2019-06-02T10:14:31.767558+00:00 app[web.1]: 2019-06-02 10:14:31.767
INFO 4 --- [ost-startStop-1] com.zaxxer.hikari.HikariDataSource
: HikariPool-1 - Start completed. 2019-06-02T10:14:31.942093+00:00
app[web.1]: 2019-06-02 10:14:31.940 INFO 4 --- [ost-startStop-1]
o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing
PersistenceUnitInfo [ 2019-06-02T10:14:31.942096+00:00 app[web.1]:
name: default 2019-06-02T10:14:31.942098+00:00 app[web.1]: ...]
2019-06-02T10:14:32.216822+00:00 app[web.1]: 2019-06-02 10:14:32.216
INFO 4 --- [ost-startStop-1] org.hibernate.Version
: HHH000412: Hibernate Core {5.3.10.Final}
2019-06-02T10:14:32.223817+00:00 app[web.1]: 2019-06-02 10:14:32.223
INFO 4 --- [ost-startStop-1] org.hibernate.cfg.Environment
: HHH000206: hibernate.properties not found
2019-06-02T10:14:32.694566+00:00 app[web.1]: 2019-06-02 10:14:32.694
INFO 4 --- [ost-startStop-1] o.hibernate.annotations.common.Version
: HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
2019-06-02T10:14:33.118437+00:00 app[web.1]: 2019-06-02 10:14:33.118
INFO 4 --- [ost-startStop-1] org.hibernate.dialect.Dialect
: HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
2019-06-02T10:14:34.600268+00:00 app[web.1]: 2019-06-02 10:14:34.599
INFO 4 --- [ost-startStop-1] j.LocalContainerEntityManagerFactoryBean
: Initialized JPA EntityManagerFactory for persistence unit 'default'
2019-06-02T10:14:35.687724+00:00 heroku[web.1]: State changed from up
to crashed 2019-06-02T10:14:35.405611+00:00 app[web.1]: 2019-06-02
10:14:35.405 WARN 4 --- [ost-startStop-1]
ConfigServletWebServerApplicationContext : Exception encountered
during context initialization - cancelling refresh attempt:
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'requestMappingHandlerAdapter' defined in
class path resource
[org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]:
Bean instantiation via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to
instantiate
[org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]:
Factory method 'requestMappingHandlerAdapter' threw exception; nested
exception is java.lang.BootstrapMethodError:
java.lang.IllegalAccessError: no such method:
io.reactivex.Flowable.fromPublisher(Publisher)Flowable/invokeStatic
2019-06-02T10:14:35.409906+00:00 app[web.1]: 2019-06-02 10:14:35.408
INFO 4 --- [ost-startStop-1] j.LocalContainerEntityManagerFactoryBean
: Closing JPA EntityManagerFactory for persistence unit 'default'
2019-06-02T10:14:35.415771+00:00 app[web.1]: 2019-06-02 10:14:35.415
INFO 4 --- [ost-startStop-1] com.zaxxer.hikari.HikariDataSource
: HikariPool-1 - Shutdown initiated...
2019-06-02T10:14:35.449333+00:00 app[web.1]: 2019-06-02 10:14:35.449
INFO 4 --- [ost-startStop-1] com.zaxxer.hikari.HikariDataSource
: HikariPool-1 - Shutdown completed. 2019-06-02T10:14:35.460889+00:00
app[web.1]: 2019-06-02 10:14:35.460 INFO 4 --- [ost-startStop-1]
ConditionEvaluationReportLoggingListener :
2019-06-02T10:14:35.460892+00:00 app[web.1]:
2019-06-02T10:14:35.460894+00:00 app[web.1]: Error starting
ApplicationContext. To display the conditions report re-run your
application with 'debug' enabled. 2019-06-02T10:14:35.470103+00:00
app[web.1]: 2019-06-02 10:14:35.469 ERROR 4 --- [ost-startStop-1]
o.s.boot.SpringApplication : Application run failed
2019-06-02T10:14:35.470106+00:00 app[web.1]:
2019-06-02T10:14:35.470111+00:00 app[web.1]:
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'requestMappingHandlerAdapter' defined in
class path resource
[org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]:
Bean instantiation via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to
instantiate
[org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]:
Factory method 'requestMappingHandlerAdapter' threw exception; nested
exception is java.lang.BootstrapMethodError:
java.lang.IllegalAccessError: no such method:
io.reactivex.Flowable.fromPublisher(Publisher)Flowable/invokeStatic
2019-06-02T10:14:35.470113+00:00 app[web.1]: at
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627)
~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470114+00:00 app[web.1]: at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607)
~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470117+00:00 app[web.1]: at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)
~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470118+00:00 app[web.1]: at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470124+00:00 app[web.1]: at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470125+00:00 app[web.1]: at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470127+00:00 app[web.1]: at
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470128+00:00 app[web.1]: at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470129+00:00 app[web.1]: at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470131+00:00 app[web.1]: at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470132+00:00 app[web.1]: at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:843)
~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470133+00:00 app[web.1]: at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)
~[spring-context-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470135+00:00 app[web.1]: at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
~[spring-context-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470136+00:00 app[web.1]: at
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
~[spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE]
2019-06-02T10:14:35.470138+00:00 app[web.1]: at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
~[spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE]
2019-06-02T10:14:35.470139+00:00 app[web.1]: at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
~[spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE]
2019-06-02T10:14:35.470141+00:00 app[web.1]: at
org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
~[spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE]
2019-06-02T10:14:35.470142+00:00 app[web.1]: at
org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157)
[spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE]
2019-06-02T10:14:35.470143+00:00 app[web.1]: at
org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137)
[spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE]
2019-06-02T10:14:35.470150+00:00 app[web.1]: at
org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91)
[spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE]
2019-06-02T10:14:35.470151+00:00 app[web.1]: at
org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171)
[spring-web-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470153+00:00 app[web.1]: at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5272)
[webapp-runner.jar:na] 2019-06-02T10:14:35.470155+00:00 app[web.1]: at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[webapp-runner.jar:na] 2019-06-02T10:14:35.470156+00:00 app[web.1]: at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1423)
[webapp-runner.jar:na] 2019-06-02T10:14:35.470157+00:00 app[web.1]: at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1413)
[webapp-runner.jar:na] 2019-06-02T10:14:35.470159+00:00 app[web.1]: at
java.util.concurrent.FutureTask.run(FutureTask.java:266)
[na:1.8.0_212-heroku] 2019-06-02T10:14:35.470160+00:00 app[web.1]: at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[na:1.8.0_212-heroku] 2019-06-02T10:14:35.470161+00:00 app[web.1]: at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[na:1.8.0_212-heroku] 2019-06-02T10:14:35.470163+00:00 app[web.1]: at
java.lang.Thread.run(Thread.java:748) [na:1.8.0_212-heroku]
2019-06-02T10:14:35.470167+00:00 app[web.1]: Caused by:
org.springframework.beans.BeanInstantiationException: Failed to
instantiate
[org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]:
Factory method 'requestMappingHandlerAdapter' threw exception; nested
exception is java.lang.BootstrapMethodError:
java.lang.IllegalAccessError: no such method:
io.reactivex.Flowable.fromPublisher(Publisher)Flowable/invokeStatic
2019-06-02T10:14:35.470169+00:00 app[web.1]: at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470171+00:00 app[web.1]: at
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622)
~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470173+00:00 app[web.1]: ... 28 common frames
omitted 2019-06-02T10:14:35.470174+00:00 app[web.1]: Caused by:
java.lang.BootstrapMethodError: java.lang.IllegalAccessError: no such
method:
io.reactivex.Flowable.fromPublisher(Publisher)Flowable/invokeStatic
2019-06-02T10:14:35.470176+00:00 app[web.1]: at
org.springframework.core.ReactiveAdapterRegistry$RxJava2Registrar.registerAdapters(ReactiveAdapterRegistry.java:248)
~[spring-core-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470177+00:00 app[web.1]: at
org.springframework.core.ReactiveAdapterRegistry.(ReactiveAdapterRegistry.java:83)
~[spring-core-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470178+00:00 app[web.1]: at
org.springframework.core.ReactiveAdapterRegistry.getSharedInstance(ReactiveAdapterRegistry.java:179)
~[spring-core-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470180+00:00 app[web.1]: at
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.(RequestMappingHandlerAdapter.java:168)
~[spring-webmvc-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470181+00:00 app[web.1]: at
org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.createRequestMappingHandlerAdapter(WebMvcConfigurationSupport.java:593)
~[spring-webmvc-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470185+00:00 app[web.1]: at
org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$EnableWebMvcConfiguration.createRequestMappingHandlerAdapter(WebMvcAutoConfiguration.java:496)
~[spring-boot-autoconfigure-2.1.5.RELEASE.jar:2.1.5.RELEASE]
2019-06-02T10:14:35.470186+00:00 app[web.1]: at
org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.requestMappingHandlerAdapter(WebMvcConfigurationSupport.java:561)
~[spring-webmvc-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470188+00:00 app[web.1]: at
org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$EnableWebMvcConfiguration.requestMappingHandlerAdapter(WebMvcAutoConfiguration.java:484)
~[spring-boot-autoconfigure-2.1.5.RELEASE.jar:2.1.5.RELEASE]
2019-06-02T10:14:35.470205+00:00 app[web.1]: at
org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$EnableWebMvcConfiguration$$EnhancerBySpringCGLIB$$30cf5eaa.CGLIB$requestMappingHandlerAdapter$7()
~[spring-boot-autoconfigure-2.1.5.RELEASE.jar:2.1.5.RELEASE]
2019-06-02T10:14:35.470206+00:00 app[web.1]: at
org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$EnableWebMvcConfiguration$$EnhancerBySpringCGLIB$$30cf5eaa$$FastClassBySpringCGLIB$$5e7c894e.invoke()
~[spring-boot-autoconfigure-2.1.5.RELEASE.jar:2.1.5.RELEASE]
2019-06-02T10:14:35.470213+00:00 app[web.1]: at
org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
~[spring-core-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470214+00:00 app[web.1]: at
org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363)
~[spring-context-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470216+00:00 app[web.1]: at
org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$EnableWebMvcConfiguration$$EnhancerBySpringCGLIB$$30cf5eaa.requestMappingHandlerAdapter()
~[spring-boot-autoconfigure-2.1.5.RELEASE.jar:2.1.5.RELEASE]
2019-06-02T10:14:35.470217+00:00 app[web.1]: at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[na:1.8.0_212-heroku] 2019-06-02T10:14:35.470219+00:00 app[web.1]: at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[na:1.8.0_212-heroku] 2019-06-02T10:14:35.470220+00:00 app[web.1]: at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:1.8.0_212-heroku] 2019-06-02T10:14:35.470222+00:00 app[web.1]: at
java.lang.reflect.Method.invoke(Method.java:498)
~[na:1.8.0_212-heroku] 2019-06-02T10:14:35.470223+00:00 app[web.1]: at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
2019-06-02T10:14:35.470224+00:00 app[web.1]: ... 29 common frames
omitted 2019-06-02T10:14:35.470226+00:00 app[web.1]: Caused by:
java.lang.IllegalAccessError: no such method:
io.reactivex.Flowable.fromPublisher(Publisher)Flowable/invokeStatic
2019-06-02T10:14:35.470227+00:00 app[web.1]: at
java.lang.invoke.MethodHandleNatives.linkMethodHandleConstant(MethodHandleNatives.java:483)
~[na:1.8.0_212-heroku] 2019-06-02T10:14:35.470228+00:00 app[web.1]:
... 47 common frames omitted 2019-06-02T10:14:35.470231+00:00
app[web.1]: Caused by: java.lang.LinkageError: loader constraint
violation: when resolving method
"io.reactivex.Flowable.fromPublisher(Lorg/reactivestreams/Publisher;)Lio/reactivex/Flowable;"
the class loader (instance of
org/apache/catalina/loader/ParallelWebappClassLoader) of the current
class,
org/springframework/core/ReactiveAdapterRegistry$RxJava2Registrar, and
the class loader (instance of sun/misc/Launcher$AppClassLoader) for
the method's defining class, io/reactivex/Flowable, have different
Class objects for the type org/reactivestreams/Publisher used in the
signature 2019-06-02T10:14:35.470232+00:00 app[web.1]: at
java.lang.invoke.MethodHandleNatives.resolve(Native Method)
~[na:1.8.0_212-heroku] 2019-06-02T10:14:35.470234+00:00 app[web.1]: at
java.lang.invoke.MemberName$Factory.resolve(MemberName.java:975)
~[na:1.8.0_212-heroku] 2019-06-02T10:14:35.470235+00:00 app[web.1]: at
java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:1000)
~[na:1.8.0_212-heroku] 2019-06-02T10:14:35.470236+00:00 app[web.1]: at
java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:1394)
~[na:1.8.0_212-heroku] 2019-06-02T10:14:35.470238+00:00 app[web.1]: at
java.lang.invoke.MethodHandles$Lookup.linkMethodHandleConstant(MethodHandles.java:1750)
~[na:1.8.0_212-heroku] 2019-06-02T10:14:35.470239+00:00 app[web.1]: at
java.lang.invoke.MethodHandleNatives.linkMethodHandleConstant(MethodHandleNatives.java:477)
~[na:1.8.0_212-heroku] 2019-06-02T10:14:35.470240+00:00 app[web.1]:
... 47 common frames omitted
Related
I have try to deploy my app to Heroku, but it's not working. I have try to follow the vaadin instructions, but it's not working. What's the problem?
Error on heroku logs:
Exception sending context initialized event to listener instance of class [com.vaadin.flow.spring.VaadinServletContextInitializer$CompositeServletContextListener]
java.lang.RuntimeException: Unable to initialize com.vaadin.flow.spring.VaadinServletContextInitializer$VaadinAppShellContextListener
2023-01-04T22:30:36.972557+00:00 app[web.1]: at com.vaadin.flow.spring.VaadinServletContextInitializer$FailFastServletContextListener.contextInitialized(VaadinServletContextInitializer.java:192) ~[vaadin-spring-23.3.0.jar!/:na]
2023-01-04T22:30:36.972560+00:00 app[web.1]: at com.vaadin.flow.spring.VaadinServletContextInitializer$CompositeServletContextListener.lambda$contextInitialized$0(VaadinServletContextInitializer.java:214) ~[vaadin-spring-23.3.0.jar!/:na]
2023-01-04T22:30:36.972561+00:00 app[web.1]: at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) ~[na:na]
2023-01-04T22:30:36.972562+00:00 app[web.1]: at com.vaadin.flow.spring.VaadinServletContextInitializer$CompositeServletContextListener.contextInitialized(VaadinServletContextInitializer.java:214) ~[vaadin-spring-23.3.0.jar!/:na]
...
2023-01-04T20:56:40.962495+00:00 app[web.1]: 2023-01-04 21:56:40.962 INFO 4 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 35531 (http)
2023-01-04T20:56:40.981852+00:00 app[web.1]: 2023-01-04 21:56:40.981 INFO 4 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2023-01-04T20:56:40.982068+00:00 app[web.1]: 2023-01-04 21:56:40.981 INFO 4 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.68]
2023-01-04T20:56:41.145481+00:00 app[web.1]: 2023-01-04 21:56:41.145 INFO 4 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2023-01-04T20:56:41.145634+00:00 app[web.1]: 2023-01-04 21:56:41.145 INFO 4 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 4610 ms
2023-01-04T20:56:41.391728+00:00 app[web.1]: 2023-01-04 21:56:41.391 ERROR 4 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Exception sending context initialized event to listener instance of class [com.vaadin.flow.spring.VaadinServletContextInitializer$CompositeServletContextListener]
2023-01-04T20:56:41.391750+00:00 app[web.1]:
2023-01-04T20:56:41.391753+00:00 app[web.1]: java.lang.RuntimeException: Unable to initialize com.vaadin.flow.spring.VaadinServletContextInitializer$VaadinAppShellContextListener
2023-01-04T20:56:41.391773+00:00 app[web.1]: at com.vaadin.flow.spring.VaadinServletContextInitializer$FailFastServletContextListener.contextInitialized(VaadinServletContextInitializer.java:192) ~[vaadin-spring-23.3.0.jar!/:na]
2023-01-04T20:56:41.391775+00:00 app[web.1]: at com.vaadin.flow.spring.VaadinServletContextInitializer$CompositeServletContextListener.lambda$contextInitialized$0(VaadinServletContextInitializer.java:214) ~[vaadin-spring-23.3.0.jar!/:na]
2023-01-04T20:56:41.391776+00:00 app[web.1]: at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) ~[na:na]
2023-01-04T20:56:41.391776+00:00 app[web.1]: at com.vaadin.flow.spring.VaadinServletContextInitializer$CompositeServletContextListener.contextInitialized(VaadinServletContextInitializer.java:214) ~[vaadin-spring-23.3.0.jar!/:na]
2023-01-04T20:56:41.391778+00:00 app[web.1]: at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4767) ~[tomcat-embed-core-9.0.68.jar!/:na]
2023-01-04T20:56:41.391778+00:00 app[web.1]: at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5231) ~[tomcat-embed-core-9.0.68.jar!/:na]
2023-01-04T20:56:41.391779+00:00 app[web.1]: at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.68.jar!/:na]
2023-01-04T20:56:41.391779+00:00 app[web.1]: at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) ~[tomcat-embed-core-9.0.68.jar!/:na]
2023-01-04T20:56:41.391780+00:00 app[web.1]: at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) ~[tomcat-embed-core-9.0.68.jar!/:na]
...
2023-01-04T20:56:41.391815+00:00 app[web.1]: ... 50 common frames omitted
2023-01-04T20:56:41.391815+00:00 app[web.1]:
2023-01-04T20:56:41.392195+00:00 app[web.1]: 2023-01-04 21:56:41.392 ERROR 4 --- [ main] o.apache.catalina.core.StandardContext : One or more listeners failed to start. Full details will be found in the appropriate container log file
2023-01-04T20:56:41.392932+00:00 app[web.1]: 2023-01-04 21:56:41.392 ERROR 4 --- [ main] o.apache.catalina.core.StandardContext : Context [] startup failed due to previous errors
2023-01-04T20:56:41.446993+00:00 app[web.1]: 2023-01-04 21:56:41.446 INFO 4 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2023-01-04T20:56:41.452376+00:00 app[web.1]: 2023-01-04 21:56:41.452 WARN 4 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
2023-01-04T20:56:41.464604+00:00 app[web.1]: 2023-01-04 21:56:41.464 INFO 4 --- [ main] ConditionEvaluationReportLoggingListener :
2023-01-04T20:56:41.464605+00:00 app[web.1]:
2023-01-04T20:56:41.464606+00:00 app[web.1]: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-01-04T20:56:41.509555+00:00 app[web.1]: 2023-01-04 21:56:41.509 ERROR 4 --- [ main] o.s.boot.SpringApplication : Application run failed
...
2023-01-04T20:56:41.509566+00:00 app[web.1]: Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
2023-01-04T20:56:41.509566+00:00 app[web.1]: at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:142) ~[spring-boot-2.7.5.jar!/:2.7.5]
2023-01-04T20:56:41.509566+00:00 app[web.1]: at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:104) ~[spring-boot-2.7.5.jar!/:2.7.5]
2023-01-04T20:56:41.509567+00:00 app[web.1]: at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:479) ~[spring-boot-2.7.5.jar!/:2.7.5]
2023-01-04T20:56:41.509567+00:00 app[web.1]: at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211) ~[spring-boot-2.7.5.jar!/:2.7.5]
2023-01-04T20:56:41.509568+00:00 app[web.1]: at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:184) ~[spring-boot-2.7.5.jar!/:2.7.5]
2023-01-04T20:56:41.509568+00:00 app[web.1]: at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:162) ~[spring-boot-2.7.5.jar!/:2.7.5]
2023-01-04T20:56:41.509569+00:00 app[web.1]: ... 17 common frames omitted
2023-01-04T20:56:41.509569+00:00 app[web.1]: Caused by: java.lang.IllegalStateException: StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[] failed to start
2023-01-04T20:56:41.509570+00:00 app[web.1]: at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.rethrowDeferredStartupExceptions(TomcatWebServer.java:187) ~[spring-boot-2.7.5.jar!/:2.7.5]
2023-01-04T20:56:41.509570+00:00 app[web.1]: at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:126) ~[spring-boot-2.7.5.jar!/:2.7.5]
2023-01-04T20:56:41.509570+00:00 app[web.1]: ... 22 common frames omitted
2023-01-04T20:56:41.509571+00:00 app[web.1]:
2023-01-04T20:56:41.752738+00:00 heroku[web.1]: State changed from starting to crashed
On my computer is working perfectly and i don't receive any error message.
I've never deployed any sort of JVM web app before so I really have no idea what's going on. From the Heroku log, the error looks to be the following:
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [tld.domain.webapp.FinancialServicesStationApp]; nested exception is java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$EmbeddedDatabaseConfiguration**
I am using MariaDB as my database, Gradle for building and the backend is written in kotlin. I used the option to compile the source code on my own machine, which I think should have worked since I can run the site in development mode just fine. Does someone know what could be causing this error and how I can fix it?
This is the full JHipster log:
2020-11-04T01:52:33.805989+00:00 app[web.1]: 2020-11-04 01:52:33.801 INFO 4 --- [ main] .f.FinancialServicesStationApp$Companion : The following profiles are active: prod,heroku
2020-11-04T01:52:35.007983+00:00 app[web.1]: 2020-11-04 01:52:35.007 WARN 4 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [tld.domain.webapp.FinancialServicesStationApp]; nested exception is java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$EmbeddedDatabaseConfiguration
2020-11-04T01:52:35.025845+00:00 app[web.1]: 2020-11-04 01:52:35.025 ERROR 4 --- [ main] o.s.boot.SpringApplication : Application run failed
2020-11-04T01:52:35.025847+00:00 app[web.1]:
2020-11-04T01:52:35.025849+00:00 app[web.1]: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [tld.domain.webapp.FinancialServicesStationApp]; nested exception is java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$EmbeddedDatabaseConfiguration
2020-11-04T01:52:35.025850+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:609)
2020-11-04T01:52:35.025851+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser.access$800(ConfigurationClassParser.java:110)
2020-11-04T01:52:35.025852+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGroupingHandler.lambda$processGroupImports$1(ConfigurationClassParser.java:811)
2020-11-04T01:52:35.025853+00:00 app[web.1]: at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
2020-11-04T01:52:35.025854+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGroupingHandler.processGroupImports(ConfigurationClassParser.java:808)
2020-11-04T01:52:35.025854+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorHandler.process(ConfigurationClassParser.java:779)
2020-11-04T01:52:35.025856+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:192)
2020-11-04T01:52:35.025856+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:319)
2020-11-04T01:52:35.025857+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:236)
2020-11-04T01:52:35.025857+00:00 app[web.1]: at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275)
2020-11-04T01:52:35.025858+00:00 app[web.1]: at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:95)
2020-11-04T01:52:35.025858+00:00 app[web.1]: at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:706)
2020-11-04T01:52:35.025859+00:00 app[web.1]: at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532)
2020-11-04T01:52:35.025859+00:00 app[web.1]: at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
2020-11-04T01:52:35.025860+00:00 app[web.1]: at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
2020-11-04T01:52:35.025861+00:00 app[web.1]: at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
2020-11-04T01:52:35.025862+00:00 app[web.1]: at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
2020-11-04T01:52:35.025863+00:00 app[web.1]: at tld.domain.webapp.FinancialServicesStationApp$Companion.main(FinancialServicesStationApp.kt:105)
2020-11-04T01:52:35.025863+00:00 app[web.1]: at tld.domain.webapp.FinancialServicesStationApp.main(FinancialServicesStationApp.kt)
2020-11-04T01:52:35.025863+00:00 app[web.1]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2020-11-04T01:52:35.025864+00:00 app[web.1]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2020-11-04T01:52:35.025864+00:00 app[web.1]: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2020-11-04T01:52:35.025865+00:00 app[web.1]: at java.base/java.lang.reflect.Method.invoke(Method.java:564)
2020-11-04T01:52:35.025865+00:00 app[web.1]: at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
2020-11-04T01:52:35.025866+00:00 app[web.1]: at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
2020-11-04T01:52:35.025866+00:00 app[web.1]: at org.springframework.boot.loader.Launcher.launch(Launcher.java:51)
2020-11-04T01:52:35.025866+00:00 app[web.1]: at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52)
2020-11-04T01:52:35.025867+00:00 app[web.1]: Caused by: java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$EmbeddedDatabaseConfiguration
2020-11-04T01:52:35.025867+00:00 app[web.1]: at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:60)
2020-11-04T01:52:35.025868+00:00 app[web.1]: at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:108)
2020-11-04T01:52:35.025868+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:225)
2020-11-04T01:52:35.025877+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser.processMemberClasses(ConfigurationClassParser.java:371)
2020-11-04T01:52:35.025878+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:271)
2020-11-04T01:52:35.025878+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:249)
2020-11-04T01:52:35.025879+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:599)
2020-11-04T01:52:35.025879+00:00 app[web.1]: ... 26 common frames omitted
2020-11-04T01:52:35.025880+00:00 app[web.1]: Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'JDBC_DATABASE_URL' in value "${JDBC_DATABASE_URL}"
2020-11-04T01:52:35.025880+00:00 app[web.1]: at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:178)
2020-11-04T01:52:35.025880+00:00 app[web.1]: at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:124)
2020-11-04T01:52:35.025881+00:00 app[web.1]: at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:236)
2020-11-04T01:52:35.025881+00:00 app[web.1]: at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:210)
2020-11-04T01:52:35.025882+00:00 app[web.1]: at org.springframework.core.env.AbstractPropertyResolver.resolveNestedPlaceholders(AbstractPropertyResolver.java:227)
2020-11-04T01:52:35.025882+00:00 app[web.1]: at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:88)
2020-11-04T01:52:35.025883+00:00 app[web.1]: at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:62)
2020-11-04T01:52:35.025883+00:00 app[web.1]: at org.springframework.core.env.AbstractEnvironment.getProperty(AbstractEnvironment.java:535)
2020-11-04T01:52:35.025884+00:00 app[web.1]: at org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$EmbeddedDatabaseCondition.getMatchOutcome(DataSourceAutoConfiguration.java:126)
2020-11-04T01:52:35.025884+00:00 app[web.1]: at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:47)
2020-11-04T01:52:35.025884+00:00 app[web.1]: ... 32 common frames omitted
2020-11-04T01:52:35.025885+00:00 app[web.1]:
2020-11-04T01:52:35.104335+00:00 heroku[web.1]: Process exited with status 1
2020-11-04T01:52:35.142760+00:00 heroku[web.1]: State changed from starting to crashed
2020-11-04T01:55:15.000000+00:00 app[api]: Build failed -- check your build output:
The important part of the error is:
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'JDBC_DATABASE_URL' in value "${JDBC_DATABASE_URL}"
Heroku deployment could not inject the database properties into your application context and so it fails to start.
So, maybe you did not subscribe to jawsdb add-on or your did not register a payment method. There are few similar questions about this on stackoverflow
I suppose that you deployed using jhipster heroku as described in the doc: https://www.jhipster.tech/heroku/
Unable to start the spring cloud eureka client in a service.
I'm using latest spring 2.1.1 version.
Discovery Server started in a right fashion, but not the service client.
Unable trace out what causing the issue.... Below I have the configuration and the detailed log. please let me know in case of more information needed.
In the application class I have used the #EnableDiscoveryClient
#SpringBootApplication
#EnableDiscoveryClient
public class TrackerServiceApplication {
public static void main(String[] args) {
SpringApplication.run(JobTrackerServiceApplication.class, args);
}
}
In the yml I have given the server discovery URL.
spring:
application:
name: jtservice
eureka:
client:
service-url:
defaultZone: http://localhost:8761/eureka
Given a detailed started up log
2018-12-28 01:18:57.283 WARN 15832 --- [ restartedMain] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
2018-12-28 01:18:57.427 INFO 15832 --- [ restartedMain] o.s.cloud.context.scope.GenericScope : BeanFactory id=52886b02-9a4c-31c8-82cc-0ae0241df564
2018-12-28 01:18:57.503 INFO 15832 --- [ restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$1a87a789] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-12-28 01:18:57.528 WARN 15832 --- [ restartedMain] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2018-12-28 01:18:57.528 INFO 15832 --- [ restartedMain] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2018-12-28 01:18:57.535 WARN 15832 --- [ restartedMain] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2018-12-28 01:18:57.535 INFO 15832 --- [ restartedMain] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2018-12-28 01:18:58.664 WARN 15832 --- [ restartedMain] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmxMBeanExporter' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/jmx/JmxEndpointAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.jmx.JmxEndpointExporter]: Factory method 'jmxMBeanExporter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceRegistryEndpoint' defined in class path resource [org/springframework/cloud/client/serviceregistry/ServiceRegistryAutoConfiguration$ServiceRegistryEndpointConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.client.serviceregistry.endpoint.ServiceRegistryEndpoint] from ClassLoader [sun.misc.Launcher$AppClassLoader#764c12b6]
2018-12-28 01:18:58.682 INFO 15832 --- [ restartedMain] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2018-12-28 01:18:58.703 ERROR 15832 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmxMBeanExporter' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/jmx/JmxEndpointAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.jmx.JmxEndpointExporter]: Factory method 'jmxMBeanExporter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceRegistryEndpoint' defined in class path resource [org/springframework/cloud/client/serviceregistry/ServiceRegistryAutoConfiguration$ServiceRegistryEndpointConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.client.serviceregistry.endpoint.ServiceRegistryEndpoint] from ClassLoader [sun.misc.Launcher$AppClassLoader#764c12b6]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1288) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1127) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:846) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:863) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
at io.app.JobTrackerServiceApplication.main(JobTrackerServiceApplication.java:12) [classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_181]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_181]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_181]
at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_181]
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-2.1.1.RELEASE.jar:2.1.1.RELEASE]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.jmx.JmxEndpointExporter]: Factory method 'jmxMBeanExporter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceRegistryEndpoint' defined in class path resource [org/springframework/cloud/client/serviceregistry/ServiceRegistryAutoConfiguration$ServiceRegistryEndpointConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.client.serviceregistry.endpoint.ServiceRegistryEndpoint] from ClassLoader [sun.misc.Launcher$AppClassLoader#764c12b6]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
... 23 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceRegistryEndpoint' defined in class path resource [org/springframework/cloud/client/serviceregistry/ServiceRegistryAutoConfiguration$ServiceRegistryEndpointConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.client.serviceregistry.endpoint.ServiceRegistryEndpoint] from ClassLoader [sun.misc.Launcher$AppClassLoader#764c12b6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1083) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.createEndpointBean(EndpointDiscoverer.java:149) ~[spring-boot-actuator-2.1.1.RELEASE.jar:2.1.1.RELEASE]
at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.createEndpointBeans(EndpointDiscoverer.java:136) ~[spring-boot-actuator-2.1.1.RELEASE.jar:2.1.1.RELEASE]
at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.discoverEndpoints(EndpointDiscoverer.java:125) ~[spring-boot-actuator-2.1.1.RELEASE.jar:2.1.1.RELEASE]
at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.getEndpoints(EndpointDiscoverer.java:119) ~[spring-boot-actuator-2.1.1.RELEASE.jar:2.1.1.RELEASE]
at org.springframework.boot.actuate.autoconfigure.endpoint.jmx.JmxEndpointAutoConfiguration.jmxMBeanExporter(JmxEndpointAutoConfiguration.java:95) ~[spring-boot-actuator-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE]
at org.springframework.boot.actuate.autoconfigure.endpoint.jmx.JmxEndpointAutoConfiguration$$EnhancerBySpringCGLIB$$af379275.CGLIB$jmxMBeanExporter$0(<generated>) ~[spring-boot-actuator-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE]
at org.springframework.boot.actuate.autoconfigure.endpoint.jmx.JmxEndpointAutoConfiguration$$EnhancerBySpringCGLIB$$af379275$$FastClassBySpringCGLIB$$e3054b35.invoke(<generated>) ~[spring-boot-actuator-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.boot.actuate.autoconfigure.endpoint.jmx.JmxEndpointAutoConfiguration$$EnhancerBySpringCGLIB$$af379275.jmxMBeanExporter(<generated>) ~[spring-boot-actuator-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_181]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_181]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_181]
at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_181]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
... 24 common frames omitted
Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.client.serviceregistry.endpoint.ServiceRegistryEndpoint] from ClassLoader [sun.misc.Launcher$AppClassLoader#764c12b6]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:686) ~[spring-core-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:546) ~[spring-core-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.buildLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:207) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.findLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:189) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(InitDestroyAnnotationBeanPostProcessor.java:128) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(CommonAnnotationBeanPostProcessor.java:297) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:1044) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:550) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
... 45 common frames omitted
Caused by: java.lang.NoClassDefFoundError: org/springframework/http/ResponseEntity
at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_181]
at java.lang.Class.privateGetDeclaredMethods(Unknown Source) ~[na:1.8.0_181]
at java.lang.Class.getDeclaredMethods(Unknown Source) ~[na:1.8.0_181]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:668) ~[spring-core-5.1.3.RELEASE.jar:5.1.3.RELEASE]
... 52 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.springframework.http.ResponseEntity
at java.net.URLClassLoader.findClass(Unknown Source) ~[na:1.8.0_181]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_181]
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[na:1.8.0_181]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_181]
... 56 common frames omitted
FYI Discovery Server Log
i.r.app.DiscoveryServerApplication : No active profile set, falling back to default profiles: default
2018-12-28 01:43:35.051 WARN 13244 --- [ restartedMain] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
2018-12-28 01:43:35.364 INFO 13244 --- [ restartedMain] o.s.cloud.context.scope.GenericScope : BeanFactory id=b41a245e-f8ca-34a8-84b9-ba7e1e8c0ab8
2018-12-28 01:43:35.499 INFO 13244 --- [ restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$7773c593] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-12-28 01:43:36.257 INFO 13244 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8761 (http)
2018-12-28 01:43:36.287 INFO 13244 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2018-12-28 01:43:36.287 INFO 13244 --- [ restartedMain] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/9.0.13
2018-12-28 01:43:36.298 INFO 13244 --- [ restartedMain] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jre1.8.0_181\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.8.0_181/bin/server;C:/Program Files/Java/jre1.8.0_181/bin;C:/Program Files/Java/jre1.8.0_181/lib/amd64;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Docker\Docker\Resources\bin;C:\Python27\;C:\Python27\Scripts;C:\ProgramData\Boxstarter;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\SafeNet\Authentication\SAC\x64;C:\Program Files\SafeNet\Authentication\SAC\x32;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Java\jdk1.8.0_181\bin;C:\workspace\apache-maven-3.5.3\bin;C:\workspace\apache-maven-3.5.3\bin;C:\HashiCorp\Vagrant\bin;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Users\z023401\AppData\Local\Microsoft\WindowsApps;C:\Users\z023401\AppData\Roaming\npm;C:\workspace\web\sts-bundle\sts-3.9.5.RELEASE;;.]
2018-12-28 01:43:36.494 INFO 13244 --- [ restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2018-12-28 01:43:36.494 INFO 13244 --- [ restartedMain] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 2570 ms
2018-12-28 01:43:36.620 WARN 13244 --- [ restartedMain] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2018-12-28 01:43:36.620 INFO 13244 --- [ restartedMain] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2018-12-28 01:43:36.635 INFO 13244 --- [ restartedMain] c.netflix.config.DynamicPropertyFactory : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration#cd0a551
2018-12-28 01:43:37.674 WARN 13244 --- [ restartedMain] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2018-12-28 01:43:37.674 INFO 13244 --- [ restartedMain] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2018-12-28 01:43:37.899 INFO 13244 --- [ restartedMain] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2018-12-28 01:43:38.398 INFO 13244 --- [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729
2018-12-28 01:43:38.970 INFO 13244 --- [ restartedMain] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoint(s) beneath base path '/actuator'
2018-12-28 01:43:39.072 INFO 13244 --- [ restartedMain] o.s.c.n.eureka.InstanceInfoFactory : Setting initial instance status as: STARTING
2018-12-28 01:43:39.124 INFO 13244 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Initializing Eureka in region us-east-1
2018-12-28 01:43:39.126 INFO 13244 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Client configured to neither register nor query for data.
2018-12-28 01:43:39.136 INFO 13244 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Discovery Client initialized at timestamp 1545941619134 with initial instances count: 0
2018-12-28 01:43:39.143 INFO 13244 --- [ restartedMain] o.s.c.n.e.s.EurekaServiceRegistry : Registering application GBS-DISCOVERY-SERVER with eureka with status UP
2018-12-28 01:43:39.197 INFO 13244 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8761 (http) with context path ''
2018-12-28 01:43:39.199 INFO 13244 --- [ restartedMain] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 8761
2018-12-28 01:43:39.202 INFO 13244 --- [ restartedMain] i.r.app.DiscoveryServerApplication : Started DiscoveryServerApplication in 7.455 seconds (JVM running for 8.927)
pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.1.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>io.app</groupId>
<artifactId>client-service</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>client-service</name>
<description>client-service</description>
<properties>
<java.version>1.8</java.version>
<spring-cloud.version>Greenwich.RC2</spring-cloud.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
</repository>
</repositories>
</project>
Add the following
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
It is only a warning that can be ignored for now.
enter link description here
I had the same issue by importing project from older springboot version. Ensure to have same springboot, spring cloud and java versions as same as naming server.
I hope you can help me solve a problem, I am starting a project with spring boot (kotlin).Java 8
I have 2 similar codes with the same base of repositories, but one of them does not work send me an error that says "Error creating bean with name 'dgis_cat_municipiosController'"
code that does not work
code that does work
I do not understand why the one in the first image does not work , if the only thing that changed was that instead of "AGE" I would look for "CVE_ENTIDAD".
for more details I attach the 2 projects and their tables.
projects
First of all thank you ...
"C:\Program Files\Java\jdk1.8.0_171\bin\java.exe" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.1.5\lib\idea_rt.jar=50814:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.1.5\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_171\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_171\jre\lib\rt.jar;C:\Users\Sistemas\IdeaProjects\tks\out\production\classes;C:\Users\Sistemas\IdeaProjects\tks\out\production\resources;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-data-jpa\2.0.5.RELEASE\c99b58e8ada11478aa5d0c3065745b7e887f094e\spring-boot-starter-data-jpa-2.0.5.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-web\2.0.5.RELEASE\52daa1f1509bd637a737206e54c06a17aabb9504\spring-boot-starter-web-2.0.5.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.module\jackson-module-kotlin\2.9.6\12c5482762e03c19a95187fd94c3611738dee604\jackson-module-kotlin-2.9.6.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib-jdk8\1.2.51\68faa6fb7e32a7665a6849f242bc621c3ed48101\kotlin-stdlib-jdk8-1.2.51.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-reflect\1.2.51\36b719a7b84452dd13eeec979d8c82bfb765c57d\kotlin-reflect-1.2.51.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-aop\2.0.5.RELEASE\6bc1e8bcc849772d48cae1e8278cd2b471361698\spring-boot-starter-aop-2.0.5.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-jdbc\2.0.5.RELEASE\9a5370acc7c5e17f4a00578211fbbd212b9a8329\spring-boot-starter-jdbc-2.0.5.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-json\2.0.5.RELEASE\d0052ded4733ceb1fb7d927238f22f9a92099227\spring-boot-starter-json-2.0.5.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\mysql\mysql-connector-java\5.1.47\9de4159aaf2d08817a276610b8114a825fca6cfd\mysql-connector-java-5.1.47.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter\2.0.5.RELEASE\1f53487a373be18d064a5815e9bac9882ef15cdc\spring-boot-starter-2.0.5.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\javax.transaction\javax.transaction-api\1.2\d81aff979d603edd90dcd8db2abc1f4ce6479e3e\javax.transaction-api-1.2.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.hibernate\hibernate-core\5.2.17.Final\f2dc36470e7a2ffcf6106bb1625ecf5b54bb5f65\hibernate-core-5.2.17.Final.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework.data\spring-data-jpa\2.0.10.RELEASE\a6e644c363d050c6c90f078f4f0ac66892f60d54\spring-data-jpa-2.0.10.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework\spring-aspects\5.0.9.RELEASE\dfb2da4c573391d8e8a482f08bdf4d38398e2bb0\spring-aspects-5.0.9.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-tomcat\2.0.5.RELEASE\eaac8a5d73b45400bc88cd7f6b5c99b5f0d5e9b7\spring-boot-starter-tomcat-2.0.5.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.hibernate.validator\hibernate-validator\6.0.12.Final\478003e61b056c1f97840ba3e62ff31cdc89597\hibernate-validator-6.0.12.Final.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework\spring-webmvc\5.0.9.RELEASE\c18346caaeb8dc648c4cc01874996fd9fef76664\spring-webmvc-5.0.9.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework\spring-web\5.0.9.RELEASE\1ea3aab93340849313fa74ec626ddaf1fff9ed8e\spring-web-5.0.9.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.datatype\jackson-datatype-jdk8\2.9.6\456895fc91bf7180b216fead220373e6278230c9\jackson-datatype-jdk8-2.9.6.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.datatype\jackson-datatype-jsr310\2.9.6\ea54f6193d224e5e5732bbd4262327eb465397c2\jackson-datatype-jsr310-2.9.6.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.module\jackson-module-parameter-names\2.9.6\129acd77a4b6ee30d62d3a0899b1344c8ec2bff8\jackson-module-parameter-names-2.9.6.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-databind\2.9.6\cfa4f316351a91bfd95cb0644c6a2c95f52db1fc\jackson-databind-2.9.6.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-annotations\2.9.0\7c10d545325e3a6e72e06381afe469fd40eb701\jackson-annotations-2.9.0.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib-jdk7\1.2.51\a37c0066df119c02f034bf17159089b588ccc41a\kotlin-stdlib-jdk7-1.2.51.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib\1.2.51\fa8127e505bff50fec291d0dd619d1bda5c619e0\kotlin-stdlib-1.2.51.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-autoconfigure\2.0.5.RELEASE\e5588642799e0c0c04638e255c3d3f31ba400ff4\spring-boot-autoconfigure-2.0.5.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot\2.0.5.RELEASE\19a4624cbd89a318d10c79f289c6c816043850fb\spring-boot-2.0.5.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-logging\2.0.5.RELEASE\c353e0b9591d0765c687ff0a678478cbebfd5c23\spring-boot-starter-logging-2.0.5.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\javax.annotation\javax.annotation-api\1.3.2\934c04d3cfef185a8008e7bf34331b79730a9d43\javax.annotation-api-1.3.2.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework\spring-context\5.0.9.RELEASE\2501e55acb6c2e84667cda3f845d1d00a0dc4e05\spring-context-5.0.9.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework\spring-aop\5.0.9.RELEASE\98003b099697fe46b6bdf18c7e3f66d7a1381060\spring-aop-5.0.9.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework\spring-orm\5.0.9.RELEASE\bb9265effd7c903f4cc1c98d16b4188b7827a1cc\spring-orm-5.0.9.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework\spring-jdbc\5.0.9.RELEASE\2f38726ef2f5ecb72af7e915dac43177b01a8f53\spring-jdbc-5.0.9.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework.data\spring-data-commons\2.0.10.RELEASE\64d4e58a2b16b9446d51a2650058d821a5bce98d\spring-data-commons-2.0.10.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework\spring-tx\5.0.9.RELEASE\d3a13fc3c56bdddd8144a686ed64f0cdb3ad7305\spring-tx-5.0.9.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework\spring-beans\5.0.9.RELEASE\65f56fdab1bb90ad059e314d2f2f4cf76f9bdbde\spring-beans-5.0.9.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework\spring-expression\5.0.9.RELEASE\1f9db5ff3a758102c0434cc3457aa47c50c39a4a\spring-expression-5.0.9.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework\spring-core\5.0.9.RELEASE\9f9a828936d81afd49a603bda9cc1aed863a0d85\spring-core-5.0.9.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.yaml\snakeyaml\1.19\2d998d3d674b172a588e54ab619854d073f555b5\snakeyaml-1.19.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.aspectj\aspectjweaver\1.8.13\ad94df2a28d658a40dc27bbaff6a1ce5fbf04e9b\aspectjweaver-1.8.13.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\com.zaxxer\HikariCP\2.7.9\a83113d2c091d0d0f853dad3217bd7df3beb6ae3\HikariCP-2.7.9.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.hibernate.common\hibernate-commons-annotations\5.0.1.Final\71e1cff3fcb20d3b3af4f3363c3ddb24d33c6879\hibernate-commons-annotations-5.0.1.Final.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.jboss.logging\jboss-logging\3.3.2.Final\3789d00e859632e6c6206adc0c71625559e6e3b0\jboss-logging-3.3.2.Final.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.hibernate.javax.persistence\hibernate-jpa-2.1-api\1.0.2.Final\52afb5762c704a6b586e27742470c08f91877fc1\hibernate-jpa-2.1-api-1.0.2.Final.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.javassist\javassist\3.22.0-GA\3e83394258ae2089be7219b971ec21a8288528ad\javassist-3.22.0-GA.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\antlr\antlr\2.7.7\83cd2cd674a217ade95a4bb83a8a14f351f48bd0\antlr-2.7.7.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.jboss\jandex\2.0.3.Final\bfc4d6257dbff7a33a357f0de116be6ff951d849\jandex-2.0.3.Final.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\com.fasterxml\classmate\1.3.4\3d5f48f10bbe4eb7bd862f10c0583be2e0053c6\classmate-1.3.4.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\dom4j\dom4j\1.6.1\5d3ccc056b6f056dbf0dddfdf43894b9065a8f94\dom4j-1.6.1.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\ch.qos.logback\logback-classic\1.2.3\7c4f3c474fb2c041d8028740440937705ebb473a\logback-classic-1.2.3.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-to-slf4j\2.10.0\f7e631ccf49cfc0aefa4a2a728da7d374c05bd3c\log4j-to-slf4j-2.10.0.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.slf4j\jul-to-slf4j\1.7.25\af5364cd6679bfffb114f0dec8a157aaa283b76\jul-to-slf4j-1.7.25.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.slf4j\slf4j-api\1.7.25\da76ca59f6a57ee3102f8f9bd9cee742973efa8a\slf4j-api-1.7.25.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.apache.tomcat.embed\tomcat-embed-websocket\8.5.34\5f86906367c2540b21e6aeecc277d2ce9ec939b0\tomcat-embed-websocket-8.5.34.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.apache.tomcat.embed\tomcat-embed-core\8.5.34\a038040d68a90397f95dd1e11b979fe364a5000f\tomcat-embed-core-8.5.34.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.apache.tomcat.embed\tomcat-embed-el\8.5.34\be71a9a5bdd001db7cf97c47429eec0bdd3b7b88\tomcat-embed-el-8.5.34.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\javax.validation\validation-api\2.0.1.Final\cb855558e6271b1b32e716d24cb85c7f583ce09e\validation-api-2.0.1.Final.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-core\2.9.6\4e393793c37c77e042ccc7be5a914ae39251b365\jackson-core-2.9.6.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib-common\1.2.51\e4a9d4b13ab19ed1e6531fce6df98e8cfa7f7301\kotlin-stdlib-common-1.2.51.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.jetbrains\annotations\13.0\919f0dfe192fb4e063e7dacadee7f8bb9a2672a9\annotations-13.0.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.springframework\spring-jcl\5.0.9.RELEASE\bc3b5aaae53f0bc03647e53ecbd98a05b47a4e90\spring-jcl-5.0.9.RELEASE.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\ch.qos.logback\logback-core\1.2.3\864344400c3d4d92dfeb0a305dc87d953677c03c\logback-core-1.2.3.jar;C:\Users\Sistemas\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-api\2.10.0\fec5797a55b786184a537abd39c3fa1449d752d6\log4j-api-2.10.0.jar" com.tksys.tks.TksApplicationKt
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.0.5.RELEASE)
2018-09-24 11:12:34.463 INFO 6200 --- [ main] com.tksys.tks.TksApplicationKt : Starting TksApplicationKt on DESKTOP-FJIIFGM with PID 6200 (C:\Users\Sistemas\IdeaProjects\tks\out\production\classes started by Sistemas in C:\Users\Sistemas\IdeaProjects\tks)
2018-09-24 11:12:34.463 INFO 6200 --- [ main] com.tksys.tks.TksApplicationKt : No active profile set, falling back to default profiles: default
2018-09-24 11:12:34.525 INFO 6200 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext#3c153a1: startup date [Mon Sep 24 11:12:34 CDT 2018]; root of context hierarchy
2018-09-24 11:12:36.244 INFO 6200 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$cd16ab20] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-09-24 11:12:36.697 INFO 6200 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2018-09-24 11:12:36.728 INFO 6200 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2018-09-24 11:12:36.728 INFO 6200 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.34
2018-09-24 11:12:36.728 INFO 6200 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0_171\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\xampp\php;C:\composer;C:\Program Files\Java\jdk-10.0.1\bin;C:\Ruby25-x64\bin;C:\Users\Sistemas\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Users\Sistemas\AppData\Roaming\Composer\vendor\bin;C:\Users\Sistemas\AppData\Local\GitHubDesktop\bin;.]
2018-09-24 11:12:36.838 INFO 6200 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2018-09-24 11:12:36.838 INFO 6200 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 2313 ms
2018-09-24 11:12:36.885 INFO 6200 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/]
2018-09-24 11:12:36.900 INFO 6200 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2018-09-24 11:12:36.900 INFO 6200 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-09-24 11:12:36.900 INFO 6200 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2018-09-24 11:12:36.900 INFO 6200 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2018-09-24 11:12:37.057 INFO 6200 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2018-09-24 11:12:37.275 INFO 6200 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2018-09-24 11:12:37.322 INFO 6200 --- [ main] j.LocalContainerEntityManagerFactoryBean : Building JPA container EntityManagerFactory for persistence unit 'default'
2018-09-24 11:12:37.353 INFO 6200 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [
name: default
...]
2018-09-24 11:12:37.416 INFO 6200 --- [ main] org.hibernate.Version : HHH000412: Hibernate Core {5.2.17.Final}
2018-09-24 11:12:37.416 INFO 6200 --- [ main] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
2018-09-24 11:12:37.463 INFO 6200 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
2018-09-24 11:12:37.572 INFO 6200 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
2018-09-24 11:12:38.041 INFO 6200 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2018-09-24 11:12:38.559 WARN 6200 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dgis_cat_municipiosController' defined in file [C:\Users\Sistemas\IdeaProjects\tks\out\production\classes\com\tksys\tks\controller\Dgis_cat_municipiosController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dgis_cat_municipiosServiceImpl' defined in file [C:\Users\Sistemas\IdeaProjects\tks\out\production\classes\com\tksys\tks\services\impl\Dgis_cat_municipiosServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dgis_cat_municipiosRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.tksys.tks.repository.Dgis_cat_municipiosRepository.findAllByCve_entidad(int)! No property cve found for type Dgis_cat_municipios!
2018-09-24 11:12:38.559 INFO 6200 --- [ main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2018-09-24 11:12:38.559 INFO 6200 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2018-09-24 11:12:38.559 INFO 6200 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
2018-09-24 11:12:38.559 INFO 6200 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2018-09-24 11:12:38.575 INFO 6200 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2018-09-24 11:12:38.575 ERROR 6200 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dgis_cat_municipiosController' defined in file [C:\Users\Sistemas\IdeaProjects\tks\out\production\classes\com\tksys\tks\controller\Dgis_cat_municipiosController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dgis_cat_municipiosServiceImpl' defined in file [C:\Users\Sistemas\IdeaProjects\tks\out\production\classes\com\tksys\tks\services\impl\Dgis_cat_municipiosServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dgis_cat_municipiosRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.tksys.tks.repository.Dgis_cat_municipiosRepository.findAllByCve_entidad(int)! No property cve found for type Dgis_cat_municipios!
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:732) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:197) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1267) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1124) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:535) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:759) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869) ~[spring-context-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~[spring-context-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:780) [spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412) [spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:333) [spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1277) [spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1265) [spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE]
at com.tksys.tks.TksApplicationKt.main(TksApplication.kt:13) [classes/:na]
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dgis_cat_municipiosServiceImpl' defined in file [C:\Users\Sistemas\IdeaProjects\tks\out\production\classes\com\tksys\tks\services\impl\Dgis_cat_municipiosServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dgis_cat_municipiosRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.tksys.tks.repository.Dgis_cat_municipiosRepository.findAllByCve_entidad(int)! No property cve found for type Dgis_cat_municipios!
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:732) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:197) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1267) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1124) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:535) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:251) ~[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]
... 70 common frames omitted
Process finished with exit code 1
The exception you get is pretty clear:
java.lang.IllegalArgumentException: Failed to create query for method
public abstract java.util.List
com.tksys.tks.repository.Dgis_cat_municipiosRepository.findAllByCve_entidad(int)!
No property cve found for type Dgis_cat_municipios!
It seems that JPA repository has problems with the _ sign in method signatures.
So please remove all _ in you class, attribute and method names. This should solve your problem.
I tried to update my microservices-based web application from Spring Boot 2.0.0.M3 to the newest 2.0.0.M4.
When running my Eureka server, I'm facing the following exception and the context won't load:
2017-09-19 10:22:05.455 INFO 16388 --- [ main] o.s.core.annotation.AnnotationUtils : Failed to introspect annotations on [class org.springframework.cloud.netflix.hystrix.HystrixAutoConfiguration$$EnhancerBySpringCGLIB$$5d536e23]: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
2017-09-19 10:22:05.456 INFO 16388 --- [ main] o.s.core.annotation.AnnotationUtils : Failed to introspect annotations on [class org.springframework.cloud.netflix.hystrix.HystrixAutoConfiguration$$EnhancerBySpringCGLIB$$5d536e23]: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
2017-09-19 10:22:05.572 INFO 16388 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2017-09-19 10:22:05.573 INFO 16388 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2017-09-19 10:22:05.579 INFO 16388 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/lastn],methods=[GET]}" onto public java.lang.String org.springframework.cloud.netflix.eureka.server.EurekaController.lastn(javax.servlet.http.HttpServletRequest,java.util.Map<java.lang.String, java.lang.Object>)
2017-09-19 10:22:05.580 INFO 16388 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/],methods=[GET]}" onto public java.lang.String org.springframework.cloud.netflix.eureka.server.EurekaController.status(javax.servlet.http.HttpServletRequest,java.util.Map<java.lang.String, java.lang.Object>)
2017-09-19 10:22:05.582 WARN 16388 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
2017-09-19 10:22:05.587 WARN 16388 --- [ main] o.s.b.f.support.DisposableBeanAdapter : Invocation of destroy method 'close' failed on bean with name 'eurekaRegistration': org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
2017-09-19 10:22:05.589 INFO 16388 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2017-09-19 10:22:05.612 INFO 16388 --- [ main] utoConfigurationReportLoggingInitializer :
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2017-09-19 10:22:05.615 ERROR 16388 --- [ main] o.s.boot.SpringApplication : Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:583)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:502)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:756)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:868)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:122)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:386)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1245)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1233)
at fr.auchan.wheatley.discovery.DiscoveryApplication.main(DiscoveryApplication.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run(AbstractRunMojo.java:496)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:724)
at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:531)
at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:355)
at sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:286)
at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:120)
at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:72)
at java.lang.Class.createAnnotationData(Class.java:3521)
at java.lang.Class.annotationData(Class.java:3510)
at java.lang.Class.createAnnotationData(Class.java:3526)
at java.lang.Class.annotationData(Class.java:3510)
at java.lang.Class.getAnnotation(Class.java:3415)
at java.lang.reflect.AnnotatedElement.isAnnotationPresent(AnnotatedElement.java:258)
at java.lang.Class.isAnnotationPresent(Class.java:3425)
at org.springframework.core.annotation.AnnotatedElementUtils.hasAnnotation(AnnotatedElementUtils.java:611)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.isHandler(RequestMappingHandlerMapping.java:177)
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.initHandlerMethods(AbstractHandlerMethodMapping.java:217)
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.afterPropertiesSet(AbstractHandlerMethodMapping.java:188)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.afterPropertiesSet(RequestMappingHandlerMapping.java:129)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1761)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1698)
I wondered if it was due to some configuration on my side, so I tried to recreate an Eureka Server from scratch with Spring Boot 2.0.0.M4 using the Spring Initializr.
The only fact of adding the spring-cloud-starter-eureka-server dependency to the POM triggers the error.
Here's the configuration:
Spring Boot 2.0.0.M4
Spring Cloud Finchley M2
Is there some incompatibility between Eureka and the last milestone version of Spring Boot? Or maybe some configuration point that I might miss? I didn't find anything about it in the migration guide.
EDIT: in the end, the same exception also appears on my client microservices when the spring-cloud-starter-eureka dependency is present in the POM.