Hi Lorrin,
The Schema generator is in need of updating. I think I've finally added
the last feature for JiBX 1.0 (yes, I know I've said that before), and
should go back to revise the binding generator and schema generator to
match the JiBX changes since they were written. I probably won't get to
this until around the end of the year, unfortunately. In the meantime
it's probably best to consider them experimental and realize they have a
number of holes.
- Dennis
Lorrin Nelson wrote:
On 10/25/05 8:48 AM, Lorrin Nelson wrote:
...
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
The NullPointerException is caused by the abstract element not having
any associated namespace. If in
org.jibx.binding.model.NameAttributes:validate(ValidationContext) you
take out the if statement and thus always cause m_namespace to be
initialized then the null pointer exception goes away and the schema
generation succeeds. I don't pretend to have an understanding of what
the ramifications of the change are.
-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