[Mulgara-dev] ClassNotFoundException on client for org.mulgara.resolver.lucene.FullTextStringIndexException

Dragisa Krsmanovic dkrsmanovic at plos.org
Wed Aug 19 17:55:58 UTC 2009


We got ClassNotFoundException in Ambra when trying to do a lucene
search. The cause is on server side (an incomplete database restore). 

The problem is that exception was not propagated well because
org.mulgara.resolver.lucene.FullTextStringIndexException does not exist
in driver.jar.

Regardless of what the cause of this exception is, Mulgara driver should
be able to handle it. So, either we have to include lucene resolver
classes in driver.jar or lucene resolver should throw more generic
exceptions.



Here is the stack trace:

Caused by: org.mulgara.query.QueryException: Java RMI failure
	at
org.mulgara.server.rmi.RemoteSessionWrapperSession.testRetry(RemoteSessionWrapperSession.java:638)
	at
org.mulgara.server.rmi.RemoteSessionWrapperSession.query(RemoteSessionWrapperSession.java:545)
	at org.mulgara.query.Query.execute(Query.java:568)
	at org.mulgara.query.Query.execute(Query.java:57)
	at org.topazproject.mulgara.itql.TIClient.doQuery(TIClient.java:82)
	... 183 more
Caused by: java.rmi.UnmarshalException: Error unmarshaling return;
nested exception is: 
	java.lang.ClassNotFoundException:
org.mulgara.resolver.lucene.FullTextStringIndexException (no security
manager: RMI class loader disabled)
	at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:217)
	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
	at org.mulgara.server.rmi.RemoteSessionImpl_Stub.query(Unknown Source)
	at
org.mulgara.server.rmi.RemoteSessionWrapperSession.query(RemoteSessionWrapperSession.java:541)
	... 186 more
Caused by: java.lang.ClassNotFoundException:
org.mulgara.resolver.lucene.FullTextStringIndexException (no security
manager: RMI class loader disabled)
	at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:371)
	at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
	at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
	at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
	at
sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197
....

-- 
Dragisa Krsmanovic
Java Developer
Public Library of Science 
http://www.plos.org


--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This email is confidential to the intended recipient. If you have received it in error, please notify the sender and delete it from your system. Any unauthorized use, disclosure or copying is not permitted. The views or opinions presented are solely those of the sender and do not necessarily represent those of Public Library of Science unless otherwise specifically stated. Please note that neither Public Library of Science nor any of its agents accept any responsibility for any viruses that may be contained in this e-mail or its attachments and it is your responsibility to scan the e-mail and attachments (if any).




More information about the Mulgara-dev mailing list