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

NPE when deploying an EJB bean in default package

    XMLWordPrintable

    Details

      Description

      This seems to be caused by WELD-2666.

      If Statless EJB bean is declared in default package, during deployment following exception is thrown:

      Caused by: java.lang.NullPointerException
      	at org.jboss.weld.util.Proxies$TypeInfo.add(Proxies.java:85)
      	at org.jboss.weld.util.Proxies$TypeInfo.lambda$new$0(Proxies.java:70)
      	at java.util.Iterator.forEachRemaining(Iterator.java:116)
      	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
      	at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
      	at org.jboss.weld.util.Proxies$TypeInfo.<init>(Proxies.java:70)
      	at org.jboss.weld.util.Proxies$TypeInfo.of(Proxies.java:142)
      	at org.jboss.weld.bean.proxy.ProxyFactory.getProxyName(ProxyFactory.java:191)
      	at org.jboss.weld.bean.proxy.ProxyFactory.<init>(ProxyFactory.java:147)
      	at org.jboss.weld.bean.proxy.ProxyFactory.<init>(ProxyFactory.java:143)
      	at org.jboss.weld.module.ejb.EnterpriseProxyFactory.<init>(EnterpriseProxyFactory.java:50)
      	at org.jboss.weld.module.ejb.SessionBeanProxyInstantiator.<init>(SessionBeanProxyInstantiator.java:48)
      	at org.jboss.weld.module.ejb.SessionBeanImpl.initializeAfterBeanDiscovery(SessionBeanImpl.java:283)
      	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.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      	at org.jboss.threads.JBossThread.run(JBossThread.java:513)
      

        Attachments

          Activity

            People

            Assignee:
            spyrkob Bartosz Spyrko-Smietanko
            Reporter:
            spyrkob Bartosz Spyrko-Smietanko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: