Hi everybody,
I build a RESTfull Grails application using grails-1.1.1, appengine-
java-sdk-1.3.0, grails-app-engine-0.8.5 and grails-gorm-jpa-0.6.
This application contains a simple domain class Document with two
properties.
In my UrlMappings file, I have the following mapping :
class UrlMappings {
static mappings = {
"/$controller/$action?/$id?"{
constraints {
// apply constraints here
}
}
"/document/$id?" (controller: "document") {
action = [GET:'show', POST:'save', PUT:"update",
DELETE:"delete"]
}
"/"(view:"/index")
"500"(view:'/error')
}
}
When I run this application locally, it runs well except en exception
for the delete method.
I deploy it to Google App Engine. But when I run it on the GAE and
try to get the list of document, I get the following exception :
#
1.
01-25 08:12PM 43.785 /document 500 551ms 971cpu_ms 0kb Mozilla/
5.0 (X11; U; Linux i686; fr; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04
(jaunty) Firefox/3.0.14,gzip(gfe)
See details
194.254.189.253 - - [25/Jan/2010:20:12:44 -0800] "GET /document
HTTP/1.1" 500 0 "http://unctest.appspot.com/" "Mozilla/5.0 (X11; U;
Linux i686; fr; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty)
Firefox/3.0.14,gzip(gfe)" "unctest.appspot.com"
2.
C 01-25 08:12PM 44.328
Uncaught exception from servlet
org.codehaus.groovy.runtime.InvokerInvocationException:
java.lang.NullPointerException
at
com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter
(ParseBlobUploadFilter.java:97)
at
com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter
(SaveSessionFilter.java:35)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle
(AppVersionHandlerMap.java:238)
at
com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable
(RpcRequestParser.java:76)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
(JettyServletEngineAdapter.java:135)
at com.google.apphosting.runtime.JavaRuntime.handleRequest
(JavaRuntime.java:235)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5235)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5233)
at
com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
(BlockingApplicationHandler.java:24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication
(RpcUtil.java:363)
at com.google.net.rpc.impl.Server$2.run(Server.java:838)
at com.google.tracing.LocalTraceSpanRunnable.run
(LocalTraceSpanRunnable.java:56)
at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
(LocalTraceSpanBuilder.java:536)
at com.google.net.rpc.impl.Server.startRpc(Server.java:793)
at com.google.net.rpc.impl.Server.processRequest(Server.java:
368)
at com.google.net.rpc.impl.ServerConnection.messageReceived
(ServerConnection.java:448)
at com.google.net.rpc.impl.RpcConnection.parseMessages
(RpcConnection.java:319)
at com.google.net.rpc.impl.RpcConnection.dataReceived
(RpcConnection.java:290)
at com.google.net.async.Connection.handleReadEvent
(Connection.java:466)
at com.google.net.async.EventDispatcher.processNetworkEvents
(EventDispatcher.java:759)
at com.google.net.async.EventDispatcher.internalLoop
(EventDispatcher.java:205)
at com.google.net.async.EventDispatcher.loop
(EventDispatcher.java:101)
at com.google.net.rpc.RpcService.runUntilServerShutdown
(RpcService.java:251)
at com.google.apphosting.runtime.JavaRuntime$RpcRunnable.run
(JavaRuntime.java:394)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at org.datanucleus.jpa.EntityManagerImpl.find
(EntityManagerImpl.java:219)
at
org.datanucleus.store.appengine.jpa.DatastoreEntityManager.find
(DatastoreEntityManager.java:48)
at org.grails.jpa.JpaPluginSupport
$__clinit__closure3_closure7_closure12_closure20.doCall
(JpaPluginSupport.groovy:268)
at unc.DocumentController$_closure3.doCall
(DocumentController.groovy:18)
at unc.DocumentController$_closure3.doCall
(DocumentController.groovy)
... 26 more
Do you any issues to help me ?
Thanks
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.