cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harald Walker (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-1945) NullPointerException in W3CDOMStreamReader
Date Sun, 14 Dec 2008 08:42:44 GMT

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

Harald Walker commented on CXF-1945:
------------------------------------

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.


Mime
View raw message