kozchris / tmapix

Automatically exported from code.google.com/p/tmapix
0 stars 0 forks source link

resolving the %25 escape sequence #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
    String file = "male.xml";
    TopicMapSystemFactory factory = TopicMapSystemFactory.newInstance();
    TopicMapSystem sys = factory.newTopicMapSystem();
    TopicMap tm = sys.createTopicMap("foo:bla");
    XTM20TopicMapReader reader = new XTM20TopicMapReader(tm, new File(file));
    reader.read();

Results in 
Exception in thread "main" org.tmapi.core.TMAPIRuntimeException: 
com.semagia.mio.MIOException
    at org.tmapix.io.AbstractTopicMapReader.read(AbstractTopicMapReader.java:140)
    at XXX.main(XXX.java:xx)
Caused by: com.semagia.mio.MIOException
    at net.ontopia.topicmaps.io.OntopiaMapHandler.createLocator(OntopiaMapHandler.java:350)
    at net.ontopia.topicmaps.io.OntopiaMapHandler.createOccurrence(OntopiaMapHandler.java:160)
    at net.ontopia.topicmaps.io.OntopiaMapHandler.createOccurrence(OntopiaMapHandler.java:1)
    at com.semagia.mio.helpers.AbstractHamsterMapHandler.endOccurrence(Unknown Source)
    at com.semagia.mio.helpers.DelegatingMapHandler.endOccurrence(Unknown Source)
    at com.semagia.mio.xtm.XTM20ContentHandler.endElement(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at com.semagia.mio.xtm.AbstractXTMDeserializer.doParse(Unknown Source)
    at com.semagia.mio.base.AbstractDeserializer.parse(Unknown Source)
    at org.tmapix.io.AbstractTopicMapReader.read(AbstractTopicMapReader.java:130)

The %25 escape sequence 
(see attached file resourceRef)
is resolved when new URILocator(iri) is called at 
net.ontopia.topicmaps.io.OntopiaMapHandler.createLocator
(I'm using the tmapix-io-0.3.0-snapshot-200910281502)
und thus resulting in an MalformedURLException.

Original issue reported on code.google.com by arnim.bl...@gmail.com on 30 Mar 2010 at 3:44

Attachments:

GoogleCodeExporter commented 8 years ago
Does the "native" Ontopia XTM 2 reader read the topic map without any error?

Original comment by lars.he...@gmail.com on 30 Mar 2010 at 4:00

GoogleCodeExporter commented 8 years ago

Original comment by lars.he...@gmail.com on 30 Mar 2010 at 4:00

GoogleCodeExporter commented 8 years ago
Arnim, is this a TMAPIX issue or an Ontopia issue? Did you try the Ontopia XTM 
2 reader?

Original comment by lars.he...@gmail.com on 24 Jul 2010 at 10:29

GoogleCodeExporter commented 8 years ago
Arnim's proposal:
Keep this issue open and wait for 
https://code.google.com/p/ontopia/issues/detail?id=225

Okay :)

Original comment by lars.he...@gmail.com on 24 Jul 2010 at 11:14