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

Wrong Weld runtime MSC dependencies set up causes missing service exception

XMLWordPrintable

    • Hide

      Install IBM JDK 11 and switch to it - I'm using :

      java version "11.0.13" 2021-10-19
      IBM Semeru Runtime Certified Edition 11.0.13.0 (build 11.0.13+8)
      Eclipse OpenJ9 VM 11.0.13.0 (build openj9-0.29.0, JRE 11 Linux amd64-64-Bit Compressed References 20211022_206 (JIT enabled, AOT enabled)
      OpenJ9 - e1e72c497
      OMR - 299b6a2d2
      JCL - 43ed76284c based on jdk-11.0.13+8)

      My OS version is:

      Linux supernova 5.15.13-200.fc35.x86_64 #1 SMP Wed Jan 5 16:39:13 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

      Build WildFly and do the following two steps:
      [1] cd testsuite/integration/basic
      [2] mvn clean test -Dtest="*/deployment/classloading/ear/*/Ear*TestCase , **/jpa/initializeinorder/InitializeInOrderTestCase"

      The problem is not reproducible always, but for me
      every third run of step [2] fails.
      I was not able to reproduce the problem just by running :

      mvn test -Dtest="**/jpa/initializeinorder/InitializeInOrderTestCase"

      Show
      Install IBM JDK 11 and switch to it - I'm using : java version "11.0.13" 2021-10-19 IBM Semeru Runtime Certified Edition 11.0.13.0 (build 11.0.13+8) Eclipse OpenJ9 VM 11.0.13.0 (build openj9-0.29.0, JRE 11 Linux amd64-64-Bit Compressed References 20211022_206 (JIT enabled, AOT enabled) OpenJ9 - e1e72c497 OMR - 299b6a2d2 JCL - 43ed76284c based on jdk-11.0.13+8) My OS version is: Linux supernova 5.15.13-200.fc35.x86_64 #1 SMP Wed Jan 5 16:39:13 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Build WildFly and do the following two steps: [1] cd testsuite/integration/basic [2] mvn clean test -Dtest="* /deployment/classloading/ear/ */Ear*TestCase , **/jpa/initializeinorder/InitializeInOrderTestCase" The problem is not reproducible always, but for me every third run of step [2] fails. I was not able to reproduce the problem just by running : mvn test -Dtest="**/jpa/initializeinorder/InitializeInOrderTestCase"

      org.jboss.msc.service.ServiceNotFoundException: service jboss.persistenceunit."InitializeInOrderTestCase.ear/web.war#pu1" not found
      at org.jboss.msc@1.4.14.Final-SNAPSHOT//org.jboss.msc.service.ServiceContainerImpl.getRequiredService(ServiceContainerImpl.java:680)
      at org.jboss.as.weld.jpa@27.0.0.Beta1-SNAPSHOT//org.jboss.as.weld.services.bootstrap.WeldJpaInjectionServices.registerPersistenceUnitInjectionPoint(WeldJpaInjectionServices.java:112)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.injection.ResourceInjectionFactory$PersistenceUnitResourceInjectionProcessor.getResourceReferenceFactory(ResourceInjectionFactory.java:133)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.injection.ResourceInjectionFactory$PersistenceUnitResourceInjectionProcessor.getResourceReferenceFactory(ResourceInjectionFactory.java:121)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.injection.ResourceInjectionProcessor.createFieldResourceInjection(ResourceInjectionProcessor.java:104)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.injection.ResourceInjectionProcessor.createResourceInjections(ResourceInjectionProcessor.java:141)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.injection.ResourceInjectionProcessor.createResourceInjections(ResourceInjectionProcessor.java:94)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.injection.ResourceInjectionFactory.discoverType(ResourceInjectionFactory.java:272)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.injection.ResourceInjectionFactory.getResourceInjections(ResourceInjectionFactory.java:81)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.injection.producer.ResourceInjector.<init>(ResourceInjector.java:59)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.injection.producer.ResourceInjector.of(ResourceInjector.java:48)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.injection.producer.BeanInjectionTarget.<init>(BeanInjectionTarget.java:63)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.injection.producer.BeanInjectionTarget.createDefault(BeanInjectionTarget.java:47)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.manager.InjectionTargetFactoryImpl.chooseInjectionTarget(InjectionTargetFactoryImpl.java:139)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:88)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.bean.ManagedBean.<init>(ManagedBean.java:102)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.bean.ManagedBean.of(ManagedBean.java:82)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.bootstrap.AbstractBeanDeployer.createManagedBean(AbstractBeanDeployer.java:280)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.bootstrap.BeanDeployer.createClassBean(BeanDeployer.java:221)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.bootstrap.ConcurrentBeanDeployer$2.doWork(ConcurrentBeanDeployer.java:68)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.bootstrap.ConcurrentBeanDeployer$2.doWork(ConcurrentBeanDeployer.java:65)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:62)
      at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:55)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      at java.base/java.lang.Thread.run(Thread.java:866)
      at org.jboss.threads@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513)

              manovotn Matěj Novotný
              ropalka Richard Opalka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: