openRDF.org Welcome Guest   | Login   
  Search  
  Index  | Recent Threads  | Who's Online  | User List  | Search  | Help  | RSS feeds

Forum has been closed down
This forum has been closed down due to extensive spamming activities. Please use the mailing list instead.


Quick Go »
Thread Status: Normal
Total posts in this thread: 4
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 14103 times and has 3 replies Next Thread
Jun 30, 2008 1:24:52 PM

lolive
Member



Joined: Jan 23, 2007
Posts: 19
Status: Offline

Sesame inside a JavaWebStart app.

I have some problems running Sesame 2.0 inside a Java Web Start environment.
The problem lies in the class SailBase, in the method isDebugEnabled.
The call to System.getProperty("org.openrdf.repository.debug") throws an access denied.

Here is my app's log:
C:\Documents and Settings\Administrateur
C:\Documents and Settings\Administrateur
30 déc. 2007 14:22:43 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.rio.rdfxml.RDFXMLParserFactory
30 déc. 2007 14:22:43 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.rio.turtle.TurtleParserFactory
30 déc. 2007 14:22:43 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.rio.ntriples.NTriplesParserFactory
30 déc. 2007 14:22:43 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.rio.n3.N3ParserFactory
30 déc. 2007 14:22:43 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.rio.trix.TriXParserFactory
Feeding ont at URL: https://www.lolive.net/webdav/catalog.rdf
30 déc. 2007 14:22:45 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.query.parser.serqo.SeRQOParserFactory
30 déc. 2007 14:22:45 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.query.parser.sparql.SPARQLParserFactory
30 déc. 2007 14:22:45 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.query.parser.serql.SeRQLParserFactory
#### Java Web Start Error:
#### access denied (java.util.PropertyPermission org.openrdf.repository.debug read)
30 déc. 2007 14:22:53 info.aduna.concurrent.locks.AbstractLock finalize
ATTENTION: Releasing active lock due to object destruction; consider setting the info.aduna.concurrent.locks.trackLocks system property

Please note that the first two lines of the log are alls to System.getProperty("user.home"), meaning that my Java Web Start environment is ok (signed jars, all-permissions enabled).

Here is the exact starck trace:
java.security.AccessControlException: access denied (java.util.PropertyPermission org.openrdf.repository.debug read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
at java.lang.System.getProperty(System.java:652)
at org.openrdf.sail.helpers.SailBase.debugEnabled(SailBase.java:52)
at org.openrdf.sail.helpers.SailBaseIteration.<init>(SailBaseIteration.java:38)
at org.openrdf.sail.helpers.SailConnectionBase.registerIteration(SailConnectionBase.java:527)
at org.openrdf.sail.helpers.SailConnectionBase.getStatements(SailConnectionBase.java:210)
at org.openrdf.repository.sail.SailRepositoryConnection.getStatements(SailRepositoryConnection.java:177)
at org.openrdf.repository.base.RepositoryConnectionWrapper.getStatements(RepositoryConnectionWrapper.java:269)
at org.openrdf.repository.flushable.FlushableConnection.getStatements(FlushableConnection.java:169)
at org.openrdf.repository.base.RepositoryConnectionWrapper.getStatements(RepositoryConnectionWrapper.java:269)
at org.openrdf.repository.contextaware.ContextAwareConnection.getStatements(ContextAwareConnection.java:451)
at org.openrdf.elmo.sesame.SesameProperty.getStatements(SesameProperty.java:410)
at org.openrdf.elmo.sesame.SesameProperty.getElmoIteration(SesameProperty.java:421)
at org.openrdf.elmo.sesame.SesameProperty.getSingle(SesameProperty.java:176)
at org.openrdf.elmo.impl.UnmodifiableElmoProperty.getSingle(UnmodifiableElmoProperty.java:57)
at elmobeans.mappers.net.datao.identification.LoginMapper.getName(LoginMapper.java)
at elmobeans.proxies._$fffffffb765d1e87._$EntityProxy511820f12.getName(_$EntityProxy511820f12.java)
at net.datao.MyDoggyMigApp.manageRepositoryLocally(MyDoggyMigApp.java:234)
at net.datao.MyDoggyMigApp.manageRepository(MyDoggyMigApp.java:226)
at net.datao.MyDoggyMigApp.doLogin(MyDoggyMigApp.java:2328)
at net.datao.MyDoggyMigApp.execDemoLogin(MyDoggyMigApp.java:192)
at net.datao.MyDoggyMigApp.<init>(MyDoggyMigApp.java:180)
at net.datao.MyDoggyMigApp$1.run(MyDoggyMigApp.java:131)
at java.security.AccessController.doPrivileged(Native Method)
at net.datao.MyDoggyMigApp.main(MyDoggyMigApp.java:128)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1272)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1218)
at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1065)
at com.sun.javaws.Launcher.run(Launcher.java:105)
at java.lang.Thread.run(Thread.java:619)

Is it related to some tricks with classloaders, or what?
Show Printable Version of Post     [Link] Report threatening or abusive post: please login first  Go to top 
Jun 30, 2008 1:49:10 PM

lolive
Member



Joined: Jan 23, 2007
Posts: 19
Status: Offline

Re: Sesame inside a JavaWebStart app.

Well, it seems that the exception is thrown when i call a getName() on some Elmo entity instance.
Show Printable Version of Post     [Link] Report threatening or abusive post: please login first  Go to top 
Jul 2, 2008 6:24:24 PM

james
OpenRDF.org Consultant
Member's Avatar

Canada
Joined: Jul 21, 2005
Posts: 650
Status: Offline
Re: Sesame inside a JavaWebStart app.

Looks like the same issue here:
http://www.openrdf.org/issues/browse/SES-508

Looks like you find that already, it is schedule for release 2.2.
----------------------------------------
Sesame Consultant
http://leighnet.ca
http://jamesrdf.blogspot.com
Show Printable Version of Post        Hidden to Guest    http://leighnet.ca [Link] Report threatening or abusive post: please login first  Go to top 
Jul 10, 2008 11:02:57 PM

jtheuer
Sesame Addict



Joined: Feb 11, 2008
Posts: 70
Status: Offline

Re: Sesame inside a JavaWebStart app.

Yes, I posted this issue earlier. call System.setSecurityManager(null) upon start.

Jan
Show Printable Version of Post        http://www.pace-project.org [Link] Report threatening or abusive post: please login first  Go to top 
[Show Printable Version of Thread]