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

Andriy Redko commented on CXF-9007:
-----------------------------------

Thank you [~maghol] , could you please clarify if the issue started to appear 
when have migrated from previous 4.0.x release(s)? Or you just started straight 
with 4.0.4. Also, could you please share what JDK you have been using? (version 
+ vendor). Thank you.

> NullPointerException in client response-handling
> ------------------------------------------------
>
>                 Key: CXF-9007
>                 URL: https://issues.apache.org/jira/browse/CXF-9007
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 4.0.4
>            Reporter: Magnus Holm
>            Priority: Major
>         Attachments: dispatch-impl-npe.txt, interceptor-npe.txt, 
> invoke-async-npe.txt, invoke-sync-npe.txt
>
>
> We're encountering sporadic weird {{NullPointerException}} in various of our 
> tests using different client configurations with wsdls. It seems to only 
> occur right after initialising the client, e.g. only on the first call. I 
> suspect it's some kind of race-condition, but I've not been able to create a 
> reproducer. I was hoping maybe someone from the project would have insight 
> into why this could be happening by looking at the stacktraces. 
> The error we're hitting appears to be here: 
> {code}
> java.lang.NullPointerException: Cannot invoke 
> "org.w3c.dom.Node.getOwnerDocument()" because "nd" is null
>       at 
> org.apache.cxf.databinding.source.XMLStreamDataWriter.writeNode(XMLStreamDataWriter.java:160)
>  ~[cxf-core-4.0.4.jar:4.0.4]
>       at 
> org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:101)
>  ~[cxf-core-4.0.4.jar:4.0.4]
>       at 
> org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:67)
>  ~[cxf-core-4.0.4.jar:4.0.4]
>       at 
> org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:55)
>  ~[cxf-core-4.0.4.jar:4.0.4]
> {code}
> Update: we're using cxf-rt-transports-http-hc5



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to