Hi,
I'm trying to generate the XML schema from binding.xml but I'm getting
the exception below. Could somebody take a look to the attached
binding.xml file and tell me whats wrong?
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:891)
<?xml version="1.0" encoding="UTF-8"?>
<binding forwards="false" value-style="attribute">
<mapping
class="edu.ucar.rap.metvault.metadata.dataaccess.MetadataConstraint"
name="metadata-constraint">
<value style="element" name="name" field="_name" usage="optional"/>
<value style="element" name="subject-id" field="_subjectId"
usage="optional"/>
<structure field="_operator" usage="optional"></structure>
<value style="element" name="value" field="_value" usage="optional"/>
<value name="value-is-number" field="_valueIsNumber"/>
<structure field="_nestedConstraint1" usage="optional"></structure>
<structure field="_conjunction" usage="optional"></structure>
<structure field="_nestedConstraint2" usage="optional"></structure>
<structure map-as="edu.ucar.rap.metvault.core.MetVaultXMLizableImpl"
name="met-vault-xm-lizable-impl"></structure>
</mapping>
<mapping class="edu.ucar.rap.sql.SqlConjunction" name="sql-conjunction">
<structure map-as="edu.ucar.rap.sql.SqlOperator"
name="sql-operator"></structure>
</mapping>
<mapping class="edu.ucar.rap.sql.SqlOperator" name="sql-operator">
<value name="type-id" field="_typeId"/>
</mapping>
<mapping abstract="true"
class="edu.ucar.rap.util.xml.TwoPassXMLizableImpl">
<value style="element" name="id" field="_id" usage="optional"/>
<value name="create-on-load" field="_createOnLoad"/>
</mapping>
<mapping abstract="true"
class="edu.ucar.rap.metvault.core.MetVaultXMLizableImpl">
<value style="element" name="model-id" field="_modelId"
usage="optional"/>
<structure map-as="edu.ucar.rap.util.xml.TwoPassXMLizableImpl"
name="two-pass-xm-lizable-impl"></structure>
</mapping>
</binding>
Thanks,
Marcel
<?xml version="1.0" encoding="UTF-8"?>
<binding forwards="false" value-style="attribute">
<mapping class="edu.ucar.rap.metvault.metadata.dataaccess.MetadataConstraint" name="metadata-constraint">
<value style="element" name="name" field="_name" usage="optional"/>
<value style="element" name="subject-id" field="_subjectId" usage="optional"/>
<structure field="_operator" usage="optional"></structure>
<value style="element" name="value" field="_value" usage="optional"/>
<value name="value-is-number" field="_valueIsNumber"/>
<structure field="_nestedConstraint1" usage="optional"></structure>
<structure field="_conjunction" usage="optional"></structure>
<structure field="_nestedConstraint2" usage="optional"></structure>
<structure map-as="edu.ucar.rap.metvault.core.MetVaultXMLizableImpl" name="met-vault-xm-lizable-impl"></structure>
</mapping>
<mapping class="edu.ucar.rap.sql.SqlConjunction" name="sql-conjunction">
<structure map-as="edu.ucar.rap.sql.SqlOperator" name="sql-operator"></structure>
</mapping>
<mapping class="edu.ucar.rap.sql.SqlOperator" name="sql-operator">
<value name="type-id" field="_typeId"/>
</mapping>
<mapping abstract="true" class="edu.ucar.rap.util.xml.TwoPassXMLizableImpl">
<value style="element" name="id" field="_id" usage="optional"/>
<value name="create-on-load" field="_createOnLoad"/>
</mapping>
<mapping abstract="true" class="edu.ucar.rap.metvault.core.MetVaultXMLizableImpl">
<value style="element" name="model-id" field="_modelId" usage="optional"/>
<structure map-as="edu.ucar.rap.util.xml.TwoPassXMLizableImpl" name="two-pass-xm-lizable-impl"></structure>
</mapping>
</binding>