Hi Zoran, Thanks for your input. As I see, adding the security manager allowed the type of the exception to reach the client: gate.creole.ResourceInstantiationException. That's some progress, although the inner data of the exception is still unavailable. That can be expected. The full information is available in the attached All.txt:
ERROR 2997907[RMI TCP Connection(88)-192.168.1.5](KIMDocumentImpl.java:130) - Error in KIMDocumentImpl constructor gate.creole.ResourceInstantiationException: DocumentImpl.init: java.io.IOException: Server returned HTTP response code: 403 for URL: http://en.wikipedia.org/w/index.php?title=Design_Patterns&action=edit&section=1 at gate.corpora.DocumentImpl.init(DocumentImpl.java:184) at gate.Factory.createResource(Factory.java:304) As you know, The HTTP code 403 is access is forbidden to http://en.wikipedia.org/w/index.php?title=Design_Patterns&action=edit Best regards, Marin Zoran Jeremic wrote: > Hi, > > I have added security manager: > > > *if* (System./getSecurityManager/() == *null*) { > > System./setSecurityManager/(*new* SecurityManager()); > > } > > and the following permissions to the java.policy, like: > > permission java.util.PropertyPermission "user.dir", "read"; > permission java.util.PropertyPermission "kim.home.dir", "read"; > permission java.util.PropertyPermission "kim.context.dir", "read"; > permission java.util.PropertyPermission "kim.rebuild.index", "read"; > permission java.io.FilePermission "<<ALL FILES>>", "write"; > permission java.net.SocketPermission "*:1024-", "listen, > connect,accept, resolve"; > permission java.net.SocketPermission "*:80", "listen, connect,accept, > resolve"; > permission java.util.PropertyPermission "org.xml.sax.driver", "read"; > > However, it has the error on the same pages, but this time it is > another kind of error: > > > Error: _Exception:gate.creole.ResourceInstantiationException _ > > _java.lang.reflect.UndeclaredThrowableException_ > > at $Proxy2.createDocument(Unknown Source) > > at > depths.moodle.annotation.utility.AnnotationFacility.annotateWebResource(_AnnotationFacility.java:177_) > > > > at > depths.moodle.annotation.utility.AnnotationFacility.annotateOnlineRepository(_AnnotationFacility.java:88_) > > > > at > depths.moodle.annotation.utility.SearchCrawler$1.run(_SearchCrawler.java:115_) > > > > at java.lang.Thread.run(Unknown Source) > > Caused by: _java.lang.ClassNotFoundException_: > _gate.creole.ResourceInstantiationException_ > > at java.net.URLClassLoader$1.run(Unknown Source) > > at java.security.AccessController.doPrivileged(_Native Method_) > > at java.net.URLClassLoader.findClass(Unknown Source) > > at java.lang.ClassLoader.loadClass(Unknown Source) > > at java.lang.ClassLoader.loadClass(Unknown Source) > > at java.lang.ClassLoader.loadClassInternal(Unknown Source) > > at java.lang.Class.forName0(_Native Method_) > > at java.lang.Class.forName(Unknown Source) > > at sun.rmi.server.LoaderHandler.loadClass(Unknown Source) > > at sun.rmi.server.LoaderHandler.loadClass(Unknown Source) > > at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source) > > at java.rmi.server.RMIClassLoader.loadClass(Unknown Source) > > at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source) > > at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) > > at java.io.ObjectInputStream.readClassDesc(Unknown Source) > > at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) > > at java.io.ObjectInputStream.readObject0(Unknown Source) > > at java.io.ObjectInputStream.defaultReadFields(Unknown Source) > > at java.io.ObjectInputStream.readSerialData(Unknown Source) > > at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) > > at java.io.ObjectInputStream.readObject0(Unknown Source) > > at java.io.ObjectInputStream.defaultReadFields(Unknown Source) > > at java.io.ObjectInputStream.readSerialData(Unknown Source) > > at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) > > at java.io.ObjectInputStream.readObject0(Unknown Source) > > at java.io.ObjectInputStream.defaultReadFields(Unknown Source) > > at java.io.ObjectInputStream.readSerialData(Unknown Source) > > at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) > > at java.io.ObjectInputStream.readObject0(Unknown Source) > > at java.io.ObjectInputStream.readObject(Unknown Source) > > at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source) > > at sun.rmi.server.UnicastRef.invoke(Unknown Source) > > at org.openrdf.util.rmirouting.ChannelIfaceImpl_Stub.invoke(Unknown > Source) > > at > org.openrdf.util.rmirouting.ChannelIfaceInvocation.invoke(_ChannelIfaceInvocation.java:134_) > > > > at > org.openrdf.util.rmirouting.ChannelIfaceInvocation.invoke(_ChannelIfaceInvocation.java:249_) > > > > ... 5 more > > I'm sending you All.txt log file you asked. > > Thanks, > Zoran > > > --- On *Sun, 9/7/08, Marin Nozhchev /<[EMAIL PROTECTED]>/* wrote: > > From: Marin Nozhchev <[EMAIL PROTECTED]> > Subject: Re: [KIM-discussion] no security manager: RMI class > loader disabled -ERROR > To: [EMAIL PROTECTED] > Cc: [email protected] > Date: Sunday, September 7, 2008, 11:43 PM > > Hi Zoran, All, > > I think that the problem in your case is that the KIM Server throughs an > exception which the client can receive. Java RMI client applications > need to have an explicitly defined security manager in order to > deserialize some "security risk" objects like server exceptions. You > can > find tips how to define it on the web - > http://www.comp.lancs.ac.uk/~weerasin/csc253/tutorials/week8.html - or > in some forums > > http://www.google.bg/search?q=no+security+manager%3A+RMI+class+loader+disabled. > > > > Even without the security manager, you should be able to find the > exception in KIM's logs in KIM/log/All.txt Please send it to us - of > course KIM is not supposed to throw exceptions while annotating _some_ > documents. In the mean time, Danko will test the 3 wiki pages that you > sent us. > > Thank you for the input, > Marin Nozhchev > > Zoran Jeremic wrote: > > Hi Danko, > > > > Thank you for quick answer. > > > > >1) Are you using the KIM server as a component in a GATE application. > > > > No, I have developed my java rmi client that uses KIM server to > > annotate web page (similar as describe in > > > > http://www.ontotext.com/kim/doc/sys-doc/AnnotateDocumentsAndTextsExamples.html) > > > > >2) Can you send the web pages (or their URLs) that cause this > exception > > > > Each time the error is caused by these 3 web pages: > > > > http://en.wikipedia.org/wiki/1994 > > http://en.wikipedia.org/wiki/OOPSLA > > http://en.wikipedia.org/wiki/Object-oriented > > > > When application passes these pages it continues annotation of the > > rest pages without problems. > > > > Here are some pages from the same repository that does not make > problems: > > http://en.wikipedia.org/wiki/Object_composition > > http://en.wikipedia.org/wiki/Inheritance_(computer_science > > <http://en.wikipedia.org/wiki/Inheritance_%28computer_science>) > > http://en.wikipedia.org/wiki/Interface_(computer_science > > <http://en.wikipedia.org/wiki/Interface_%28computer_science>) > > http://en.wikipedia.org/wiki/Smalltalk > > http://en.wikipedia.org/wiki/Jolt_Award > > http://en.wikipedia.org/wiki/October_21 > > > > All best, > > Zoran > > > > --- On *Fri, 9/5/08, DanKo /<[EMAIL PROTECTED]>/* wrote: > > > > From: DanKo <[EMAIL PROTECTED]> > > Subject: Re: [KIM-discussion] no security manager: RMI class > > loader disabled -ERROR > > To: [EMAIL PROTECTED], [email protected] > > Date: Friday, September 5, 2008, 12:52 PM > > > > Hi Zoran, > > > > I am glad to hear from you again ! > > > > I need some additional information about the way you run things - > > to help you best. > > > > 1) Are you using the KIM server as a component in a GATE > application. > > 2) Can you send the web pages (or their URLs) that cause this > > exception > > > > Greetings! > > DanKo, > > senior developer - KIM Platform > > > > > > ----- Original Message ----- > > *From:* Zoran Jeremic <mailto:[EMAIL PROTECTED]> > > *To:* [email protected] > > <mailto:[email protected]> > > *Sent:* Friday, September 05, 2008 9:25 PM > > *Subject:* [KIM-discussion] no security manager: RMI class > > loader disabled -ERROR > > > > Hi, > > > > I have the error: "Error: > > Exception:gate.creole.ExecutionException (no security manager: > > RMI class loader disabled)" when trying to annotate a web > > repository that contains more than 15 pages. Pages are > > annotated one by one, and the error is happen few pages before > > the end of annotation of the last one (i.e. it annotates > > majority of the pages without problems). It happens each time > > when I annotate one specific web repository. However, it does > > not happen on the another repository which passes the whole > > process each time, regardless the number of pages it annotates. > > > > I have setup java.policy like in both jdk and jre > > permission java.net.SocketPermission "*:1024-", > > "listen,connect,accept"; > > > > I'm using Windows XP Pro, Java 1.6, and Tomcat 6 > > > > Here is the error trace: > > > > Error: Exception:gate.creole.ExecutionException (no security > > manager: RMI class loader disabled) > > java.lang.reflect.UndeclaredThrowableException > > at $Proxy3.execute(Unknown Source) > > at > > > > depths.moodle.annotation.utility.AnnotationFacility.annotateWebResource(AnnotationFacility.java:203) > > at > > > > depths.moodle.annotation.utility.AnnotationFacility.annotateOnlineRepository(AnnotationFacility.java:87) > > at > > > > depths.moodle.annotation.utility.SearchCrawler$1.run(SearchCrawler.java:114) > > at java.lang.Thread.run(Unknown Source) > > Caused by: java.lang.ClassNotFoundException: > > gate.creole.ExecutionException (no security manager: RMI class > > loader disabled) > > at sun.rmi.server.LoaderHandler.loadClass(Unknown Source) > > at sun.rmi.server.LoaderHandler.loadClass(Unknown Source) > > at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source) > > at java.rmi.server.RMIClassLoader.loadClass(Unknown Source) > > at sun.rmi.server.MarshalInputStream.resolveClass(Unknown > Source) > > at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) > > at java.io.ObjectInputStream.readClassDesc(Unknown Source) > > at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) > > at java.io.ObjectInputStream.readObject0(Unknown Source) > > at java.io.ObjectInputStream.defaultReadFields(Unknown Source) > > at java.io.ObjectInputStream.readSerialData(Unknown Source) > > at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) > > at java.io.ObjectInputStream.readObject0(Unknown Source) > > at java.io.ObjectInputStream.defaultReadFields(Unknown Source) > > at java.io.ObjectInputStream.readSerialData(Unknown Source) > > at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) > > at java.io.ObjectInputStream.readObject0(Unknown Source) > > at java.io.ObjectInputStream.defaultReadFields(Unknown Source) > > at java.io.ObjectInputStream.readSerialData(Unknown Source) > > at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) > > at java.io.ObjectInputStream.readObject0(Unknown Source) > > at java.io.ObjectInputStream.readObject(Unknown Source) > > at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown > Source) > > at sun.rmi.server.UnicastRef.invoke(Unknown Source) > > at > > org.openrdf.util.rmirouting.ChannelIfaceImpl_Stub.invoke(Unknown > > Source) > > at > > > > org.openrdf.util.rmirouting.ChannelIfaceInvocation.invoke(ChannelIfaceInvocation.java:134) > > at > > > > org.openrdf.util.rmirouting.ChannelIfaceInvocation.invoke(ChannelIfaceInvocation.java:249) > > ... 5 more > > > > Do you have some ideas how to solve this? > > > > Thanks, > > > > Zoran > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > > NOTE: Please REPLY TO ALL to ensure that your reply reaches > > all members of this mailing list. > > > > KIM-discussion mailing list > > [email protected] > > http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com > > > > > > > > __________ NOD32 3419 (20080905) Information __________ > > > > This message was checked by NOD32 antivirus system. > > http://www.eset.com > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > NOTE: Please REPLY TO ALL to ensure that your reply reaches all members > of > this mailing list. > > > > KIM-discussion mailing list > > [email protected] > > http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com > > > > > > _______________________________________________ NOTE: Please REPLY TO ALL to ensure that your reply reaches all members of this mailing list. KIM-discussion mailing list [email protected] http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com
