1 Reply Latest reply on Jun 4, 2012 2:04 PM by Jason Porter

    NPE in Solder after upgrading from Weld 1.1.8 to 2.0.0.Alpha2

    Juergen Zimmermann Master

      After upgrading my (small) GAE-based app from Weld 1.1.8 to 2.0.0.Alpha2 I'm getting the following stacktrace when appengine is started locally. Any hint is appreciated.

       

      org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:
      Exception 0 :
      java.lang.NullPointerException
      at org.jboss.solder.reflection.AnnotationInspector.getAnnotations(AnnotationInspector.java:254)
      at org.jboss.solder.bean.generic.GenericBeanExtension.getGenericConfiguration(GenericBeanExtension.java:520)
      at org.jboss.solder.bean.generic.GenericBeanExtension.processBean(GenericBeanExtension.java:410)
      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 com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:115)
      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.annotated.runtime.InvokableAnnotatedMethod.invokeOnInstance(InvokableAnnotatedMethod.java:82)
      at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:105)
      at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:256)
      at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:86)
      at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:243)
      at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:218)
      at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:651)
      at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:633)
      at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:69)
      at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:38)
      at org.jboss.weld.bootstrap.events.ProcessBeanImpl.fire(ProcessBeanImpl.java:40)
      at org.jboss.weld.bootstrap.events.ProcessBeanImpl.fire(ProcessBeanImpl.java:35)
      at org.jboss.weld.bootstrap.AbstractBeanDeployer.fireBeanEvents(AbstractBeanDeployer.java:168)
      at org.jboss.weld.bootstrap.AbstractBeanDeployer.fireBeanEvents(AbstractBeanDeployer.java:147)
      at org.jboss.weld.bootstrap.BeanDeployer.deploy(BeanDeployer.java:312)
      at org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:261)
      at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:406)
      at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:173)
      at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
      at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
      at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
      at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
      at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      at org.mortbay.jetty.Server.doStart(Server.java:224)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:196)
      at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:239)
      at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:146)
      at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:189)
      at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
      at com.google.appengine.tools.development.DevAppServerMain.<init>(DevAppServerMain.java:128)
      at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:104)

      at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:40)
      at org.jboss.weld.bootstrap.events.ProcessBeanImpl.fire(ProcessBeanImpl.java:40)
      at org.jboss.weld.bootstrap.events.ProcessBeanImpl.fire(ProcessBeanImpl.java:35)
      at org.jboss.weld.bootstrap.AbstractBeanDeployer.fireBeanEvents(AbstractBeanDeployer.java:168)
      at org.jboss.weld.bootstrap.AbstractBeanDeployer.fireBeanEvents(AbstractBeanDeployer.java:147)
      at org.jboss.weld.bootstrap.BeanDeployer.deploy(BeanDeployer.java:312)
      at org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:261)
      at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:406)
      at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:173)
      at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
      at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
      at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
      at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
      at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      at org.mortbay.jetty.Server.doStart(Server.java:224)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:196)
      at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:239)
      at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:146)
      at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:189)
      at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
      at com.google.appengine.tools.development.DevAppServerMain.<init>(DevAppServerMain.java:128)
      at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:104)