Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[management] ExceptionInInitializerError while upgrading jdk to 11 #2481

Closed
bkhadige opened this issue Jul 22, 2019 · 7 comments

Comments

@bkhadige
Copy link

commented Jul 22, 2019

ExceptionInInitializerError while starting management-api using java 11

Expected Behavior

...
### org.apache.commons.### lang3**.time.FastDateFormat.getInstance(FastDateFormat.java:119)**

Current Behavior

Error creating bean with name 'logsServiceImpl' defined in URL [jar:file:.../gravitee-management-api-service-1.28.0.jar!/io/gravitee/management/service/impl/LogsServiceImpl.class]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError

Possible Solution

Steps to Reproduce (for bugs)

  1. use jre-11-openjdk-11.0.1.13-3.el7_6.x86_64

Context

  • Upgrade Java version from 8 to 11

Your Environment

  • Version used: 1.28.0
  • Browser Name and version:
  • Operating System and version: rhel 7.6
@brasseld brasseld self-assigned this Jul 22, 2019
@brasseld brasseld added this to the APIM - 1.28.x milestone Jul 22, 2019
@riosje

This comment has been minimized.

Copy link

commented Sep 11, 2019

Guys i think you should change the documentation to support only Java 8 while you fix this issue.
I have the same issue with the following version.
openjdk version "11.0.4" 2019-07-16 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.4+11-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.4+11-LTS, mixed mode, sharing).

@brasseld brasseld modified the milestones: APIM - 1.28.x, APIM - 1.29.0 Sep 11, 2019
aelamrani added a commit to gravitee-io/gravitee-management-rest-api that referenced this issue Sep 17, 2019
aelamrani added a commit to gravitee-io/gravitee-management-rest-api that referenced this issue Sep 17, 2019
@aelamrani aelamrani removed this from the APIM - 1.29.0 milestone Sep 17, 2019
@NicolasGeraud NicolasGeraud added this to the APIM - 1.29.1 milestone Sep 20, 2019
brasseld added a commit to gravitee-io/gravitee-management-rest-api that referenced this issue Sep 20, 2019
brasseld added a commit to gravitee-io/gravitee-management-rest-api that referenced this issue Sep 20, 2019
@brasseld

This comment has been minimized.

Copy link
Member

commented Sep 20, 2019

@brasseld brasseld closed this Sep 20, 2019
aelamrani added a commit to gravitee-io/gravitee-management-rest-api that referenced this issue Sep 22, 2019
@julienfradillon

This comment has been minimized.

Copy link

commented Oct 1, 2019

Hi, I have always a problem when I try APIM 1.29.1 whis java 11:

17:19:08.214 [graviteeio-node] WARN o.s.c.a.AnnotationConfigApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'alertTriggerServiceImpl': Unsatisfied dependency expressed through field 'apiService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiServiceImpl': Unsatisfied dependency expressed through field 'eventService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eventServiceImpl': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userServiceImpl': Unsatisfied dependency expressed through field 'applicationService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'applicationServiceImpl': Unsatisfied dependency expressed through field 'subscriptionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'subscriptionServiceImpl' defined in URL [jar:file:/opt/mdsa358/graviteeio-management-api-1.29.1/lib/gravitee-management-api-service-1.29.1.jar!/io/gravitee/management/service/impl/SubscriptionServiceImpl.class]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError

@brasseld

This comment has been minimized.

Copy link
Member

commented Oct 1, 2019

Please provide the complete stack trace.

@julienfradillon

This comment has been minimized.

Copy link

commented Oct 1, 2019

Oct 1 09:26:15 intapigra-vli01 gravitee: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'alertTriggerServiceImpl': Unsatisfied dependency expressed through field 'apiService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiServiceImpl': Unsatisfied dependency expressed through field 'eventService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eventServiceImpl': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userServiceImpl': Unsatisfied dependency expressed through field 'applicationService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'applicationServiceImpl': Unsatisfied dependency expressed through field 'subscriptionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'subscriptionServiceImpl' defined in URL [jar:file:/opt/mdsa358/graviteeio-management-api-1.29.1/lib/gravitee-management-api-service-1.29.1.jar!/io/gravitee/management/service/impl/SubscriptionServiceImpl.class]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
Oct 1 09:26:15 intapigra-vli01 gravitee: at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596)
Oct 1 09:26:15 intapigra-vli01 gravitee: at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)
Oct 1 09:26:15 intapigra-vli01 gravitee: at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374)
Oct 1 09:26:15 intapigra-vli01 gravitee: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1395)
Oct 1 09:26:15 intapigra-vli01 gravitee: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592)
Oct 1 09:26:15 intapigra-vli01 gravitee: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
Oct 1 09:26:15 intapigra-vli01 gravitee: at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
Oct 1 09:26:15 intapigra-vli01 gravitee: at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
Oct 1 09:26:15 intapigra-vli01 gravitee: at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
Oct 1 09:26:15 intapigra-vli01 gravitee: at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
Oct 1 09:26:15 intapigra-vli01 gravitee: at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:849)
Oct 1 09:26:15 intapigra-vli01 gravitee: at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)
Oct 1 09:26:15 intapigra-vli01 gravitee: at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
Oct 1 09:26:15 intapigra-vli01 gravitee: at io.gravitee.node.container.spring.SpringBasedContainer.initializeContext(SpringBasedContainer.java:61)
Oct 1 09:26:15 intapigra-vli01 gravitee: at io.gravitee.node.container.spring.SpringBasedContainer.initialize(SpringBasedContainer.java:51)
Oct 1 09:26:15 intapigra-vli01 gravitee: at io.gravitee.node.container.AbstractContainer.(AbstractContainer.java:41)
Oct 1 09:26:15 intapigra-vli01 gravitee: at io.gravitee.node.container.spring.SpringBasedContainer.(SpringBasedContainer.java:44)
Oct 1 09:26:15 intapigra-vli01 gravitee: at io.gravitee.management.standalone.ManagementContainer.(ManagementContainer.java:27)
Oct 1 09:26:15 intapigra-vli01 gravitee: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Oct 1 09:26:15 intapigra-vli01 gravitee: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
Oct 1 09:26:15 intapigra-vli01 gravitee: at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
Oct 1 09:26:15 intapigra-vli01 gravitee: at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
Oct 1 09:26:15 intapigra-vli01 gravitee: at java.base/java.lang.Class.newInstance(Class.java:584)
Oct 1 09:26:15 intapigra-vli01 gravitee: at io.gravitee.management.standalone.boostrap.Bootstrap.init(Bootstrap.java:56)
Oct 1 09:26:15 intapigra-vli01 gravitee: at io.gravitee.management.standalone.boostrap.Bootstrap.start(Bootstrap.java:158)
Oct 1 09:26:15 intapigra-vli01 gravitee: at io.gravitee.management.standalone.boostrap.Bootstrap.main(Bootstrap.java:171)
Oct 1 09:26:15 intapigra-vli01 gravitee: Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiServiceImpl': Unsatisfied dependency expressed through field 'eventService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eventServiceImpl': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userServiceImpl': Unsatisfied dependency expressed through field 'applicationService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'applicationServiceImpl': Unsatisfied dependency expressed through field 'subscriptionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'subscriptionServiceImpl' defined in URL [jar:file:/opt/mdsa358/graviteeio-management-api-1.29.1/lib/gravitee-management-api-service-1.29.1.jar!/io/gravitee/management/service/impl/SubscriptionServiceImpl.class]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError

@julienfradillon

This comment has been minimized.

Copy link

commented Oct 1, 2019

@julienfradillon

This comment has been minimized.

Copy link

commented Oct 9, 2019

Hi, have you take a look ?

NicolasGeraud added a commit to gravitee-io/gravitee-management-rest-api that referenced this issue Oct 14, 2019
@aelamrani aelamrani reopened this Oct 15, 2019
NicolasGeraud added a commit to gravitee-io/gravitee-management-rest-api that referenced this issue Oct 16, 2019
brasseld added a commit to gravitee-io/gravitee-management-rest-api that referenced this issue Oct 16, 2019
@brasseld brasseld closed this Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
API Management
Awaiting triage
6 participants
You can’t perform that action at this time.