java - Google AppEngine BackendSevice Null Pointer exception -
we have java based google app engine project. works fine. logs have null pointer exception in backendservice follows
10.1.0.41 - - [13/oct/2014:05:33:08 -0700] "post /_ah/spi/backendservice.getapiconfigs http/1.1" 500 89 - - ms=125 cpu_ms=15 cpm_usd=0.000010 app_engine_release=1.9.13 instance=00c61b117c84d9ef5a08d243b652ffc3c7589b e 2014-10-13 18:03:08.271 com.google.api.server.spi.systemservice invokeservicemethod: invokeservicemethod: cause={0} java.lang.nullpointerexception @ com.google.api.server.spi.backendservice.getapiconfigs(backendservice.java:45) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:45) @ com.google.api.server.spi.systemservice.invokeservicemethod(systemservice.java:189) @ com.google.api.server.spi.systemserviceservlet.execute(systemserviceservlet.java:137) @ com.google.api.server.spi.systemserviceservlet.dopost(systemserviceservlet.java:106) @ javax.servlet.http.httpservlet.service(httpservlet.java:637) @ javax.servlet.http.httpservlet.service(httpservlet.java:717) @ org.mortbay.jetty.servlet.servletholder.handle(servletholder.java:511) @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1166) @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) @ org.mortbay.jetty.servlet.servlethandler.handle(servlethandler.java:388) @ org.mortbay.jetty.security.securityhandler.handle(securityhandler.java:216) @ org.mortbay.jetty.servlet.sessionhandler.handle(sessionhandler.java:182) @ org.mortbay.jetty.handler.contexthandler.handle(contexthandler.java:765) @ org.mortbay.jetty.webapp.webappcontext.handle(webappcontext.java:418) @ org.mortbay.jetty.handler.handlerwrapper.handle(handlerwrapper.java:152) @ org.mortbay.jetty.server.handle(server.java:326) @ org.mortbay.jetty.httpconnection.handlerequest(httpconnection.java:542) @ org.mortbay.jetty.httpconnection$requesthandler.headercomplete(httpconnection.java:923) @ org.mortbay.jetty.httpconnection.handle(httpconnection.java:404) @ com.google.tracing.tracecontext$tracecontextrunnable.runincontext(tracecontext.java:438) @ com.google.tracing.tracecontext$tracecontextrunnable$1.run(tracecontext.java:445) @ com.google.tracing.currentcontext.runincontext(currentcontext.java:220) @ com.google.tracing.tracecontext$abstracttracecontextcallback.runininheritedcontextnounref(tracecontext.java:309) @ com.google.tracing.tracecontext$abstracttracecontextcallback.runininheritedcontext(tracecontext.java:301) @ com.google.tracing.tracecontext$tracecontextrunnable.run(tracecontext.java:442) @ java.lang.thread.run(thread.java:724) com.google.api.server.spi.systemservice invokeservicemethod: null java.lang.nullpointerexception @ com.google.api.server.spi.backendservice.getapiconfigs(backendservice.java:45) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:45) @ com.google.api.server.spi.systemservice.invokeservicemethod(systemservice.java:189) @ com.google.api.server.spi.systemserviceservlet.execute(systemserviceservlet.java:137) @ com.google.api.server.spi.systemserviceservlet.dopost(systemserviceservlet.java:106) @ javax.servlet.http.httpservlet.service(httpservlet.java:637) @ javax.servlet.http.httpservlet.service(httpservlet.java:717) @ org.mortbay.jetty.servlet.servletholder.handle(servletholder.java:511) @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1166) @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) @ org.mortbay.jetty.servlet.servlethandler.handle(servlethandler.java:388) @ org.mortbay.jetty.security.securityhandler.handle(securityhandler.java:216) @ org.mortbay.jetty.servlet.sessionhandler.handle(sessionhandler.java:182) @ org.mortbay.jetty.handler.contexthandler.handle(contexthandler.java:765) @ org.mortbay.jetty.webapp.webappcontext.handle(webappcontext.java:418) @ org.mortbay.jetty.handler.handlerwrapper.handle(handlerwrapper.java:152) @ org.mortbay.jetty.server.handle(server.java:326) @ org.mortbay.jetty.httpconnection.handlerequest(httpconnection.java:542) @ org.mortbay.jetty.httpconnection$requesthandler.headercomplete(httpconnection.java:923) @ org.mortbay.jetty.httpconnection.handle(httpconnection.java:404) @ com.google.tracing.tracecontext$tracecontextrunnable.runincontext(tracecontext.java:438) @ com.google.tracing.tracecontext$tracecontextrunnable$1.run(tracecontext.java:445) @ com.google.tracing.currentcontext.runincontext(currentcontext.java:220) @ com.google.tracing.tracecontext$abstracttracecontextcallback.runininheritedcontextnounref(tracecontext.java:309) @ com.google.tracing.tracecontext$abstracttracecontextcallback.runininheritedcontext(tracecontext.java:301) @ com.google.tracing.tracecontext$tracecontextrunnable.run(tracecontext.java:442) @ java.lang.thread.run(thread.java:724)
i have next configuration in web.xml
<servlet> <servlet-name>systemserviceservlet</servlet-name> <servlet-class>com.google.api.server.spi.systemserviceservlet</servlet-class> <init-param> <param-name>services</param-name> <param-value/> </init-param> </servlet> <servlet-mapping> <servlet-name>systemserviceservlet</servlet-name> <url-pattern>/_ah/spi/*</url-pattern> </servlet-mapping>
why happening , how resolve issue?
i faced same issue. utilize jdk 1.7 instead of jdk 1.8 build project , uploaded again. fixed me.
java google-app-engine
No comments:
Post a Comment