From: Kal A. <ka...@te...> - 2005-10-05 06:36:47
|
OK, that probably rules out the JDK as the culprit. My next guess is then that you have some XML parser on your CLASSPATH that that is getting picked up by the SAXParserFactory which does not support all of the methods of that class for some reason. Maybe you have an old or a broken version of Xerces on your CLASSPATH? Try resetting your CLASSPATH to have only the TM4J libs in it and then re-run the application. The code you provide looks correct to me - and I know that the XTM parser in TM4J works (or at least Works For Me (tm) ;-), so I think the next place to look is at the environment and libs on your dev. machine. Cheers, Kal > -----Original Message----- > From: Frode Hjeltnes [mailto:Fro...@id...] > Sent: 04 October 2005 13:56 > To: Kal Ahmed > Cc: Fro...@id...; tm4...@li... > Subject: RE: [TM4J-users] Problem adding topic map to provider > > Hi > I now changed to JDK 1.4.2_09-b05 and the problem remains > Frode > > On Mon, 3 Oct 2005, Kal Ahmed wrote: > > > Hi Frode, > > > > Which version of the JDK are you using? > > > > Cheers, > > > > Kal > > > >> -----Original Message----- > >> From: tm4...@li... [mailto:tm4j-users- > >> ad...@li...] On Behalf Of Fro...@id... > >> Sent: 30 September 2005 13:36 > >> To: tm4...@li... > >> Subject: [TM4J-users] Problem adding topic map to provider > >> > >> Hi. I'm trying to figure out this TM4J. I'v just tried to make a > >> TopicMapProvider and add the "kings_and_queens" topic map. Like this: > >> > >> TopicMapProviderFactory tmpf = > >> TopicMapProviderFactory.newInstance(); > >> TopicMapProvider provider = > >> tmpf.newTopicMapProvider(System.getProperties()); > >> > >> TopicMapSource source = new > >> SerializedTopicMapSource("C:/Diplom/tm4j- > >> 0.9.7/examples/topicmaps/kings_and_queens.xtm"); > >> TopicMap tm = provider.addTopicMap(source); > >> > >> > >> When I run this program I recieve the following error: > >> > >> Exception in thread "main" java.lang.AbstractMethodError: > >> javax.xml.parsers.SAXParserFactory.setFeature(Ljava/lang/String;Z)V > >> at org.tm4j.topicmap.utils.XMTBuilder.build(XTMBuilder.java:363) > >> at org.tm4j.topicmap.utils.XMTBuilder.build(XTMBuilder.java:317) > >> at > >> > org.tm4j.topicmap.source.SerializedTopicMapSource.readMap(SerializedTopicM > >> apSource.java:269) > >> at > >> > org.tm4j.topicmap.source.SerializedTopicMapSource.populateTopicMap(Seriali > >> zedTopicMapSource.java:317) > >> at > >> > org.tm4j.topicmap.source.SerializedTopicMapSource.populateTopicMap(Seriali > >> zedTopicMapSource.java:252) > >> at > >> > org.tm4j.topicmap.source.TopicMapSourceSupport.addTopicMap(TopicMapSourceS > >> upport.java:35) > >> at > >> > org.tm4j.topicmap.source.TopicMapSourceSupport.addTopicMap(TopicMapSourceS > >> upport.java:69) > >> at NyTest2.main(Nytest2.java:19) > >> > >> > >> I recieve the same error when trying to run the "Stats" example that > >> follows TM4J. > >> > >> regards > >> Frode Hjeltnes > >> > >> > >> > >> ------------------------------------------------------- > >> This SF.Net email is sponsored by: > >> Power Architecture Resource Center: Free content, downloads, > discussions, > >> and more. http://solutions.newsforge.com/ibmarch.tmpl > >> _______________________________________________ > >> Tm4j-users mailing list > >> Tm4...@li... > >> https://lists.sourceforge.net/lists/listinfo/tm4j-users > >> > > > > > > > |