From: SourceForge.net <no...@so...> - 2007-04-12 01:59:36
|
Bugs item #1698885, was opened at 2007-04-12 03:59 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=391879&aid=1698885&group_id=27895 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Import/Export Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Xuan Baldauf (mediumnet) Assigned to: Nobody/Anonymous (nobody) Summary: org.tm4j.topicmap.cmd.Merge crashes Initial Comment: call "java org.tm4j.topicmap.cmd.Merge -c test.xtm", where "test.xtm" is this file: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE topicMap PUBLIC "-//TopicMaps.Org//DTD XML Topic Map (XTM) 1.0//EN" "http://www.topicmaps.org/xtm/1.0/xtm1.dtd"> <topicMap id="x1nnj36ct9-0" xmlns="http://www.topicmaps.org/xtm/1.0/" xmlns:xlink="http://www.w3.org/1999/xlink"> <topic id="id129"> <instanceOf> <topicRef xlink:href="#x1nnj36d5b-7"/> </instanceOf> </topic> <topic id="x1nnj36d5b-7"> <subjectIdentity> <subjectIndicatorRef xlink:href="http://psi.somewhere/#something"/> </subjectIdentity> </topic> </topicMap> And you will get something like: 2 [main] FATAL org.tm4j.topicmap.cmd.Merge - Unexpected exception. java.lang.NullPointerException at java.util.Collections$UnmodifiableCollection.<init>(Collections.java:994) at java.util.Collections$UnmodifiableSet.<init>(Collections.java:1066) at java.util.Collections.unmodifiableSet(Collections.java:1056) at org.tm4j.topicmap.memory.TopicMapObjectImpl.getSourceLocators(TopicMapObjectImpl.java:175) at org.tm4j.topicmap.memory.TopicImpl.getSourceLocators(TopicImpl.java:1673) at org.tm4j.topicmap.memory.TopicImpl.getSourceLocators(TopicImpl.java:1662) at org.tm4j.topicmap.utils.XTMWriter.getResourceID(XTMWriter.java:857) at org.tm4j.topicmap.utils.XTMWriter.getID(XTMWriter.java:927) at org.tm4j.topicmap.utils.XTMWriter.topicRef(XTMWriter.java:703) at org.tm4j.topicmap.utils.XTMWriter.onType(XTMWriter.java:605) at org.tm4j.topicmap.utils.TopicMapWalker.walk(TopicMapWalker.java:119) at org.tm4j.topicmap.utils.TopicMapWalker.walk(TopicMapWalker.java:86) at org.tm4j.topicmap.utils.TopicMapSerializer.serialize(TopicMapSerializer.java:373) at org.tm4j.topicmap.cmd.Merge.run(Merge.java:99) at org.tm4j.topicmap.cmd.AppBase.initialise(AppBase.java:190) at org.tm4j.topicmap.cmd.Merge.<init>(Merge.java:62) at org.tm4j.topicmap.cmd.Merge.main(Merge.java:117) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=391879&aid=1698885&group_id=27895 |