[ 
http://jira.codehaus.org/browse/JIBX-255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Sosnoski updated JIBX-255:
---------------------------------

    Assignee: Dennis Sosnoski

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.

> 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
>            Assignee: Dennis Sosnoski
>
> 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

        

------------------------------------------------------------------------------
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

Reply via email to