From: Kal A. <ka...@te...> - 2005-10-26 11:08:43
|
Hi Marcus, It=92s a bit difficult to tell from just the stack trace. There are two possible causes that you should check in your own code first:=20 1) are you passing a null parameter in to getObjectByID() ? 2) are you sure that the backend is initialized correctly and that you = are connected to the correct TopicMap instance ? If you have some simple code that causes the problem, can you post that = ? Cheers, Kal > -----Original Message----- > From: tm4...@li... [mailto:tm4j-users- > ad...@li...] On Behalf Of Marcus Frank > Sent: 24 October 2005 17:10 > To: tm4...@li... > Subject: [TM4J-users] NullPointerException when accessing Objects from > Ozone via TMAPI >=20 > Hello TM4J-Experts, >=20 >=20 >=20 > I=92m trying to work with TMAPI and Ozone 1.1 as Backend for TM4J = 0.9.8. I=92m > parsing an XTM-File with TMAPI-Utils, everything is fine. But when I = try > to access topics I get the following exception: >=20 >=20 >=20 > java.lang.NullPointerException >=20 > java.util.Hashtable.get(Hashtable.java:333) >=20 >=20 > = org.tm4j.topicmap.ozone.OzoneTopicMapImpl.getObjectByID(OzoneTopicMapImpl= . > java:772) >=20 > sun.reflect.NativeMethodAccessorImpl.invoke0(Native = Method) >=20 >=20 > = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= : > 39) >=20 >=20 > = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= m > pl.java:25) >=20 > java.lang.reflect.Method.invoke(Method.java:324) >=20 >=20 > = org.ozoneDB.core.AbstractObjectContainer.invokeTarget(AbstractObjectConta= i > ner.java:233) >=20 >=20 > org.ozoneDB.core.Transaction.invokeObject(Transaction.java:802) >=20 > = org.ozoneDB.core.DbRemote.DbInvoke.perform(DbInvoke.java:63) >=20 >=20 > org.ozoneDB.core.Transaction.performCommand(Transaction.java:416) >=20 >=20 > = org.ozoneDB.core.TransactionManager.performCommand(TransactionManager.jav= a > :403) >=20 >=20 > = org.ozoneDB.core.TransactionManager.completeTransaction(TransactionManage= r > .java:369) >=20 >=20 > = org.ozoneDB.core.TransactionManager.handleCommand(TransactionManager.java= : > 283) >=20 >=20 > = org.ozoneDB.core.TransactionManager.handleCommand(TransactionManager.java= : > 256) >=20 >=20 > org.ozoneDB.core.InvokeServer.handleClientEvent(InvokeServer.java:78) >=20 >=20 > = org.ozoneDB.DxLib.net.DxMultiServerClient.run(DxMultiServerClient.java:44= ) >=20 > java.lang.Thread.run(Thread.java:534) >=20 >=20 >=20 > Does anyone have any hints on that? >=20 >=20 >=20 > More information: working on WinXP, Tomcat 5.0.28, TM4J 0.9.8, Ozone = 1.1 >=20 >=20 >=20 > Thanks in advance, >=20 > Marcus >=20 >=20 > ________________________________ >=20 > Ich verwende die kostenlose Version von SPAMfighter, > die bis jetzt 716 Spammails entfernt hat. > F=FCr private Anwender ist SPAMfighter v=F6llig kostenlos! > Jetzt gratis testen: hier klicken > <http://www.spamfighter.com/Lang_DE/Product_Info.asp> . |