incorrect processing of the xsd file
------------------------------------
Key: JIBX-255
URL: http://jira.codehaus.org/browse/JIBX-255
Project: JiBX
Issue Type: Bug
Components: xsd2jibx
Affects Versions: xsd2jibx-beta0.2
Environment: Windows XP, JDK 1.5.0_11
Reporter: Ilya Lebedev
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.
--
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
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs