Siefker, Adam wrote:
I am trying to generate a schema from a binding file. I get the following 
exception when I run jibx-genschema.jar

Exception in thread "main" java.lang.IllegalStateException: No binding root 
defined
       at 
org.jibx.binding.model.TreeContext.getBindingRoot(TreeContext.java:337)
       at 
org.jibx.binding.model.RegistrationVisitor.visit(RegistrationVisitor.java:70)
       at org.jibx.binding.model.ModelVisitor.visit(ModelVisitor.java:106)
       at org.jibx.binding.model.ModelVisitor.visit(ModelVisitor.java:175)
       at 
org.jibx.binding.model.RegistrationVisitor.visit(RegistrationVisitor.java:84)
       at org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:174)
       at org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:235)
       at 
org.jibx.binding.model.RegistrationVisitor.visitTree(RegistrationVisitor.java:62)
       at 
org.jibx.binding.model.BindingElement.runValidation(BindingElement.java:541)
       at org.jibx.binding.SchemaGenerator.generate(SchemaGenerator.java:783)
       at org.jibx.binding.SchemaGenerator.main(SchemaGenerator.java:891)

Genschema is the beta 0.2. The binding file a class used jibx 1.0 rc-1. I did a 
search for the error, but nothing was relevant. What is the root cause and how 
do I fix this?

Thanks.
Adam


I've discovered that if you remove all label attributes from your
mapping elements in your binding file that this goes away. (Generally
this isn't a problem; in structure elements just use the attribute
map-as="classname" instead of using="labelname". The only limitation is
that you lose control over the name of the element.).

However I've bumped into another limitation: any use of abstract="true"
on a mapping seems to result in the following error:

Exception in thread "main" java.lang.NullPointerException
       at
org.jibx.binding.SchemaGenerator.generateSchema(SchemaGenerator.java:700)
       at
org.jibx.binding.SchemaGenerator.generate(SchemaGenerator.java:802)
       at org.jibx.binding.SchemaGenerator.main(SchemaGenerator.java:893)

Anyone have any ideas? Thanks-
Lorrin




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to