I'm trying to setup the Geek Serendipity backend sample as demoed at Google IO (http://bradabrams.com/2013/05/google-io-2013-session-overview-from-nothing-to-nirvana-in-minutes-cloud-backend-for-your-android-application-building-geek-serendipity/)
我正试图在Google IO上设置Geek Serendipity后端示例(http://bradabrams.com/2013/05/google-io-2013-session-overview-from-nothing-to-nirvana-in-minutes -cloud-后端换你,Android的应用程序 - 建筑怪胎情缘/)
I'm following the instructions at https://github.com/GoogleCloudPlatform/solutions-mobile-backend-starter-java (I'm deploying from source code as I will need to later add some custom endpoints)
我按照https://github.com/GoogleCloudPlatform/solutions-mobile-backend-starter-java上的说明操作(我将从源代码部署,因为我需要稍后添加一些自定义端点)
However, after following the instructions and deploying to AppEngine, I can't access the homepage of the deployed app (configure.jsp) to UNLOCK the app for development calls. I'm getting the a NullPointer on XSRFTokenUtility.java.
但是,按照说明并部署到AppEngine后,我无法访问已部署应用程序(configure.jsp)的主页以解锁应用程序以进行开发调用。我在XSRFTokenUtility.java上获得了一个NullPointer。
Uncaught exception from servlet
java.lang.NullPointerException
at com.google.cloud.backend.config.XSRFTokenUtility.buildTokenString(XSRFTokenUtility.java:136)
at com.google.cloud.backend.config.XSRFTokenUtility.getToken(XSRFTokenUtility.java:64)
at com.google.cloud.backend.config.ConfigurationServlet.getToken(ConfigurationServlet.java:208)
at org.apache.jsp.admin.configure_jsp._jspService(configure_jsp.java:56)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
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:125)
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
Other details:
其他详情:
App ID: mobile-starter-yaraju-1
App ID:mobile-starter-yaraju-1
Eclipse version: 4.2 (Juno)
Eclipse版本:4.2(Juno)
AppEngine SDK version: 1.8.5
AppEngine SDK版本:1.8.5
Google Plugin for Eclipse: 3.4.1.v201309130745-rel-r42
适用于Eclipse的Google插件:3.4.1.v201309130745-rel-r42
OS: Windows 8 64-bit
操作系统:Windows 8 64位
2 个解决方案
#1
2
Finally solved this problem. The source code is fine, and I had a malformed web.xml getting extracted from the zip.
终于解决了这个问题。源代码很好,我从zip中提取了一个格式错误的web.xml。
If this happens to you, clear your Windows Temp cache, and extract the backend zip again.
如果您遇到这种情况,请清除Windows Temp缓存,然后再次提取后端zip。
#2
0
My solution: Don't deploy from source code.
我的解决方案:不要从源代码部署。
Follow this page: http://developers.google.com/cloud/samples/mbs/deploy_backend
请按以下页面访问:http://developers.google.com/cloud/samples/mbs/deploy_backend
And the option to deploy a "Mobile Sample App" is finally back. Deploy straight to the cloud, and the backend runs fine with the sample Android client app
部署“移动样本应用程序”的选项终于回来了。直接部署到云端,使用示例Android客户端应用程序可以很好地运行后端
#1
2
Finally solved this problem. The source code is fine, and I had a malformed web.xml getting extracted from the zip.
终于解决了这个问题。源代码很好,我从zip中提取了一个格式错误的web.xml。
If this happens to you, clear your Windows Temp cache, and extract the backend zip again.
如果您遇到这种情况,请清除Windows Temp缓存,然后再次提取后端zip。
#2
0
My solution: Don't deploy from source code.
我的解决方案:不要从源代码部署。
Follow this page: http://developers.google.com/cloud/samples/mbs/deploy_backend
请按以下页面访问:http://developers.google.com/cloud/samples/mbs/deploy_backend
And the option to deploy a "Mobile Sample App" is finally back. Deploy straight to the cloud, and the backend runs fine with the sample Android client app
部署“移动样本应用程序”的选项终于回来了。直接部署到云端,使用示例Android客户端应用程序可以很好地运行后端