Hi,
Im using datatypes defined in HL7 (Health Level 7) schemas. These schemas
contains a large number of datatypes that I have compiled (with "scomp" into
a jar e.g "hl7.jar".
Im also using datatypes from other schemas that have been compiled into
other jars (with "scomp") e.g "appX.jar". Many of these datatypes are
extensions of the hl7 datatypes so when I compile appX.jar I add hl7.jar to
my classpath so that they are not included int appX.jar.
When I run my application (which has both hl7.jar and appX.jar in the
classpath) I get the error:
----------------------------------------------------------------------------------------------------
Exception in thread "main" java.lang.NullPointerException
at org.apache.xmlbeans.impl.schema.SchemaPropertyImpl.getType(
SchemaPropertyImpl.java:92)
at org.apache.xmlbeans.impl.schema.SchemaTypeImpl.createAttributeType(
SchemaTypeImpl.java:1042)
at org.apache.xmlbeans.impl.values.XmlObjectBase.create_attribute_user(
XmlObjectBase.java:915)
at org.apache.xmlbeans.impl.store.Xobj.getUser(Xobj.java:1657)
at org.apache.xmlbeans.impl.store.Xobj.add_attribute_user(Xobj.java
:2254)
at
se.sll.gvd.common.hl7.datatypes.impl.IIImpl.setAssigningAuthorityName(Unknown
Source)
-------------------------------------------------------------------------------------------------
This only occurs when I am using datatypes defined in appX.jar that are
extensions of datatypes in hl7.jar.
If I compile all the schemas into one single jar-file everything works fine.
Is this a bug in XMLBeans ??? Can I only split schemas between jars when
there are no dependencies between the schemas ??
Im using XMLBeans ver 2.3.0
regards,
Mikael Lindkvist