2017-11-14 11 views
0

Google App Engine SDK 1.9.7でkeplerで正常に動作するgwt 2.6.1アプリケーションがあります。今私は桟橋とGWT開発モードでこのプロジェクトを実行すると、その後、私は例外java.lang.NullPointerException:このスレッドにAPI環境が登録されていません

2017-11-14 13:09:35.108:WARN:oejw.WebAppContext:Failed startup of context c.g.g.d.s.j.WebAppContextWithReload{/,file:/C:/NEON%20Projects/14%20nov%20existing%20project/Slick%20Erp/war/},C:\NEON Projects\14 nov existing project\Slick Erp\war 
java.lang.NullPointerException: No API environment is registered for this thread. 
    at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId(DatastoreApiHelper.java:144) 
    at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppIdNamespace(DatastoreApiHelper.java:160) 
    at com.google.appengine.api.datastore.Query.<init>(Query.java:210) 
    at com.google.appengine.api.datastore.Query.<init>(Query.java:141) 
    at com.googlecode.objectify.impl.QueryImpl.<init>(QueryImpl.java:69) 
    at com.googlecode.objectify.impl.LoadTypeImpl.createQuery(LoadTypeImpl.java:48) 
    at com.googlecode.objectify.impl.Queryable.list(Queryable.java:55) 
    at com.slicktechnologies.server.MyWarmup.contextInitialized(MyWarmup.java:352) 
    at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782) 
    at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424) 
    at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774) 
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249) 
    at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242) 
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717) 
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494) 
    at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:541) 
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) 
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) 
    at org.eclipse.jetty.server.handler.RequestLogHandler.doStart(RequestLogHandler.java:162) 
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) 
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) 
    at org.eclipse.jetty.server.Server.doStart(Server.java:282) 
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) 
    at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:740) 
    at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:632) 
    at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1054) 
    at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836) 
    at com.google.gwt.dev.DevMode.main(DevMode.java:413) 

の下に任意の助けを得た私は、この新しいバージョンでは、既存のプロジェクトをimprotedしている今Cloud Tools for EclipseGWT Eclipse Plugin
を更新しましたか?どのようにこの例外を解決するには?

答えて

0

App Engine開発サーバーを使用して起動する必要があります。幸いにも、GWTアプリケーションを提供することができますが、プロジェクトでGWTスーパーデベロッパーモードビルダーを有効にする必要があります。 Migrating from the Google Plugin for Eclipseに関するCloud Tools for Eclipseのドキュメントを参照してください。

+0

貴重なご回答ありがとうございます。私は上記の命令を使用しました。まず、既存のプロジェクトを新しい環境にインポートしました。それから、アプリケーションエンジン標準のConfigure> Convert to App Engine Projectに変換しました。 Configure> Enable GWT SDM Builderも有効にします。今私は私のアプリケーションを実行してからmywarmupサーブレットが実行されますが、私のアプリケーションのGWTエントリーポイントクラスは実行されません。なぜ私のアプリが動かないのですか?任意のヘルプ –

関連する問題