Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 1.0-RC2
-
Fix Version/s: None
-
Component/s: core
-
Labels:None
-
Environment:jdk 1.5
-
Number of attachments :
Description
Unmarshaller does not handle correctly attributes when the same namespace is bound to multiple prefixes. Unmarshalling:
<config r:version="1.1" xmlns="urn:a" xmlns:r="urn:a"/>
causes:
Exception in thread "main" org.jibx.runtime.JiBXException: Missing required attribute "version" (line 2, col 141)
at org.jibx.runtime.impl.UnmarshallingContext.attributeText(Unknown Source)
The namespace support seams to broken
.
A typical authoring style for version attribute (well, at least in schemas for j2ee configs) is to require its qualification (using form="qualified" in XML Schema).
You'll need to add at least your binding definition and preferably a full example with build.xml to demonstrate the problem if you want to get help with this. Although it's possible that this does represent a real problem. based on the exception thrown I'd suspect the binding definition is in error.