cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Tam (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-236) NPE thrown by XmlStreamWriter when calling StaxUtils.copy()
Date Mon, 13 Nov 2006 22:06:38 GMT
     [ http://issues.apache.org/jira/browse/CXF-236?page=all ]

William Tam updated CXF-236:
----------------------------

    Attachment: headerSoapReq.xml

test data for unit test

> NPE thrown by XmlStreamWriter when calling StaxUtils.copy()
> -----------------------------------------------------------
>
>                 Key: CXF-236
>                 URL: http://issues.apache.org/jira/browse/CXF-236
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0-M1
>         Environment: Windows XP 
>            Reporter: William Tam
>         Attachments: headerSoapReq.xml, patch.txt
>
>
> The following stack trace observed when copying the soap message:
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
>   <soap:Header>
>     <ns3:SOAPHeaderInfo xmlns:ns3="http://apache.org/headers/types" xmlns:ns2="http://www.w3.org/2005/08/addressing/wsdl">
>       <originator>in originator</originator>
>       <message>in message</message>
>     </ns3:SOAPHeaderInfo>
>   </soap:Header>
>   <soap:Body>
>     <ns3:inHeader xmlns:ns3="http://apache.org/headers/types" xmlns:ns2="http://www.w3.org/2005/08/addressing/wsdl">
>       <requestType>in request type</requestType>
>     </ns3:inHeader>
>   </soap:Body>
> </soap:Envelope>
> [surefire] testCopy(org.apache.cxf.staxutils.StaxUtilsTest)  Time elapsed: 0.015
>  sec  <<< ERROR!
> java.lang.NullPointerException
>         at com.ctc.wstx.util.BijectiveNsMap.findPrefixByUri(BijectiveNsMap.java:
> 132)
>         at com.ctc.wstx.sw.SimpleOutputElement.getPrefix(SimpleOutputElement.jav
> a:525)
>         at com.ctc.wstx.sw.BaseNsStreamWriter.getPrefix(BaseNsStreamWriter.java:
> 136)
>         at org.apache.cxf.staxutils.StaxUtils.writeStartElement(StaxUtils.java:2
> 27)
>         at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:194)
>         at org.apache.cxf.staxutils.StaxUtilsTest.testCopy(StaxUtilsTest.java:60
> )
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at junit.framework.TestCase.runTest(TestCase.java:154)
>         at junit.framework.TestCase.runBare(TestCase.java:127)
>         at junit.framework.TestResult$1.protect(TestResult.java:106)
>         at junit.framework.TestResult.runProtected(TestResult.java:124)
>         at junit.framework.TestResult.run(TestResult.java:109)
>         at junit.framework.TestCase.run(TestCase.java:118)
>         at junit.framework.TestSuite.runTest(TestSuite.java:208)
>         at junit.framework.TestSuite.run(TestSuite.java:203)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBatt
> ery.java:242)
>         at org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.j
> ava:216)
>         at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:63)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.apache.maven.surefire.SurefireBooter.main(SurefireBooter.java:785
> )

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message