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

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.5.Final, 3.1.0.Final
    • Fix Version/s: 3.1.1.Final
    • Labels:
    • Environment:

      Win 10 x64/Linux Debian Buster, Tomcat 9.0.17, OpenJDK 12

    • Steps to Reproduce:
      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.

      Description

      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)

        Gliffy Diagrams

          Attachments

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

            Activity

              People

              • Assignee:
                nziakova Nikoleta Ziakova
                Reporter:
                chris21k_2 Chris Whowantstoknown
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: