From: Dicheva, D. <dic...@ws...> - 2007-02-16 15:49:43
|
Hi Lars, I downloaded the latest version of TM4J 0.9.8 from CVS, but now I have a different problem that reminds me though the problem I had in the very beginning of swiching to TMAPI and which was due to using differrent versions of TM4J in the complilion of TM4L anf TMAPI (see below).=20 After downloading TM4J, I created a binary which resulted in creating 6 jar files which I copied in the lib folder of my Eclipse TM4L project (I also deleted the 0.9.7 versions of those files from lib): tm4j-0.9.8.jar tm4jadmintool-0.9.8.jar tm4jdbc-0.9.8.jar tm4j-tmapi-0.9.8.jar tm4j-tologx-0.9.8.jar tm4ozone-0.9.8.jar=20 I am not sure was I supposed to do anything else?=20 Thanks, Darina ------------------- Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: org.tm4j.net.LocatorFactoryException: Could not instantiate locator for notation: 'URI' and address string 'file:C:\workspace\itm4l_api\xtm\try.xtm'. Cause: java.lang.reflect.InvocationTargetException. Nested cause: java.lang.NoClassDefFoundError: org/apache/commons/collections/map/LRUMap at org.tm4j.tmapi.core.TMAPITopicMapSystemImpl.createTopicMap(TMAPITopicMap SystemImpl.java:105) at org.tm4j.tmapi.core.TMAPITopicMapSystemImpl.createTopicMap(TMAPITopicMap SystemImpl.java:89) at tm4l.utilities.utilitiesTM.UTopicMaps.createNewTopicMap(UTopicMaps.java: 118) at tm4l.ui.topicInfoTab.ButtonsPanel.actionPerformed(ButtonsPanel.java:187) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2 169) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.ja va:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonList ener.java:234) at java.awt.Component.processMouseEvent(Component.java:5488) at javax.swing.JComponent.processMouseEvent(JComponent.java:3093) at java.awt.Component.processEvent(Component.java:5253) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3955) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1766) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThrea d.java:234) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread. java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)=20 > -----Original Message----- > From: tm4...@li...=20 > [mailto:tm4...@li...] On Behalf=20 > Of Lars Heuer > Sent: Thursday, February 15, 2007 10:11 AM > To: Dicheva, Darina > Cc: tm4...@li... > Subject: Re: [TM4J-users] Casting TMAPI - TM4J Topic Problem >=20 > Hi Darina, >=20 > [...] > > Variant var =3D (Variant) it.next(); > > Set s =3D var.getScope(); > > Iterator si =3D s.iterator(); =20 > > if (si.hasNext()){ > > Topic param =3D (Topic)si.next(); //***Exception Here**** > > =20 >=20 > I think, you're using an 'old' version of TM4J. >=20 > While walking through the bug tracker, I've found this bug=20 > report here: > <https://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D143 3778&group_id=3D27895&atid=3D391879> >=20 > This is exactly the same issue. > It was fixed in Feb/2006. >=20 > Best regards, > Lars > --=20 > http://www.semagia.com > http://www.topicmaps.de/mailinglist German Topic Maps mailinglist >=20 >=20 > -------------------------------------------------------------- > ----------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the=20 > chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge &CID=3DDEVDEV > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users >=20 |