jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JiBX
  • JIBX-115

Null Pointer Exception when using xsd2jibx tool to create binding.xml from a .xsd file

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: JiBX 1.1
  • Fix Version/s: JiBX 1.2.1
  • Component/s: CodeGen
  • Labels:
    None
  • Environment:
    Windows XP, Weblogic 8.1, xsd2jibx ( version : Beta 0.2a )

Description

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.



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)

Thanks.
Amol S

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. XML File
    ProcessServicePlan.xsd
    02/Jun/06 6:06 PM
    80 kB
    Amol Sawant

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Dennis Sosnoski added a comment - 08/Mar/09 5:46 AM

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.

Show
Dennis Sosnoski added a comment - 08/Mar/09 5:46 AM 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.

People

  • Assignee:
    Dennis Sosnoski
    Reporter:
    Amol Sawant
Vote (0)
Watch (0)

Dates

  • Created:
    02/Jun/06 6:06 PM
    Updated:
    07/Apr/10 5:51 AM
    Resolved:
    08/Mar/09 5:46 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.