2 Replies Latest reply on Aug 20, 2013 4:01 AM by Yusuf Bata

    NPE in Weld Service.start on ear deployment

    inv3r53 d Novice

      Hi ,

      i have deployed an ear containging many subdeployments(jars,ejb jars,)

       

      i get the below error

       

       

      14:46:02,334 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."my.ear".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."nms_shm.ear".WeldService: java.lang.NullPointerException

          at org.jboss.as.weld.services.WeldService.start(WeldService.java:83)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-2.jar:1.0.2.GA-redhat-2]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-2.jar:1.0.2.GA-redhat-2]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_21]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21]

          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]

      Caused by: java.lang.NullPointerException

          at org.jboss.weld.introspector.jlr.WeldConstructorImpl.of(WeldConstructorImpl.java:70)

          at org.jboss.weld.bean.AbstractClassBean.initEnhancedSubclass(AbstractClassBean.java:461)

          at org.jboss.weld.bean.AbstractClassBean.initializeAfterBeanDiscovery(AbstractClassBean.java:188)

          at org.jboss.weld.bootstrap.BeanDeployment.doAfterBeanDiscovery(BeanDeployment.java:229)

          at org.jboss.weld.bootstrap.BeanDeployment.afterBeanDiscovery(BeanDeployment.java:221)

          at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:365)

          at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:82)

          at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)

          ... 5 more

       

       

       

      I only introduced an interceptor class in all beans.xml files within the sub deployments and it fails with his error. without my interceptor class declaration in beans.xml files the ear does get deployed