Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-1945

NullPointerException in W3CDOMStreamReader

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.0.10, 2.1.4
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Resin 3.1.7, Java 1.5

      Description

      The throw statement 'throw new IllegalStateException("Found type: " + content.getClass().getName());' in the W3CDOMStreamReader class sometimes fails with a null pointer exception. I am not able to reproduce it yet.

      [2008/12/13 13:34:15.647] java.lang.NullPointerException
      [2008/12/13 13:34:15.647] at org.apache.cxf.staxutils.W3CDOMStreamReader.moveToChild(W3CDOMStreamReader.java:167)
      [2008/12/13 13:34:15.647] at org.apache.cxf.staxutils.AbstractDOMStreamReader.next(AbstractDOMStreamReader.java:144)
      [2008/12/13 13:34:15.647] at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:351)
      [2008/12/13 13:34:15.647] at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:313)
      [2008/12/13 13:34:15.647] at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:299)
      [2008/12/13 13:34:15.647] at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.writeSoapEnvelopeStart(SoapOutInterceptor.java:121)
      [2008/12/13 13:34:15.647] at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.handleMessage(SoapOutInterceptor.java:76)
      [2008/12/13 13:34:15.647] at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.handleMessage(SoapOutInterceptor.java:57)
      [2008/12/13 13:34:15.647] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
      [2008/12/13 13:34:15.647] at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:96)
      [2008/12/13 13:34:15.647] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
      [2008/12/13 13:34:15.647] at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:74)
      [2008/12/13 13:34:15.647] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
      [2008/12/13 13:34:15.647] at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
      [2008/12/13 13:34:15.647] at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:92)
      [2008/12/13 13:34:15.647] at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:279)
      [2008/12/13 13:34:15.647] at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:161)
      [2008/12/13 13:34:15.647] at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:174)
      [2008/12/13 13:34:15.647] at org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:152)
      [2008/12/13 13:34:15.647] at javax.servlet.http.HttpServlet.service(HttpServlet.java:153)
      [2008/12/13 13:34:15.647] at javax.servlet.http.HttpServlet.service(HttpServlet.java:91)
      [2008/12/13 13:34:15.647] at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)
      [2008/12/13 13:34:15.647] at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:162)
      [2008/12/13 13:34:15.647] at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
      [2008/12/13 13:34:15.647] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
      [2008/12/13 13:34:15.647] at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:435)
      [2008/12/13 13:34:15.647] at com.caucho.server.port.TcpConnection.run(TcpConnection.java:678)
      [2008/12/13 13:34:15.647] at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721)
      [2008/12/13 13:34:15.647] at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643)
      [2008/12/13 13:34:15.647] at java.lang.Thread.run(Thread.java:595)

        Attachments

          Activity

            People

            • Assignee:
              seanoc Sean O'Callaghan
              Reporter:
              bitwalker Harald Walker
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: