New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.security.AccessControlException: access denied #281

Closed
GoogleCodeExporter opened this Issue Apr 6, 2015 · 3 comments

Comments

Projects
None yet
1 participant
@GoogleCodeExporter

GoogleCodeExporter commented Apr 6, 2015

What steps will reproduce the problem?
1.I have a text file "fileName.txt" under sub-folder "SteelTablesHTML"in a
war direcory alon with html, jsps. Here is the path
"war/SteelTablesHTML/fileName.txt")

2.In my servlet, 
I would like to read  "FileName.txt" as a input file and populate HashTable
out of it.


I'm new to Google App Engine. 
Suggest me please, if any alternate method to read a text file under
GoogleAppEngine



3.
java.security.AccessControlException: access denied (java.io.FilePermission
\SteelTablesHTML\ssma_stud.txt 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
com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager
.checkPermission(DevAppServerFactory.java:166)
    at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
    at java.io.FileInputStream.<init>(FileInputStream.java:100)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at java.io.FileReader.<init>(FileReader.java:41)
    at
com.lgframe.design.C_Stud_Comb_Axial_Bend_Servlet.getArrayListLineReadData(C_Stu
d_Comb_Axial_Bend_Servlet.java:411)
    at
com.lgframe.design.C_Stud_Comb_Axial_Bend_Servlet.doPost(C_Stud_Comb_Axial_Bend_
Servlet.java:114)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.jav
a:1166)
    at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.
java:51)
    at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.jav
a:1157)
    at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Transactio
nCleanupFilter.java:43)
    at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.jav
a:1157)
    at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilte
r.java:122)
    at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.jav
a:1157)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineW
ebAppContext.java:70)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at
com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.han
dle(JettyContainerService.java:349)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.

Original issue reported on code.google.com by lgfr...@gmail.com on 5 Jun 2010 at 11:06

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Apr 6, 2015

Please Note that, 
 1) I'm using AppEngine SDK 1.3.4,
 2) OS: Window Vista

Original comment by lgfr...@gmail.com on 6 Jun 2010 at 11:37

GoogleCodeExporter commented Apr 6, 2015

Please Note that, 
 1) I'm using AppEngine SDK 1.3.4,
 2) OS: Window Vista

Original comment by lgfr...@gmail.com on 6 Jun 2010 at 11:37

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Apr 6, 2015

Please try asking your question at the App Engine Java discussion group:
http://groups.google.com/group/google-appengine-java

Original comment by yanivin...@gmail.com on 16 Jun 2010 at 3:57

  • Changed state: Invalid

GoogleCodeExporter commented Apr 6, 2015

Please try asking your question at the App Engine Java discussion group:
http://groups.google.com/group/google-appengine-java

Original comment by yanivin...@gmail.com on 16 Jun 2010 at 3:57

  • Changed state: Invalid
@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Apr 6, 2015

same prob

Original comment by mail2ja...@gmail.com on 19 Apr 2012 at 7:10

GoogleCodeExporter commented Apr 6, 2015

same prob

Original comment by mail2ja...@gmail.com on 19 Apr 2012 at 7:10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment