Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JiBX 1.1
-
Fix Version/s: JiBX 1.2.1
-
Component/s: CodeGen
-
Labels:None
-
Environment:Windows XP, JDK 1.5.0_11
-
Number of attachments :
Description
Hello,
I'm trying to build the binding for the following xsd:
http://docs.oasisopen.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
xsd2jibx fails with the following message:
"Invalid package name: org.oasis-open.docs.wss._2004._01.oasis_200401_wss_wssecurity_secext_1_0_xsd"
Replacing "oasis-open" with "oasisopen", i receive the following stacktrace:
java.lang.NullPointerException
at org.jibx.xsd2jibx.NameUtil.trimPrefix(NameUtil.java:213)
at org.jibx.xsd2jibx.XsdStructure.getXsdType(XsdStructure.java:100)
at org.jibx.xsd2jibx.XsdSimpleType.getBase(XsdSimpleType.java:14)
at org.jibx.xsd2jibx.Generator.getQNameSimpleType(Generator.java:363)
at org.jibx.xsd2jibx.Generator.getQName(Generator.java:546)
at org.jibx.xsd2jibx.XsdFeature.getFieldQName(XsdFeature.java:87)
at org.jibx.xsd2jibx.JSource.newField(JSource.java:171)
at org.jibx.xsd2jibx.JSource.newBeanProperty(JSource.java:111)
at org.jibx.xsd2jibx.XsdComplexType.processStructure(XsdComplexType.java:383)
at org.jibx.xsd2jibx.XsdComplexType.process(XsdComplexType.java:245)
at org.jibx.xsd2jibx.Generator.execute(Generator.java:233)
at org.jibx.xsd2jibx.Generate.generate(Generate.java:131)
at org.jibx.xsd2jibx.Generate.main(Generate.java:182)
Any help will be highly appreciated.
Activity
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Dennis Sosnoski [ dsosnoski ] |
| Fix Version/s | JiBX 1.2.1 [ 15067 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Affects Version/s | JiBX 1.1 [ 12217 ] | |
| Affects Version/s | xsd2jibx-beta0.2 [ 11090 ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |
| Component/s | xsd2jibx [ 10675 ] | |
| Component/s | CodeGen [ 13794 ] |
Try this with the new CodeGen tool in the 1.2 code (currently available as beta 1 in the Sourceforge "test" package). This is the official replacement for xsd2jibx, and is much more capable and complete.