Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9625

Exception on Weld during inicialization of CDI/EJB bean on IBM JDK

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Blocker Blocker
    • None
    • None
    • CDI / Weld, EJB
    • None

      Description of problem:
      Exception on Weld during inicialization of CDI/EJB bean on IBM JDK

      Example of beans:

      @RequestScoped
      public class LoggingBean {
          static {
              System.out.println("something");
          }
      }
      
      @Singleton
      @Startup
      public class LoggingBean {
          static {
              System.out.println("something");
          }
      }
      

      How reproducible:
      Always on IBM JDK

      Steps to Reproduce:

      1. Deploy deployment with beans from description

      Actual results:
      CDI bean:

      12:49:05,070 INFO  [org.jboss.as.repository] (management-handler-thread - 3) WFLYDR0001: Content added at location /home/mkopecky/git/wfly.05/standalone/data/content/f8/f08bc0eb9dd3893743634459d1218cdbfeb4ac/content
      12:49:05,081 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of "test.jar" (runtime-name: "test.jar")
      12:49:05,234 INFO  [org.jboss.weld.deployer] (MSC service thread 1-5) WFLYWELD0003: Processing weld deployment test.jar
      12:49:05,257 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-5) HV000001: Hibernate Validator 5.3.5.Final
      12:49:05,358 INFO  [org.jboss.weld.Version] (MSC service thread 1-2) WELD-000900: 3.0.2 (Final)
      12:49:05,505 INFO  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-3) ISPN000128: Infinispan version: Infinispan 'Chakra' 8.2.8.Final
      12:49:05,625 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.unit."test.jar".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."test.jar".WeldStartService: Failed to start service
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1687)
      	at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1521)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.lang.Thread.run(Thread.java:785)
      Caused by: java.lang.BootstrapMethodError: java.lang.IllegalAccessException: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler' no access to: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler'
      	at org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler.<clinit>(ObserverNotifier.java:480)
      	at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:273)
      	at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:177)
      	at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:171)
      	at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:53)
      	at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:44)
      	at org.jboss.weld.bootstrap.events.BeforeBeanDiscoveryImpl.fire(BeforeBeanDiscoveryImpl.java:54)
      	at org.jboss.weld.bootstrap.WeldStartup.startInitialization(WeldStartup.java:391)
      	at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:76)
      	at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:94)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1695)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1674)
      	... 4 more
      Caused by: java.lang.IllegalAccessException: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler' no access to: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler'
      	at java.lang.invoke.MethodHandles$Lookup.checkClassAccess(MethodHandles.java:371)
      	at java.lang.invoke.MethodHandles$Lookup.checkAccess(MethodHandles.java:281)
      	at java.lang.invoke.MethodHandles$Lookup.checkAccess(MethodHandles.java:264)
      	at java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:468)
      	at java.lang.invoke.MethodHandle.sendResolveMethodHandle(MethodHandle.java:966)
      	at java.lang.invoke.MethodHandle.getCPMethodHandleAt(Native Method)
      	at java.lang.invoke.MethodHandle.resolveInvokeDynamic(MethodHandle.java:856)
      	... 16 more
      
      12:49:05,734 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 20) WFLYCLINF0002: Started client-mappings cache from ejb container
      12:49:05,772 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 3) WFLYCTL0013: Operation ("deploy") failed - address: ({"deployment" => "test.jar"}) - failure description: {
          "WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"test.jar\".WeldStartService" => "Failed to start service
          Caused by: java.lang.BootstrapMethodError: java.lang.IllegalAccessException: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler' no access to: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler'
          Caused by: java.lang.IllegalAccessException: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler' no access to: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler'"},
          "WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"test.jar\".weld.weldClassIntrospector"],
          "WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"test.jar\".ee.ComponentRegistry is missing [jboss.deployment.unit.\"test.jar\".weld.weldClassIntrospector]"]
      }
      12:49:05,774 ERROR [org.jboss.as.server] (management-handler-thread - 3) WFLYSRV0021: Deploy of deployment "test.jar" was rolled back with the following failure message: 
      {
          "WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"test.jar\".WeldStartService" => "Failed to start service
          Caused by: java.lang.BootstrapMethodError: java.lang.IllegalAccessException: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler' no access to: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler'
          Caused by: java.lang.IllegalAccessException: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler' no access to: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler'"},
          "WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"test.jar\".weld.weldClassIntrospector"],
          "WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"test.jar\".ee.ComponentRegistry is missing [jboss.deployment.unit.\"test.jar\".weld.weldClassIntrospector]"]
      }
      12:49:05,791 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0028: Stopped deployment test.jar (runtime-name: test.jar) in 17ms
      

      EJB bean

      12:37:04,047 INFO  [org.jboss.as.repository] (management-handler-thread - 3) WFLYDR0001: Content added at location /home/mkopecky/git/wfly.05/standalone/data/content/fd/828118f8edbfcb42f98f3518dcc46baae85eaa/content
      12:37:04,061 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of "test.jar" (runtime-name: "test.jar")
      12:37:04,238 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) WFLYWELD0003: Processing weld deployment test.jar
      12:37:04,270 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-2) HV000001: Hibernate Validator 5.3.5.Final
      12:37:04,319 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'LoggingBean' in deployment unit 'deployment "test.jar"' are as follows:
      
      	java:global/test/LoggingBean!org.jboss.test.LoggingBean
      	java:app/test/LoggingBean!org.jboss.test.LoggingBean
      	java:module/LoggingBean!org.jboss.test.LoggingBean
      	java:global/test/LoggingBean
      	java:app/test/LoggingBean
      	java:module/LoggingBean
      
      12:37:04,387 INFO  [stdout] (MSC service thread 1-7) something
      12:37:04,428 INFO  [org.jboss.weld.Version] (MSC service thread 1-7) WELD-000900: 3.0.2 (Final)
      12:37:04,544 INFO  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-1) ISPN000128: Infinispan version: Infinispan 'Chakra' 8.2.8.Final
      12:37:04,704 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."test.jar".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."test.jar".WeldStartService: Failed to start service
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1687)
      	at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1521)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.lang.Thread.run(Thread.java:785)
      Caused by: java.lang.BootstrapMethodError: java.lang.IllegalAccessException: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler' no access to: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler'
      	at org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler.<clinit>(ObserverNotifier.java:480)
      	at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:273)
      	at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:177)
      	at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:171)
      	at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:53)
      	at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:44)
      	at org.jboss.weld.bootstrap.events.BeforeBeanDiscoveryImpl.fire(BeforeBeanDiscoveryImpl.java:54)
      	at org.jboss.weld.bootstrap.WeldStartup.startInitialization(WeldStartup.java:391)
      	at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:76)
      	at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:94)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1695)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1674)
      	... 4 more
      Caused by: java.lang.IllegalAccessException: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler' no access to: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler'
      	at java.lang.invoke.MethodHandles$Lookup.checkClassAccess(MethodHandles.java:371)
      	at java.lang.invoke.MethodHandles$Lookup.checkAccess(MethodHandles.java:281)
      	at java.lang.invoke.MethodHandles$Lookup.checkAccess(MethodHandles.java:264)
      	at java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:468)
      	at java.lang.invoke.MethodHandle.sendResolveMethodHandle(MethodHandle.java:966)
      	at java.lang.invoke.MethodHandle.getCPMethodHandleAt(Native Method)
      	at java.lang.invoke.MethodHandle.resolveInvokeDynamic(MethodHandle.java:856)
      	... 16 more
      
      12:37:04,774 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 62) WFLYCLINF0002: Started client-mappings cache from ejb container
      12:37:04,814 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 3) WFLYCTL0013: Operation ("deploy") failed - address: ({"deployment" => "test.jar"}) - failure description: {
          "WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"test.jar\".WeldStartService" => "Failed to start service
          Caused by: java.lang.BootstrapMethodError: java.lang.IllegalAccessException: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler' no access to: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler'
          Caused by: java.lang.IllegalAccessException: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler' no access to: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler'"},
          "WFLYCTL0412: Required services that are not installed:" => [
              "jboss.deployment.unit.\"test.jar\".component.LoggingBean.START",
              "jboss.deployment.unit.\"test.jar\".component.LoggingBean.WeldInterceptorBindingsService",
              "jboss.deployment.unit.\"test.jar\".component.LoggingBean.WeldInstantiator",
              "jboss.deployment.unit.\"test.jar\".weld.weldClassIntrospector"
          ],
          "WFLYCTL0180: Services with missing/unavailable dependencies" => [
              "jboss.deployment.unit.\"test.jar\".component.LoggingBean.START is missing [jboss.deployment.unit.\"test.jar\".component.LoggingBean.WeldInstantiator]",
              "jboss.deployment.unit.\"test.jar\".ee.ComponentRegistry is missing [jboss.deployment.unit.\"test.jar\".weld.weldClassIntrospector]",
              "jboss.deployment.unit.\"test.jar\".component.LoggingBean.WeldInstantiator is missing [jboss.deployment.unit.\"test.jar\".component.LoggingBean.WeldInterceptorBindingsService]",
              "jboss.deployment.unit.\"test.jar\".deploymentCompleteService is missing [jboss.deployment.unit.\"test.jar\".component.LoggingBean.START]",
              "jboss.deployment.unit.\"test.jar\".moduleDeploymentRuntimeInformationStart is missing [jboss.deployment.unit.\"test.jar\".component.LoggingBean.START]"
          ]
      }
      12:37:04,815 ERROR [org.jboss.as.server] (management-handler-thread - 3) WFLYSRV0021: Deploy of deployment "test.jar" was rolled back with the following failure message: 
      {
          "WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"test.jar\".WeldStartService" => "Failed to start service
          Caused by: java.lang.BootstrapMethodError: java.lang.IllegalAccessException: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler' no access to: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler'
          Caused by: java.lang.IllegalAccessException: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler' no access to: 'org.jboss.weld.event.ObserverNotifier$ObserverExceptionHandler'"},
          "WFLYCTL0412: Required services that are not installed:" => [
              "jboss.deployment.unit.\"test.jar\".component.LoggingBean.START",
              "jboss.deployment.unit.\"test.jar\".component.LoggingBean.WeldInterceptorBindingsService",
              "jboss.deployment.unit.\"test.jar\".component.LoggingBean.WeldInstantiator",
              "jboss.deployment.unit.\"test.jar\".weld.weldClassIntrospector"
          ],
          "WFLYCTL0180: Services with missing/unavailable dependencies" => [
              "jboss.deployment.unit.\"test.jar\".component.LoggingBean.START is missing [jboss.deployment.unit.\"test.jar\".component.LoggingBean.WeldInstantiator]",
              "jboss.deployment.unit.\"test.jar\".ee.ComponentRegistry is missing [jboss.deployment.unit.\"test.jar\".weld.weldClassIntrospector]",
              "jboss.deployment.unit.\"test.jar\".component.LoggingBean.WeldInstantiator is missing [jboss.deployment.unit.\"test.jar\".component.LoggingBean.WeldInterceptorBindingsService]",
              "jboss.deployment.unit.\"test.jar\".deploymentCompleteService is missing [jboss.deployment.unit.\"test.jar\".component.LoggingBean.START]",
              "jboss.deployment.unit.\"test.jar\".moduleDeploymentRuntimeInformationStart is missing [jboss.deployment.unit.\"test.jar\".component.LoggingBean.START]"
          ]
      }
      12:37:04,830 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0028: Stopped deployment test.jar (runtime-name: test.jar) in 14ms
      

      Expected results:
      no errors

            mkouba@redhat.com Martin Kouba
            mkopecky@redhat.com Marek Kopecky
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: