2 Replies Latest reply on Nov 30, 2012 10:59 AM by juergen.zimmermann

    JBossAS 7.1.3.CR1: JBoss Solder doesn't work anymore

    juergen.zimmermann

      I compiled JBossAS 7.1.3.CR1 and then tried to deploy my war which uses JBoss Solder 3.1.1.Final and runs fine on JBossAS 7.1.2.Final. 

      However, during deployment I'm getting a NPE in Solder's GenericBeanExtension.registerGenericBeanObserverMethod(). Please see the stacktrace below. Any hint is very appreciated since DeltaSpike lacks e.g. all the JSF extensions being provided by Seam 3. The "JBoss AS 7 Develpment" community group redirected my to the Seam/Weld project.

      Stacktrace:

      19:58:15,920 ERROR [org.jboss.msc.service.fail] MSC00001: Failed to start service jboss.deployment.unit."shop.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."shop.war".WeldService: org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:

      Exception 0 :

      org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:

      Exception 0 :

      java.lang.NullPointerException

      at org.jboss.solder.bean.generic.GenericBeanExtension.registerGenericBeanObserverMethod(GenericBeanExtension.java:378)

      at sun.reflect.GeneratedMethodAccessor429.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:601)

      at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:267)

      at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)

      at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)

      at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:263)

      at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170)

      at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:51)

      at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154)

      at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:245)

      at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:233)

      at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:213)

      at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:117)

      at org.jboss.weld.event.TransactionalObserverNotifier.notifyObserver(TransactionalObserverNotifier.java:44)

      at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:85)

      at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:75)

      at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:60)

      at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:38)

      at org.jboss.weld.bootstrap.events.ProcessObserverMethodImpl.fire(ProcessObserverMethodImpl.java:45)

      at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.addObserverMethod(AfterBeanDiscoveryImpl.java:76)

      at org.richfaces.cdi.push.PushCDIExtension.afterBeanDiscovery(PushCDIExtension.java:99)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:601)

      at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:267)

      at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)

      at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)

      at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:263)

      at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170)

      at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:51)

      at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154)

      at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:245)

      at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:233)

      at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:213)

      at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:75)

      at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:46)

      at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:42)

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

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

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

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

      at java.lang.Thread.run(Thread.java:722)