Thursday, February 19, 2015

Re: AccessControlException when reading from Embedding Neo4j database



On Thursday, February 19, 2015 at 4:38:43 AM UTC+1, Corey Wu wrote:
Hi,

Anyone have experience with getting an embedded Neo4j database running on GWT? I get an AccessControlException when I create the embedded database server side.

Here's my stacktrace:

SEVERE: javax.servlet.ServletContext log: Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract com.coreywu.uwcompanygraph.client.CompanyGraph com.coreywu.uwcompanygraph.client.QueryGraphService.getGraph()' threw an unexpected exception: java.security.AccessControlException: access denied ("java.io.FilePermission" "\var\uwcompanygraph" "read")
[…] 
at com.google.appengine.tools.development.ResponseRewriterFilter.doFilter(ResponseRewriterFilter.java:127) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:34)


You cannot use arbitrary files in AppEngine, so Neo4j doesn't work as-is in that environment (see also https://groups.google.com/d/topic/neo4j/QYCUFMRvW1c)
But maybe you just checked (or didn't uncheck) the AppEngine checkbox when creating your project in your IDE but didn't mean to eventually deploy to AppEngine?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment