Hello all,

In my application I have to unmarshal multiple xml structures conforming
to the same binding definition in a loop. The xml-structures contain
some sections, which schoud be handle as a black box. For these sections
I use org.jibx.extras.Dom4JElementMapper in the binding definition. The
unmarshalling of a single of those xml structures works fine, but if I
call the unmarshalling from my business class in a loop I get an
Exception on some iteration step:
java.lang.NullPointerException
        at
org.dom4j.tree.ConcurrentReaderHashMap.hash(ConcurrentReaderHashMap.java
:291)
        at
org.dom4j.tree.ConcurrentReaderHashMap.get(ConcurrentReaderHashMap.java:
402)
        at org.dom4j.tree.NamespaceCache.get(NamespaceCache.java:81)
        at org.dom4j.Namespace.get(Namespace.java:68)
        at
org.dom4j.DocumentFactory.createNamespace(DocumentFactory.java:185)
        at
org.dom4j.tree.AbstractElement.addNamespace(AbstractElement.java:873)
        at
org.jibx.extras.Dom4JMapperBase.unmarshalElement(Dom4JMapperBase.java:34
9)
        at
org.jibx.extras.Dom4JElementMapper.unmarshal(Dom4JElementMapper.java:174
)
        at
de.escidoc.core.resources.common.MetadataRecord.JiBX_eSciDocCoreClient_s
rc_jibx_binding_soap_resource_binding_unmarshal_1_2(MetadataRecord.java)
        at
de.escidoc.core.resources.common.JiBX_eSciDocCoreClient_src_jibx_binding
_soap_resource_bindingMetadataRecord_access2.unmarshal()


Unfortunately I can not use a binding definition for a list of those
xml-structures in my business logic.

I will appreciate any help.

Thanks,
Rozita

-------------------------------------------------------

Fachinformationszentrum Karlsruhe, Gesellschaft für wissenschaftlich-technische 
Information mbH. 
Sitz der Gesellschaft: Eggenstein-Leopoldshafen, Amtsgericht Mannheim HRB 
101892. 
Geschäftsführerin: Sabine Brünger-Weilandt. 
Vorsitzender des Aufsichtsrats: MinR Hermann Riehl.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to