Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2572

Java 12 triggers WeldException: WELD-001524: Unable to load proxy class for bean Implicit Bean

XMLWordPrintable

    • Hide

      1. Use Java 12 final.
      2. Deploy attached bugdemo.war (rather small and simple Hello World, sources included) and start appserver.

      Show
      1. Use Java 12 final. 2. Deploy attached bugdemo.war (rather small and simple Hello World, sources included) and start appserver.

      Starting any webapp with weld (weld-servelt-shaded.jar) under Java 12 results in an exception. With Java 11 everything works fine. See attached detailed log file. I think the relevant part is the following:

      Caused by: org.jboss.weld.exceptions.WeldException: WELD-001524: Unable to load proxy class for bean Implicit Bean [javax.enterprise.inject.Instance] with qualifiers [@Default] with class interface javax.enterprise.inject.Instance
      at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:378)
      at org.jboss.weld.bean.builtin.AbstractFacadeBean.initializeAfterBeanDiscovery(AbstractFacadeBean.java:61)
      at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$AfterBeanDiscoveryInitializerFactory.doWork(ConcurrentBeanDeployer.java:111)
      at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$AfterBeanDiscoveryInitializerFactory.doWork(ConcurrentBeanDeployer.java:102)
      at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:62)
      at 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:835)
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jboss.classfilewriter.ClassFile
      at org.jboss.weld.bean.proxy.ProxyFactory.newClassFile(ProxyFactory.java:494)
      at org.jboss.weld.bean.proxy.ProxyFactory.createProxyClass(ProxyFactory.java:444)
      at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:370)

        1. log.txt
          14 kB
        2. bugdemo.war
          6.12 MB

              nziakova@redhat.com Nikoleta Ziakova (Inactive)
              chris21k_2 Chris Whowantstoknown (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: