Announcement Announcement Module
Collapse
No announcement yet.
NPE with DebugInterceptor Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • NPE with DebugInterceptor

    Hi,
    i added a debugInterceptor to my SWS project this way:
    Code:
    <aop:config proxy-target-class="true">
        <aop:advisor advice-ref="debugInterceptor" pointcut="execution (public * de.test.webservice..*(..))" />
    </aop:config>
    <bean id="debugInterceptor" class="org.springframework.aop.interceptor.DebugInterceptor"/>
    My JAXB generated classes are below the webservice package(de.test.jaxb...)
    But if i call my webservice, i get this npe:

    Code:
    806167 [http-8080-Processor24] [...]
    DEBUG endpoint.PayloadValidatingInterceptor  - Request message validated
    806167 [http-8080-Processor24] DEBUG soap.SoapMessageDispatcher  - Testing endpoint adapter [org.springframework.ws.endpoint.MessageEndpointAdapter@1bf3d77]
    806167 [http-8080-Processor24] DEBUG soap.SoapMessageDispatcher  - Testing endpoint exception resolver [org.springframework.ws.soap.endpoint.SoapFaultMappingExceptionResolver@5c7260]
    806292 [http-8080-Processor24] WARN  soap.SoapMessageDispatcher  - Endpoint invocation resulted in exception - responding with SOAP Fault
    java.lang.NullPointerException
    	at org.springframework.ws.endpoint.AbstractMarshallingPayloadEndpoint.invoke(AbstractMarshallingPayloadEndpoint.java:43)
    	at org.springframework.ws.endpoint.MessageEndpointAdapter.invoke(MessageEndpointAdapter.java:32)
    	at org.springframework.ws.MessageDispatcher.dispatch(MessageDispatcher.java:247)
    	at org.springframework.ws.MessageDispatcher.invoke(MessageDispatcher.java:209)
    	at org.springframework.ws.transport.http.MessageEndpointHandlerAdapter.handlePost(MessageEndpointHandlerAdapter.java:91)
    	at org.springframework.ws.transport.http.MessageEndpointHandlerAdapter.handle(MessageEndpointHandlerAdapter.java:68)
    	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
    	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:728)
    	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)
    	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:360)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    	at java.lang.Thread.run(Unknown Source)
    Cheers,

    Ingo

    PS.: I use Spring 2 RC2, SWS nightly 20060727

  • #2
    Now that's weird. The only thing happening on line 43 is a method call on the unmarshaller and a method call on incoming request message. The request message can't be null, because you validate it, so it must be the unmarshaller. But that can't be null either, because its presence is checked in the afterPropertiesSet().

    Can you perhaps debug your app, and see what the problem is?

    Thanks,

    Comment


    • #3
      I think i can't debug it because there are no source code packages available for the nightly builds.

      Ingo

      Comment

      Working...
      X