Hi everyone! I got an exception in my GWT/GAE application only in hosted mode. In web mode (on the Google AE) all works fine.
This is the code of service implementation: package com.jsoft.frontoffice.server; import java.util.Date; import java.util.logging.Logger; import javax.jdo.PersistenceManager; import com.google.gwt.user.server.rpc.RemoteServiceServlet; import com.jsoft.frontoffice.client.MainService; public class MainServiceImpl extends RemoteServiceServlet implements MainService { private static final long serialVersionUID = 1L; private static final Logger log = Logger.getLogger(MainServiceImpl.class.getName()); @Override public String addDocument(String value) { //Document doc = new Document(); //doc.setNumber("123"); //doc.setDate(new Date()); //doc.setDeletionMark(false); try { log.warning("VALUE = " + value); PersistenceManager pm = PMF.get().getPersistenceManager(); --- EXCEPTION HERE try { //pm.makePersistent(doc); } catch (Throwable t) { pm.close(); log.warning(new Date().toString() + ": pm.makePersistent(doc); " + t.toString()); return new Date().toString() + ": pm.makePersistent(doc); " + t.toString(); } } catch (Throwable t) { log.warning(new Date().toString() + ": pm = PMF.get().getPersistenceManager(); " + t.toString()); t.printStackTrace(); return new Date().toString() + ": pm = PMF.get().getPersistenceManager(); " + t.toString(); } return "OK"; } } This is the stack trace: Initializing AppEngine server Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger Successfully processed D:\!JOB!\java\FrontOffice\war\WEB-INF/appengine- web.xml Successfully processed D:\!JOB!\java\FrontOffice\war\WEB-INF/web.xml The server is running at http://localhost:8888/ [WARN] VALUE = 123 [ERROR] ResourceBundle org.datanucleus.Localisation for locale ru_RU was not found! [ERROR] ResourceBundle org.datanucleus.jdo.Localisation for locale ru_RU was not found! [WARN] Wed Feb 23 06:35:01 UTC 2011: pm = PMF.get().getPersistenceManager(); java.lang.ExceptionInInitializerError java.lang.ExceptionInInitializerError at com.jsoft.frontoffice.server.MainServiceImpl.addDocument(MainServiceImpl.java: 27) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java: 100) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 569) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) [WARN] /frontoffice/srvc javax.jdo.JDOFatalInternalException: No resources could be found to annotate error message key:"MSG_NestedThrowablesStackTrace" at javax.jdo.spi.I18NHelper.assertBundle(I18NHelper.java:269) at javax.jdo.spi.I18NHelper.msg(I18NHelper.java:147) at javax.jdo.JDOException.printStackTrace(JDOException.java:266) at com.google.apphosting.utils.jetty.AppEngineWebAppContext $AppEngineServletContext.log(AppEngineWebAppContext.java:75) at com.google.gwt.user.server.rpc.RPCServletUtils.writeResponseForUnexpectedFailure(RPCServletUtils.java: 344) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doUnexpectedFailure(AbstractRemoteServiceServlet.java: 110) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) [WARN] /frontoffice/srvc javax.jdo.JDOFatalInternalException: No resources could be found to annotate error message key:"MSG_NestedThrowablesStackTrace" at javax.jdo.spi.I18NHelper.assertBundle(I18NHelper.java:269) at javax.jdo.spi.I18NHelper.msg(I18NHelper.java:147) at javax.jdo.JDOException.printStackTrace(JDOException.java:266) at com.google.gwt.dev.util.log.PrintWriterTreeLogger.doLog(PrintWriterTreeLogger.java: 88) at com.google.gwt.dev.util.log.AbstractTreeLogger.log(AbstractTreeLogger.java: 213) at com.google.gwt.core.ext.TreeLogger.log(TreeLogger.java:281) at com.google.appengine.tools.development.gwt.AppEngineLauncher $LogAdapterHandler.publish(AppEngineLauncher.java:240) at java.util.logging.Logger.log(Unknown Source) at java.util.logging.Logger.doLog(Unknown Source) at java.util.logging.Logger.log(Unknown Source) at com.google.apphosting.utils.jetty.JettyLogger.warn(JettyLogger.java: 58) at org.mortbay.log.Log.warn(Log.java:196) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 458) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) [WARN] handle failed javax.jdo.JDOFatalInternalException: No resources could be found to annotate error message key:"MSG_NestedThrowablesStackTrace" at javax.jdo.spi.I18NHelper.assertBundle(I18NHelper.java:269) at javax.jdo.spi.I18NHelper.msg(I18NHelper.java:147) at javax.jdo.JDOException.printStackTrace(JDOException.java:266) at com.google.gwt.dev.util.log.PrintWriterTreeLogger.doLog(PrintWriterTreeLogger.java: 88) at com.google.gwt.dev.util.log.AbstractTreeLogger.log(AbstractTreeLogger.java: 213) at com.google.gwt.core.ext.TreeLogger.log(TreeLogger.java:281) at com.google.appengine.tools.development.gwt.AppEngineLauncher $LogAdapterHandler.publish(AppEngineLauncher.java:240) at java.util.logging.Logger.log(Unknown Source) at java.util.logging.Logger.doLog(Unknown Source) at java.util.logging.Logger.log(Unknown Source) at com.google.apphosting.utils.jetty.JettyLogger.warn(JettyLogger.java: 58) at org.mortbay.log.Log.warn(Log.java:196) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 582) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) I'm fighting with it over 3 days. Help me please find a solution. -- 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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.