[
http://jira.codehaus.org/browse/JIBX-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Sosnoski resolved JIBX-115.
----------------------------------
Assignee: Dennis Sosnoski
Resolution: Fixed
Fix Version/s: JiBX 1.2.1
Tried this as a test case with the CodeGen replacement for xsd2jibx. Found and
corrected one problem, caused by the <xs:appinfo> elements. Now generates and
binds properly.
> Null Pointer Exception when using xsd2jibx tool to create binding.xml from a
> .xsd file
> --------------------------------------------------------------------------------------
>
> Key: JIBX-115
> URL: http://jira.codehaus.org/browse/JIBX-115
> Project: JiBX
> Issue Type: Bug
> Components: xsd2jibx
> Affects Versions: xsd2jibx-beta0.2
> Environment: Windows XP, Weblogic 8.1, xsd2jibx ( version : Beta 0.2a
> )
> Reporter: Amol Sawant
> Assignee: Dennis Sosnoski
> Priority: Critical
> Fix For: JiBX 1.2.1
>
> Attachments: ProcessServicePlan.xsd
>
>
> Hi,
> I get a NullPointer when I use xsd2jibx ( version : Beta 0.2a ) tool for my
> .xsd file. Please have a look at the stack trace . Also I have attached my
> xsd file. I was able to use it for simpler XSD files. Please let me know your
> findings.
> {color:red}
> C:\Work\JiBXJune2>java -jar C:\Work\JiBXJune2\xsd2jibx\lib\xsd2jibx.jar
> ProcessS
> ervicePlan.xsd
> java.lang.NullPointerException
> at org.jibx.xsd2jibx.JSource.newField(JSource.java:171)
> at org.jibx.xsd2jibx.JSource.newBeanProperty(JSource.java:111)
> at org.jibx.xsd2jibx.JSource.addElement(JSource.java:101)
> at
> org.jibx.xsd2jibx.XsdComplexType.processStructure(XsdComplexType.java
> :368)
> at
> org.jibx.xsd2jibx.XsdComplexType.processStructure(XsdComplexType.java
> :409)
> 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)
> {color}
> Thanks.
> Amol S
--
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