[ http://jira.codehaus.org/browse/JIBX-276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Sosnoski resolved JIBX-276. ---------------------------------- Assignee: Dennis Sosnoski Resolution: Fixed Fix Version/s: JiBX 1.2.1 Problem with nonamespace schema handling. > CodeGen throws NPE when generating Javadoc for xsd:choice element > ----------------------------------------------------------------- > > Key: JIBX-276 > URL: http://jira.codehaus.org/browse/JIBX-276 > Project: JiBX > Issue Type: Bug > Components: CodeGen > Affects Versions: JiBX 1.2 > Environment: Win XP, Jibx run from RAD > Reporter: Martin Bosak > Assignee: Dennis Sosnoski > Fix For: JiBX 1.2.1 > > Attachments: ChoiceError.xsd, schemaGen.log > > > Just started using Jibx 1.2. Received the following exception from the > CodeGen tool. (I've attached the schema used and the debug console output). > Below are the arguments used: > -s XML/test > -n csg.cxpng.core.echostar.sl.type > -t src > -v > -w > ChoiceError.xsd > DEBUG codegen.StructureClassHolder - Added inner class > FindSubByPhoneResp.Choice > Exception in thread "main" java.lang.NullPointerException > at org.jibx.runtime.impl.UTF8Escaper.writeAttribute(UTF8Escaper.java:68) > at > org.jibx.runtime.impl.GenericXMLWriter.writeAttributeText(GenericXMLWriter.java:209) > at > org.jibx.runtime.impl.XMLWriterBase.startTagNamespaces(XMLWriterBase.java:241) > at > org.jibx.runtime.impl.MarshallingContext.startTagNamespaces(MarshallingContext.java:950) > at > org.jibx.schema.codegen.SchemaDocumentationGenerator$DocumentationVisitor.visit(SchemaDocumentationGenerator.java:418) > at org.jibx.schema.SchemaVisitor.visit(SchemaVisitor.java:98) > at org.jibx.schema.SchemaVisitor.visit(SchemaVisitor.java:108) > at org.jibx.schema.SchemaVisitor.visit(SchemaVisitor.java:374) > at > org.jibx.schema.codegen.SchemaDocumentationGenerator$DocumentationVisitor.visit(SchemaDocumentationGenerator.java:486) > at org.jibx.schema.TreeWalker.walkElement(TreeWalker.java:194) > at > org.jibx.schema.codegen.SchemaDocumentationGenerator.generate(SchemaDocumentationGenerator.java:274) > at org.jibx.schema.codegen.ClassHolder.initClass(ClassHolder.java:661) > at > org.jibx.schema.codegen.StructureClassHolder.generate(StructureClassHolder.java:1991) > at > org.jibx.schema.codegen.PackageHolder.generate(PackageHolder.java:203) > at > org.jibx.schema.codegen.PackageHolder.generate(PackageHolder.java:218) > at org.jibx.schema.codegen.CodeGen.generate(CodeGen.java:1377) > at org.jibx.schema.codegen.CodeGen.main(CodeGen.java:1611) -- 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 jibx-devs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-devs