You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Harald Walker (JIRA)" <ji...@apache.org> on 2008/12/14 09:50:44 UTC

[jira] Issue Comment Edited: (CXF-1945) NullPointerException in W3CDOMStreamReader

    [ https://issues.apache.org/jira/browse/CXF-1945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656370#action_12656370 ] 

bitwalker edited comment on CXF-1945 at 12/14/08 12:50 AM:
---------------------------------------------------------------

The problem only occurs on our production system, sometimes several times per day, sometimes after a couple of days.
We could go to 2.1.3 but I would rather not use a snapshot version. I checked the release notes but didn't see issues which might be related to this problem. But I see, that there have been quiet a few changes in the staxutils package, so 2.1.3 seems like a good idea.

I still suggest replacing 
throw new IllegalStateException("Found type: " + content.getClass().getName());
by 
throw new IllegalStateException();
as in revision 651669 or add a null pointer check.

But that won't solve our problem because then we will have an IllegalStateException without knowing why. 

      was (Author: bitwalker):
    The problem only occurs on our production system, sometimes several times per day, sometimes after a couple of days.
We could go to 2.1.3 but I would rather not use a snapshot version. I checked the release notes but didn't see issues which might be related to this problem. 

I still suggest replacing 
throw new IllegalStateException("Found type: " + content.getClass().getName());
by 
throw new IllegalStateException();
as in revision 651669 or add a null pointer check.

But that won't solve our problem because then we will have an IllegalStateException without knowing why. 
  
> NullPointerException in W3CDOMStreamReader
> ------------------------------------------
>
>                 Key: CXF-1945
>                 URL: https://issues.apache.org/jira/browse/CXF-1945
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1.1
>         Environment: Resin 3.1.7, Java 1.5
>            Reporter: Harald Walker
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.