Hi Jerry, App Engine Standard environment is a sandbox and you may not have much control on the execution environment. Looking at ClassCastException doc <https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/ClassCastException.html>, this exception indicates that the code has attempted to cast an object to a subclass of which it is not an instance. This seems like an issue in your code, however, if you believe the issue is not from your app, you may create a PRIVATE issue tracker <https://issuetracker.google.com/issues/new?component=491299&template=1161102> and provide us with your project ID, your App Engine service ID, Version name and the timestamp you have received the issue, so that we would be able to inspect your app's logs to dig into the issue.
Some other possible ways to debug may be: - Running load tests locally to try to reproduce the issue, and see if there is an exception when run outside App Engine. - Looking at the first request on an instance to get the exception -- then trace through the code that would be executed by this request. You may add more application logs <https://cloud.google.com/appengine/docs/standard/java11/writing-application-logs> to capture more context of the issue. On Monday, October 5, 2020 at 10:33:21 AM UTC-4 [email protected] wrote: > Hi > > I am experiencing an intermitent problem of GAE jetty 9.0 crash. The crash > is not caused by a specific restful call. Once GAE jetty 9.0 crashes, the > service (the application) is not accessable anymore and all instances have > to be restarted. Have anyone seen the same problem and managed to get full > stacktrace logs to find the root cause? > > Here is the complete log. on GAE java standard environment, > XX:-OmitStackTraceInFastThrow > is not supported. any help on getting the full stacktrace is real > appreciated. > > > avax.servlet.ServletException: java.lang.ClassCastException: Stack trace > intentionally empty, disable using -XX:-OmitStackTraceInFastThrow at > com.google.apphosting.runtime.jetty9.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:297) > > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) > > at org.eclipse.jetty.server.Server.handle(Server.java:539) at > org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333) at > com.google.apphosting.runtime.jetty9.RpcConnection.handle(RpcConnection.java:213) > > at > com.google.apphosting.runtime.jetty9.RpcConnector.serviceRequest(RpcConnector.java:81) > > at > com.google.apphosting.runtime.jetty9.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:134) > > at > com.google.apphosting.runtime.JavaRuntime$RequestRunnable.dispatchServletRequest(JavaRuntime.java:781) > > at > com.google.apphosting.runtime.JavaRuntime$RequestRunnable.dispatchRequest(JavaRuntime.java:744) > > at > com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:714) > > at > com.google.apphosting.runtime.JavaRuntime$NullSandboxRequestRunnable.run(JavaRuntime.java:900) > > at > com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:270) > > at java.lang.Thread.run(Thread.java:748) Caused by: > java.lang.ClassCastException: Stack trace intentionally empty, disable > using -XX:-OmitStackTraceInFastThrow > > Jerry > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/c6479327-b51d-4a72-a4a0-a6f42979d8d5n%40googlegroups.com.
