2013-02-11 49 views
0

我在開發模式中使用gwt 2.4,GAE 1.7.3和jre 1.7,我的代碼使用過濾器標籤link。當我上傳到谷歌App Engine應用程序,它提供了一個錯誤如下訪問被拒絕在谷歌應用程序引擎上使用AWS SDK for Java上傳亞馬遜上的文件

java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup) 
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:355) 
at java.security.AccessController.checkPermission(AccessController.java:567) 
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) 
at com.google.apphosting.runtime.security.CustomSecurityManager.checkPermission(CustomSecurityManager.java:56) 
at com.google.apphosting.runtime.security.CustomSecurityManager.checkAccess(CustomSecurityManager.java:131) 
at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:315) 
at java.lang.Thread.init(Thread.java:353) 
at java.lang.Thread.<init>(Thread.java:479) 
at com.amazonaws.http.IdleConnectionReaper.<init>(IdleConnectionReaper.java:56) 
at com.amazonaws.http.IdleConnectionReaper.registerConnectionManager(IdleConnectionReaper.java:62) 
at com.amazonaws.http.ConnectionManagerFactory.createThreadSafeClientConnManager(ConnectionManagerFactory.java:30) 
at com.amazonaws.http.HttpClientFactory.createHttpClient(HttpClientFactory.java:95) 
at com.amazonaws.http.AmazonHttpClient.<init>(AmazonHttpClient.java:112) 
at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:60) 
at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:295) 
at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:277) 
at com.wa.gwtamazon.server.AmazonService.doPost(AmazonService.java:36) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) 
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) 
at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:102) 
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) 
at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35) 
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) 
at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) 
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java: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.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:266) 
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.headerComplete(HttpConnection.java:923) 
at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76) 
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) 
at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:146) 
at com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:447) 
at com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:454) 
at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:461) 
at com.google.tracing.TraceContext.runInContext(TraceContext.java:703) 
at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:338) 
at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:330) 
at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:458) 
at com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:251) 
at java.lang.Thread.run(Thread.java:679) 
+0

您可能必須在他們的文件,你錯過了什麼權限的獲取com.google.apphosting.runtime.security.CustomSecurityManager.checkPermission – SSR 2013-02-11 06:54:45

回答

1

我們不能使用,因爲在谷歌應用程序引擎的限制亞馬遜利布斯(無主題,無承插連接等) 。但有幾個解決方案可以幫助你:

我從下面的鏈接找到解決方案,它爲我工作。

http://socialappdev.com/using-amazon-s3-with-google-app-engine-02-2011

+0

Divyesh嗨抓檢查。我知道這是很久以前的事情,但現在我遇到了這個問題,並且您提供的鏈接不再有效。你還記得解決方案嗎? – SBmore 2016-07-21 08:40:31

+0

嗨,首先你需要找出LIB的源代碼並複製項目中的所有java文件。它會工作。 – 2016-07-25 09:53:51

相關問題