[
http://jira.codehaus.org/browse/JIBX-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Sosnoski resolved JIBX-152.
----------------------------------
Resolution: Fixed
Fix Version/s: JiBX 1.1.5
Fixed in prior release.
> NPE when reading binding with unprefixed type-name using StAX parser
> --------------------------------------------------------------------
>
> Key: JIBX-152
> URL: http://jira.codehaus.org/browse/JIBX-152
> Project: JiBX
> Issue Type: Bug
> Components: core
> Affects Versions: JiBX 1.1.3
> Reporter: Dennis Sosnoski
> Assignee: Dennis Sosnoski
> Fix For: JiBX 1.1.5
>
>
> JiBX throws a NullPointerException when using a StAX parser to read a binding
> definition that include type-names without a namespace prefix. This may occur
> when JiBX is used with Axis2 WSDL2Java, since the StAX parser is normally
> used in that environment. Here's a partial stack trace (from
> http://issues.apache.org/jira/browse/AXIS2-2088):
> Caused by: java.lang.NullPointerException
> at
> org.jibx.runtime.impl.StAXReaderWrapper.getNamespace(StAXReaderWrappe
> r.java:455)
> at
> org.jibx.runtime.impl.UnmarshallingContext.getNamespaceUri(Unmarshall
> ingContext.java:3125)
> at org.jibx.runtime.QName.deserialize(QName.java:234)
> at
> org.jibx.binding.model.MappingElement.setQualifiedTypeName(MappingEle
> ment.java:261)
> at
> org.jibx.binding.model.MappingElement.JiBX_binding_unmarshalAttr_5_0(
> MappingElement.java)
> at
> org.jibx.binding.model.JiBX_bindingMappingElement_access.unmarshal()
> at
> org.jibx.binding.model.BindingElement.JiBX_binding_unmarshal_3_0(Bind
> ingElement.java)
> at
> org.jibx.binding.model.JiBX_bindingBindingElement_access.unmarshal()
> at
> org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(Unmarshal
> lingContext.java:2538)
> The StAXReaderWrapper.getNamespace() method needs to be changed to handle a
> null prefix value correctly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs