Hi,
  I run CodeGen against ws-bpel_executable.xsd , which is ws-bpel 2.0 spec,
and met an error (bug). Jibx codegen expects a base attribute to be present
in a xs:restriction. However, I am sure the base here could be a child
element also (http://www.w3.org/TR/xmlschema-2/). The following is the error
message:


r...@cayley:$ java -cp ../lib/jibx-tools.jar org.jibx.schema.codegen.CodeGen
-t gen/src -w ws-bpel_executable.xsd
java.lang.NullPointerException
    at org.jibx.schema.NameRegister.findType(NameRegister.java:236)
    at
org.jibx.schema.validation.ValidationContext.findType(ValidationContext.java:320)
    at
org.jibx.schema.elements.CommonTypeDerivation.validate(CommonTypeDerivation.java:136)
    at
org.jibx.schema.validation.ValidationVisitor.exit(ValidationVisitor.java:53)
    at org.jibx.schema.SchemaVisitor.exit(SchemaVisitor.java:584)
    at org.jibx.schema.SchemaVisitor.exit(SchemaVisitor.java:593)
    at org.jibx.schema.SchemaVisitor.exit(SchemaVisitor.java:659)
    at org.jibx.schema.SchemaVisitor.exit(SchemaVisitor.java:968)
    at org.jibx.schema.TreeWalker.walkElement(TreeWalker.java:411)
    at org.jibx.schema.TreeWalker.walkChildren(TreeWalker.java:505)
    at org.jibx.schema.TreeWalker.walkElement(TreeWalker.java:303)
    at org.jibx.schema.TreeWalker.walkChildren(TreeWalker.java:505)
    at org.jibx.schema.TreeWalker.walkElement(TreeWalker.java:303)
    at org.jibx.schema.TreeWalker.walkSchema(TreeWalker.java:113)
    at
org.jibx.schema.validation.ValidationUtils.validateSchemas(ValidationUtils.java:99)
    at
org.jibx.schema.validation.ValidationUtils.load(ValidationUtils.java:221)
    at org.jibx.schema.codegen.CodeGen.main(CodeGen.java:1917)
java.lang.NullPointerException
    at org.jibx.schema.NameRegister.findType(NameRegister.java:236)
    at
org.jibx.schema.validation.ValidationContext.findType(ValidationContext.java:320)
    at
org.jibx.schema.elements.CommonTypeDerivation.validate(CommonTypeDerivation.java:136)
    at
org.jibx.schema.validation.ValidationVisitor.exit(ValidationVisitor.java:53)
    at org.jibx.schema.SchemaVisitor.exit(SchemaVisitor.java:584)
    at org.jibx.schema.SchemaVisitor.exit(SchemaVisitor.java:593)
    at org.jibx.schema.SchemaVisitor.exit(SchemaVisitor.java:659)
    at org.jibx.schema.SchemaVisitor.exit(SchemaVisitor.java:968)
    at org.jibx.schema.TreeWalker.walkElement(TreeWalker.java:411)
    at org.jibx.schema.TreeWalker.walkChildren(TreeWalker.java:505)
    at org.jibx.schema.TreeWalker.walkElement(TreeWalker.java:303)
    at org.jibx.schema.TreeWalker.walkChildren(TreeWalker.java:505)
    at org.jibx.schema.TreeWalker.walkElement(TreeWalker.java:303)
    at org.jibx.schema.TreeWalker.walkSchema(TreeWalker.java:113)
    at
org.jibx.schema.validation.ValidationUtils.validateSchemas(ValidationUtils.java:99)
    at
org.jibx.schema.validation.ValidationUtils.load(ValidationUtils.java:221)
    at org.jibx.schema.codegen.CodeGen.main(CodeGen.java:1917)
ERROR validation.ValidationContext - Error: The 'base' attribute is required
for an extension or restriction for restriction at (line 243, col 5, in
ws-bpel_executable.xsd)
Error: The 'base' attribute is required for an extension or restriction for
restriction at (line 243, col 5, in ws-bpel_executable.xsd)
ERROR validation.ValidationContext - Error: The 'base' attribute is required
for an extension or restriction for restriction at (line 994, col 5, in
ws-bpel_executable.xsd)
Error: The 'base' attribute is required for an extension or restriction for
restriction at (line 994, col 5, in ws-bpel_executable.xsd)
ERROR validation.ValidationContext - Error: Error during validation: null
for restriction at (line 243, col 5, in ws-bpel_executable.xsd)
Error: Error during validation: null for restriction at (line 243, col 5, in
ws-bpel_executable.xsd)
ERROR validation.ValidationContext - Error: Error during validation: null
for restriction at (line 994, col 5, in ws-bpel_executable.xsd)
Error: Error during validation: null for restriction at (line 994, col 5, in
ws-bpel_executable.xsd)
Terminating due to errors in input schemas

Regards,
Rice
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to