cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aki Yoshida (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-5004) NPE at StaxUtils.copy for empty namespaces under JDK's XMLStreamReader
Date Wed, 08 May 2013 09:51:15 GMT

     [ https://issues.apache.org/jira/browse/CXF-5004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aki Yoshida resolved CXF-5004.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.6.9
                   2.7.5
                   2.5.11
    
> NPE at StaxUtils.copy for empty namespaces under JDK's XMLStreamReader
> ----------------------------------------------------------------------
>
>                 Key: CXF-5004
>                 URL: https://issues.apache.org/jira/browse/CXF-5004
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.7.4
>            Reporter: Aki Yoshida
>            Assignee: Aki Yoshida
>             Fix For: 2.5.11, 2.7.5, 2.6.9
>
>
> When XMLStreamReader returns null for getNamespceURI(int index), NPE is thrown  during
the invocation of the StaxUtils.copy method, as shown in:
> trying to invoke the method java.lang.String.equals(java.lang.Object) of an object loaded
from local variable 'nsURI'
> java.lang.NullPointerException: while trying to invoke the method java.lang.String.equals(java.lang.Object)
of an object loaded from local variable 'nsURI'
>         at org.apache.cxf.staxutils.StaxUtils.writeStartElement(StaxUtils.java:659)
>         at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:574)
>         at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:562)
>         a

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message