GAE中的Spring Hibernate错误(Google App Engine)

时间:2014-03-19 23:19:53

标签: spring hibernate google-app-engine

当我尝试运行Spring,Hibernate应用程序时,我在GAE(Google App Engine)中遇到以下错误。是由于用户ID和密码?我无法弄明白。我也改变了密码.....感谢任何帮助。

javax.servlet.ServletContext log:调度传入RPC调用时发生异常com.google.gwt.user.client.rpc.SerializationException:键入' org.hibernate.exception.DataException'未包含在可由此SerializationPolicy序列化的类型集中,或者无法加载其Class对象。出于安全考虑,此类型不会被序列化:instance = org.hibernate.exception.DataException:无法在com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:665)中打开连接com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:126)at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ ValueWriter $ 8.write(ServerSerializationStreamWriter.java) :153)在com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:585)com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java) :755)com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:794)at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationS) treamWriter.java:667)com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:126)at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ ValueWriter $ 8 .write(ServerSerializationStreamWriter.java:153)位于com.google.gwt.user.rp.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:585)com.google.gwt.user.server.rpc.RPC.encodeResponse (RPC.java:605)com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:393)com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java) :579)com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)at at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62),位于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)的com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:125) com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35)位于com.google.apphosting.utils的org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1157)。 servlet.JdbcMySqlConnectionCleanupFilter.doFilter(JdbcMySqlConnectionCleanupFilter.java:60)位于com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter)的org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1157)。 java:43)at org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletH andler.java:1157)org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)org.mortbay.jetty.security.Handler.handle(SecurityHandler.java:216)atg.mortbay.jetty位于org.mortbay.jetty.webapp.WebAppContext.handle的org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)的.servlet.SessionHandler.handle(SessionHandler.java:182)(WebAppContext.java:418 )位于org.mortbay.jetty.Server的org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)的com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:266)。处理(Server.java:326)atg.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)atg.mortbay.jetty.HttpConnection $ RequestHandler.headerComplete(HttpConnection.java:923)com.google.apphosting位于com.google.apphosting.runtime.jetty.JettyS的org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)中的.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76) ervletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:146)com.google.apphosting.runtime.JavaRuntime $ RequestRunnable.run(JavaRuntime.java:446)com.google.tracing.TraceContext $ TraceContextRunnable.runInContext(TraceContext.java:437) com.google.tracing.TraceContext $ TraceContextRunnable $ 1.run(TraceContext.java:444)at com.google.tracing.CurrentContext.runInContext(CurrentContext.java:188)com.google.tracing.TraceContext $ AbstractTraceContextCallback.runInInheritedContextNoUnref( TraceContext.java:308)com.google.trace.TraceContext $ AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:300)com.google.trace.TraceContext $ TraceContextRunnable.run(TraceContext.java:441)com.google.apphosting .runtime.ThreadGroupPool $ PoolEntry.run(ThreadGroupPool.java:251)at java.lang.Thread.run(Thread.java:724)

1 个答案:

答案 0 :(得分:0)

堆栈跟踪提到JdbcMySqlConnectionCleanupFilter,它与您评论的MySQL相关。首先,确保您已遵循Cloud SQL指南并启用了结算功能。

在没有源代码讨论的情况下,我建议一个潜在的问题消除过程。在AppEngine上部署并运行文档化的启动器Cloud SQL应用程序,以验证您的帐户和权限。在Cloud SQL工作之后,添加并测试Spring框架依赖项以验证它们是否正确集成。在Spring工作之后,添加原始项目内容。