You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Bozhong Lin (JIRA)" <ji...@apache.org> on 2006/12/06 07:59:22 UTC

[jira] Updated: (CXF-236) NPE thrown by XmlStreamWriter when calling StaxUtils.copy()

     [ http://issues.apache.org/jira/browse/CXF-236?page=all ]

Bozhong Lin updated CXF-236:
----------------------------

        Fix Version/s: 2.0-RC
    Affects Version/s: 2.0-RC
                           (was: 2.0-M1)

> 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-RC
>         Environment: Windows XP 
>            Reporter: William Tam
>             Fix For: 2.0-RC
>
>         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