Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1032

NPE in org.jboss.as.weld.ejb.Jsr299BindingsInterceptor

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.0.0.Beta3
    • Fix Version/s: 7.0.0.CR1
    • Component/s: CDI / Weld
    • Labels:
      None
    • Environment:

      Snapshot b1209

      Description

      I try to migrate my working EAR from 6.0.0 to 7.0.0.beta4 build 1209. However, I get a NPE in org.jboss.as.weld.ejb.Jsr299BindingsInterceptor when I try to invoke my RESTful Web Service.

      Stacktrace:
      06:32:23,759 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/swe1REST].[Resteasy]] (http-127.0.0.1-127.0.0.1-8080-1) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.UnhandledException: javax.ejb.EJBException: java.lang.IllegalStateException: Failed to construct component instance
      at org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:329) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cresteasy%5Cresteasy-jaxrs%5Cmain%5Cresteasy-jaxrs-2.1.0.GA.jar:
      at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:305) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cresteasy%5Cresteasy-jaxrs%5Cmain%5Cresteasy-jaxrs-2.1.0.GA.jar:
      at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:198) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cresteasy%5Cresteasy-jaxrs%5Cmain%5Cresteasy-jaxrs-2.1.0.GA.jar:
      at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:174) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cresteasy%5Cresteasy-jaxrs%5Cmain%5Cresteasy-jaxrs-2.1.0.GA.jar:
      at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:518) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cresteasy%5Cresteasy-jaxrs%5Cmain%5Cresteasy-jaxrs-2.1.0.GA.jar:
      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:480) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cresteasy%5Cresteasy-jaxrs%5Cmain%5Cresteasy-jaxrs-2.1.0.GA.jar:
      at org.jboss.resteasy.core.AsynchronousDispatcher.invoke(AsynchronousDispatcher.java:243) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cresteasy%5Cresteasy-jaxrs%5Cmain%5Cresteasy-jaxrs-2.1.0.GA.jar:
      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cresteasy%5Cresteasy-jaxrs%5Cmain%5Cresteasy-jaxrs-2.1.0.GA.jar:
      at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:207) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cresteasy%5Cresteasy-jaxrs%5Cmain%5Cresteasy-jaxrs-2.1.0.GA.jar:
      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cresteasy%5Cresteasy-jaxrs%5Cmain%5Cresteasy-jaxrs-2.1.0.GA.jar:
      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cresteasy%5Cresteasy-jaxrs%5Cmain%5Cresteasy-jaxrs-2.1.0.GA.jar:
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Cjavax%5Cservlet%5Capi%5Cmain%5Cjboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cas%5Cweb%5Cmain%5Cjbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cas%5Cweb%5Cmain%5Cjbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT
      at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cweld%5Ccore%5Cmain%5Cweld-core-1.1.1.Final.jar:2011-04-04 15:54
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cas%5Cweb%5Cmain%5Cjbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cas%5Cweb%5Cmain%5Cjbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cas%5Cweb%5Cmain%5Cjbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cas%5Cweb%5Cmain%5Cjbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT
      at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)
      at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)
      at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cas%5Cweb%5Cmain%5Cjboss-as-web-7.0.0.Beta4-SNAPSHOT.jar:7.0.0.Beta4-SNAPSHOT
      at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cas%5Cjpa%5Cmain%5Cjboss-as-jpa-7.0.0.Beta4-SNAPSHOT.jar:7.0.0.Beta4-SNAPSHOT
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cas%5Cweb%5Cmain%5Cjbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cas%5Cweb%5Cmain%5Cjbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cas%5Cweb%5Cmain%5Cjbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cas%5Cweb%5Cmain%5Cjbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:893) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cas%5Cweb%5Cmain%5Cjbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cas%5Cweb%5Cmain%5Cjbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2054) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cas%5Cweb%5Cmain%5Cjbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT
      at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]
      Caused by: javax.ejb.EJBException: java.lang.IllegalStateException: Failed to construct component instance
      at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:206)
      at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)
      at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:421)
      at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invoke(CMTTxInterceptor.java:235)
      at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:47)
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
      at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
      at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:146)
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
      at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
      at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:76)
      at de.swe1.kundenverwaltung.rest.KundenverwaltungResource$$$view1.findKunden(Unknown Source) [swe1EJB.jar:]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_26]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_26]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_26]
      at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_26]
      at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cresteasy%5Cresteasy-jaxrs%5Cmain%5Cresteasy-jaxrs-2.1.0.GA.jar:
      at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:252) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cresteasy%5Cresteasy-jaxrs%5Cmain%5Cresteasy-jaxrs-2.1.0.GA.jar:
      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:217) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cresteasy%5Cresteasy-jaxrs%5Cmain%5Cresteasy-jaxrs-2.1.0.GA.jar:
      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:206) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cresteasy%5Cresteasy-jaxrs%5Cmain%5Cresteasy-jaxrs-2.1.0.GA.jar:
      at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:503) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cresteasy%5Cresteasy-jaxrs%5Cmain%5Cresteasy-jaxrs-2.1.0.GA.jar:
      ... 26 more
      Caused by: java.lang.IllegalStateException: Failed to construct component instance
      at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:158)
      at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:79)
      at org.jboss.as.ejb3.component.stateless.StatelessSessionComponent$1.create(StatelessSessionComponent.java:62)
      at org.jboss.as.ejb3.component.stateless.StatelessSessionComponent$1.create(StatelessSessionComponent.java:59)
      at org.jboss.ejb3.pool.AbstractPool.create(AbstractPool.java:65)
      at org.jboss.ejb3.pool.strictmax.StrictMaxPool.get(StrictMaxPool.java:145)
      at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:48)
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
      at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:370)
      at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:271)
      ... 45 more
      Caused by: java.lang.NullPointerException
      at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.getInterceptorBindings(Jsr299BindingsInterceptor.java:108) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cas%5Cweld%5Cmain%5Cjboss-as-weld-7.0.0.Beta4-SNAPSHOT.jar:7.0.0.Beta4-SNAPSHOT
      at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.init(Jsr299BindingsInterceptor.java:97) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cas%5Cweld%5Cmain%5Cjboss-as-weld-7.0.0.Beta4-SNAPSHOT.jar:7.0.0.Beta4-SNAPSHOT
      at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doPostConstruct(Jsr299BindingsInterceptor.java:82) file:C:%5CSoftware%5Cjboss-7.0.0.Beta4-b1209%5Cmodules%5Corg%5Cjboss%5Cas%5Cweld%5Cmain%5Cjboss-as-weld-7.0.0.Beta4-SNAPSHOT.jar:7.0.0.Beta4-SNAPSHOT
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_26]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_26]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_26]
      at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_26]
      at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:61)
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
      at org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptor.java:71)
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
      at org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptor.java:71)
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
      at org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptor.java:71)
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
      at org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptor.java:71)
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
      at org.jboss.as.ee.component.ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptor.java:53)
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
      at org.jboss.as.ee.component.ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptor.java:53)
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
      at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:44)
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
      at org.jboss.as.ejb3.component.session.SessionInvocationContextInterceptor.processInvocation(SessionInvocationContextInterceptor.java:66)
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
      at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
      at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
      at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:156)
      ... 54 more

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                swd847 Stuart Douglas
                Reporter:
                juergen.zimmermann Juergen Zimmermann
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: