Google Cloud Platform - Fail

Disclaimer: Dieser Thread wurde aus dem alten Forum importiert. Daher werden eventuell nicht alle Formatierungen richtig angezeigt. Der ursprüngliche Thread beginnt im zweiten Post dieses Threads.

Google Cloud Platform - Fail
Hallo Zusammen,

gestern habe ich meine Anwendung in die Google Cloud Engine deployed.
Alles war gut, als ich heute drauf gehen wollte, sah ich, dass die Anwendung nicht mehr läuft.

Das Problem ist:

"RuntimeException: End of story!

at org.wahlzeit.apps.Wahlzeit.contextInitialized (Wahlzeit.java:62)

at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized (ContextHandler.java:843)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized (ServletContextHandler.java:533)
at org.eclipse.jetty.server.handler.ContextHandler.startContext (ContextHandler.java:816)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext (ServletContextHandler.java:345)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp (WebAppContext.java:1406)
at com.google.apphosting.runtime.jetty9.AppEngineWebAppContext.startWebapp (AppEngineWebAppContext.java:175) " 

Hat jemand eine Idee, wie ich es fixen kann?

Danke


Hi,

schon mal “./gradlew clean” probiert?

Grüße!


Hey,

das ist ja bereits in der Cloud und läuft nicht mehr.
Ich kann auch diesen Befehl nicht ausführen in der Cloud.

Grüße


Seems like the context cannot be initialized at the startup of the application.
Can you show us further log output before the error happens?

Does this error happen every time you deploy or was it just once?


Hab das selbe problem:
Am Anfang hat es ohne problem funktioniert, nach einer zeit wirft jeder Http call diesen fehler (vermutlich nachdem die appengine mal neugestartet wurde):

java.lang.RuntimeException: End of story!
at org.wahlzeit.apps.Wahlzeit.contextInitialized (Wahlzeit.java:62)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized (ContextHandler.java:843)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized (ServletContextHandler.java:533)
at org.eclipse.jetty.server.handler.ContextHandler.startContext (ContextHandler.java:816)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext (ServletContextHandler.java:345)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp (WebAppContext.java:1406)
at com.google.apphosting.runtime.jetty9.AppEngineWebAppContext.startWebapp (AppEngineWebAppContext.java:175)
at org.eclipse.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1368)
at org.eclipse.jetty.server.handler.ContextHandler.doStart (ContextHandler.java:778)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart (ServletContextHandler.java:262)
at org.eclipse.jetty.webapp.WebAppContext.doStart (WebAppContext.java:522)
at com.google.apphosting.runtime.jetty9.AppEngineWebAppContext.doStart (AppEngineWebAppContext.java:120)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:68)
at com.google.apphosting.runtime.jetty9.AppVersionHandlerMap.createHandler (AppVersionHandlerMap.java:240)
at com.google.apphosting.runtime.jetty9.AppVersionHandlerMap.getHandler (AppVersionHandlerMap.java:178)
at com.google.apphosting.runtime.jetty9.JettyServletEngineAdapter.serviceRequest (JettyServletEngineAdapter.java:120)
at com.google.apphosting.runtime.JavaRuntime$RequestRunnable.dispatchServletRequest (JavaRuntime.java:727)
at com.google.apphosting.runtime.JavaRuntime$RequestRunnable.dispatchRequest (JavaRuntime.java:690)
at com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run (JavaRuntime.java:660)
at com.google.apphosting.runtime.JavaRuntime$NullSandboxRequestRunnable.run (JavaRuntime.java:852)
at com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run (ThreadGroupPool.java:270)
at java.lang.Thread.run (Thread.java:748)
Caused by: java.lang.IllegalStateException: attempt to initalize SysConfig again
at org.wahlzeit.services.SysConfig.assertIsUninitialized (SysConfig.java:126)
at org.wahlzeit.services.SysConfig.setInstance (SysConfig.java:116)
at org.wahlzeit.main.AbstractMain.startUp (AbstractMain.java:48)
at org.wahlzeit.main.ModelMain.startUp (ModelMain.java:54)
at org.wahlzeit.main.ServiceMain.startUp (ServiceMain.java:101)
at org.wahlzeit.apps.Wahlzeit.contextInitialized (Wahlzeit.java:58)

Hab gestern soviel Zeit dafür verbrannt,
aber leider noch keine Lösung für dieses Problem gefunden :frowning:


Bei mir das selbe Spiel! Anfangs funktioniert es und nach gewisser Zeit wird der Fehler geworfen.

Mit freundlichen Grüßen
matthias


Das Deployen auf die Google Cloud Engine ist für den Kurs nicht notwendig.