From: <La...@gm...> - 2006-02-15 13:58:59
|
Hello,=20 =20 I would like to merge topicmaps by using TMAPI and write the result into = a XTM file. So I use the mergIn(TopicMap) method. But when I use the serialize(OutPutStream, TopicMap) method from the tmapi-utils library I = get the following error: =20 java.lang.NullPointerException at org.tm4j.tmapi.core.TMAPITopicMapObjectImpl.getObjectId(TMAPITopicMapObje= ctI mpl.java:60) at org.tm4j.tmapi.core.TMAPITopicMapObjectImpl.hashCode(TMAPITopicMapObjectI= mpl .java:80) at java.util.HashMap.hash(Unknown Source) at java.util.HashMap.put(Unknown Source) at java.util.HashSet.add(Unknown Source) at org.tm4j.tmapi.core.TMAPIBaseNameImpl.addVariants(TMAPIBaseNameImpl.java:= 125 ) at org.tm4j.tmapi.core.TMAPIBaseNameImpl.buildVariants(TMAPIBaseNameImpl.jav= a:1 16) at org.tm4j.tmapi.core.TMAPIBaseNameImpl.getVariants(TMAPIBaseNameImpl.java:= 58) at org.tmapiutils.impexp.xtm.XTMSerializer.writeTopic(Unknown = Source) at org.tmapiutils.impexp.xtm.XTMSerializer.writeTopic(Unknown = Source) at org.tmapiutils.impexp.xtm.XTMSerializer.serialize(Unknown = Source) at varianttest.main(varianttest.java:104) =20 By using a debugger I saw that when I=92m merging a Topicmap into = another the =93m_name=94 parameter from the Variant of a Topicname is not written. = Is this a bug or have I done something wrong? I=92m using TM4J 0.9.8 for TMAPI. =20 Thanks, =20 Lars B. |