I was trying a simple grails app which only has one domain class, I
used generate-all to generate the control class and view then I
compiled it locally and tested it locally which worked. I then
deployed it to google app engine and it failed when I tried to create
a new instance of the domain object. The domain class is as following:
package test
import javax.persistence.*;
// import com.google.appengine.api.datastore.Key;
enum Role {Manager, Developer}
@Entity
class Person implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Long id
static constraints = {
id visible:false
}
String name
Role role
}
The stack trace is:
Uncaught exception from servlet
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException:
Error processing GroovyPageView: Error executing tag <g:form>:
java.lang.IllegalAccessException: Reflection is not allowed on
protected native java.lang.Object java.lang.Object.clone() throws
java.lang.CloneNotSupportedException
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:237)
at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable
(RpcRequestParser.java:76)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
(JettyServletEngineAdapter.java:139)
at com.google.apphosting.runtime.JavaRuntime.handleRequest
(JavaRuntime.java:235)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4950)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4948)
at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
(BlockingApplicationHandler.java:24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
359)
at com.google.net.rpc.impl.Server$2.run(Server.java:823)
at com.google.tracing.LocalTraceSpanRunnable.run
(LocalTraceSpanRunnable.java:56)
at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
(LocalTraceSpanBuilder.java:516)
at com.google.net.rpc.impl.Server.startRpc(Server.java:778)
at com.google.net.rpc.impl.Server.processRequest(Server.java:351)
at com.google.net.rpc.impl.ServerConnection.messageReceived
(ServerConnection.java:437)
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:
428)
at com.google.net.async.EventDispatcher.processNetworkEvents
(EventDispatcher.java:762)
at com.google.net.async.EventDispatcher.internalLoop
(EventDispatcher.java:207)
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:392)
at java.lang.Thread.run(Unknown Source)
Caused by:
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException:
Error executing tag <g:form>: java.lang.IllegalAccessException:
Reflection is not allowed on protected native java.lang.Object
java.lang.Object.clone() throws java.lang.CloneNotSupportedException
at
base_data_home_apps_grailsenumtest_1_336810351809818768_WEB_INF_grails_app_views_person_create_gsp.run
(base_data_home_apps_grailsenumtest_1_336810351809818768_WEB_INF_grails_app_views_person_create_gsp:
56)
... 25 more
Caused by: org.codehaus.groovy.runtime.InvokerInvocationException:
java.lang.IllegalAccessException: Reflection is not allowed on
protected native java.lang.Object java.lang.Object.clone() throws
java.lang.CloneNotSupportedException
... 26 more
Caused by: java.lang.IllegalAccessException: Reflection is not allowed
on protected native java.lang.Object java.lang.Object.clone() throws
java.lang.CloneNotSupportedException
at com.google.appengine.runtime.Request.process-42e1461ce95b9d26
(Request.java)
at test.Role.values(Person.groovy)
at test.Role$values.call(Unknown Source)
at
base_data_home_apps_grailsenumtest_1_336810351809818768_WEB_INF_grails_app_views_person_create_gsp
$_run_closure3.doCall
(base_data_home_apps_grailsenumtest_1_336810351809818768_WEB_INF_grails_app_views_person_create_gsp:
50)
at
base_data_home_apps_grailsenumtest_1_336810351809818768_WEB_INF_grails_app_views_person_create_gsp
$_run_closure3.doCall
(base_data_home_apps_grailsenumtest_1_336810351809818768_WEB_INF_grails_app_views_person_create_gsp)
... 26 more
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" 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?hl=en
-~----------~----~----~----~------~----~------~--~---