Skip to content

Null Pointer Exception in MultiplicityCounterNG #62

Closed
@rsperlazza

Description

@rsperlazza

Using this xsd:
http://www.omg.org/spec/ReqIF/20110401/reqif.xsd

I get the following Null Pointer Exception:

Exception in thread "main" java.lang.NullPointerException
at org.hisrc.jsonix.xml.xsom.MultiplicityCounterNG.particle(MultiplicityCounterNG.java:27)
at org.hisrc.jsonix.xml.xsom.MultiplicityCounterNG.modelGroup(MultiplicityCounterNG.java:52)
at org.hisrc.jsonix.xml.xsom.MultiplicityCounterNG.modelGroupDecl(MultiplicityCounterNG.java:43)
at org.hisrc.jsonix.xml.xsom.MultiplicityCounterNG.modelGroupDecl(MultiplicityCounterNG.java:16)
at com.sun.xml.xsom.impl.ModelGroupDeclImpl.apply(ModelGroupDeclImpl.java:89)
at org.hisrc.jsonix.xml.xsom.MultiplicityCounterNG.particle(MultiplicityCounterNG.java:24)
at org.hisrc.jsonix.xml.xsom.MultiplicityCounterNG.modelGroup(MultiplicityCounterNG.java:52)
at org.hisrc.jsonix.xml.xsom.MultiplicityCounterNG.modelGroupDecl(MultiplicityCounterNG.java:43)
at org.hisrc.jsonix.xml.xsom.MultiplicityCounterNG.modelGroupDecl(MultiplicityCounterNG.java:16)
at com.sun.xml.xsom.impl.ModelGroupDeclImpl.apply(ModelGroupDeclImpl.java:89)
at org.hisrc.jsonix.xml.xsom.ParticleMultiplicityCounter.particle(ParticleMultiplicityCounter.java:26)
at org.hisrc.jsonix.xml.xsom.ParticleMultiplicityCounter.particle(ParticleMultiplicityCounter.java:12)
at com.sun.xml.xsom.impl.ParticleImpl.apply(ParticleImpl.java:111)
at org.hisrc.xml.xsom.XSFunctionApplier.apply(XSFunctionApplier.java:26)
at org.hisrc.jsonix.compilation.mapping.PropertyInfoVisitor.createPropertyInfoOptions(PropertyInfoVisitor.java:59)
at org.hisrc.jsonix.compilation.mapping.PropertyInfoVisitor.visitElementRefsPropertyInfo(PropertyInfoVisitor.java:254)
at org.hisrc.jsonix.compilation.mapping.PropertyInfoVisitor.visitElementRefsPropertyInfo(PropertyInfoVisitor.java:38)
at org.jvnet.jaxb2_commons.xml.bind.model.concrete.CMElementRefsPropertyInfo.acceptPropertyInfoVisitor(CMElementRefsPropertyInfo.java:68)
at org.hisrc.jsonix.compilation.mapping.MappingCompiler.compilePropertyInfos(MappingCompiler.java:262)
at org.hisrc.jsonix.compilation.mapping.MappingCompiler.compileClassInfo(MappingCompiler.java:232)
at org.hisrc.jsonix.compilation.mapping.MappingCompiler.compileClassInfos(MappingCompiler.java:182)
at org.hisrc.jsonix.compilation.mapping.MappingCompiler.compile(MappingCompiler.java:155)
at org.hisrc.jsonix.compilation.mapping.ModuleCompiler.compile(ModuleCompiler.java:54)
at org.hisrc.jsonix.compilation.mapping.ModulesCompiler.compile(ModulesCompiler.java:29)
at org.hisrc.jsonix.execution.JsonixInvoker.execute(JsonixInvoker.java:64)
at org.hisrc.jsonix.JsonixMain.execute(JsonixMain.java:110)
at org.hisrc.jsonix.JsonixMain.main(JsonixMain.java:77)

Using a modified XSD that works in JAXB I still get the same exception:
http://pastebin.com/G4reNMBu

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions