Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8817

Service POJO deployment throws NullPointerException

XMLWordPrintable

    • Hide

      Deploy this service POJO as part of the EJB jar file with in an EAR. Then deploy the EAR and server startup throws this exception.

      Show
      Deploy this service POJO as part of the EJB jar file with in an EAR. Then deploy the EAR and server startup throws this exception.

      I have a very simple test service POJO that I'm trying to deploy to JBoss AS 6 on Linux. But it's failing with below exception:
      Java code for the test can be obtained from the forum link: http://community.jboss.org/message/581413

      14:42:21,599 ERROR [AbstractKernelController] Error installing to Create: name=jboss.j2ee:ear=foliage.ear,jar=foliageEJB.jar,name=CoolSystemInitService,service=EJB3 state=Configured: java.lang.NullPointerException
      at org.jboss.weld.integration.instantiator.Jsr299BeanInstantiator.locateWeldManager(Jsr299BeanInstantiator.java:102) [:6.0.0.20101110-CR1]
      at org.jboss.weld.integration.instantiator.Jsr299BeanInstantiator.getWeldManager(Jsr299BeanInstantiator.java:93) [:6.0.0.20101110-CR1]
      at org.jboss.weld.integration.instantiator.Jsr299BeanInstantiator.create(Jsr299BeanInstantiator.java:72) [:6.0.0.20101110-CR1]
      at org.jboss.ejb3.EJBContainer.construct(EJBContainer.java:997) [:1.6.3]
      at org.jboss.ejb3.service.ServiceContainer.create(ServiceContainer.java:205) [:1.6.3]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_21]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_21]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_21]
      at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_21]
      at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect.jar:2.2.0.Alpha9]
      at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect.jar:2.2.0.Alpha9]

              marius.bogoevici Marius Bogoevici (Inactive)
              devinderpal_jira Jboss fan99 (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: