本地服务器的Server App Engine Standard无法启动 [英] Server App Engine Standard at localhost failed to start
问题描述
我从eclipse创建了一个Google App Engine标准项目,并尝试在本地App Engine上运行它.它没有启动并引发以下错误-
From eclipse, I created a Google App Engine Standard project and tried to Run it on local App Engine. It is not starting and throwing the below errors -
java.lang.NullPointerException
at java.base/java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
at java.base/java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
at java.base/java.util.Properties.put(Properties.java:1316)
at java.base/java.util.Collections$CheckedMap.put(Collections.java:3636)
at com.google.appengine.tools.development.SharedMain.setTimeZone(SharedMain.java:219)
at com.google.appengine.tools.development.SharedMain.postServerActions(SharedMain.java:188)
at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:398)
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:45)
at com.google.appengine.tools.development.DevAppServerMain.run(DevAppServerMain.java:257)
at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:248)
还请注意,我尚未对该项目进行任何更改.这是创建的默认设置.
Also note that I haven't made any changes to the project. It's the default that gets created.
推荐答案
您的jdk版本可能存在此问题. javac -version
会报告什么?我遇到了与版本12相同的堆栈跟踪.切换到1.8可以正常工作.
This is likely an issue with your jdk version. What does javac -version
report back? I run into the same stack trace with version 12. Switching to 1.8 works.
On MacOS, this answer helps: How to set or change the default Java (JDK) version on OS X?
其他平台应具有类似的版本切换方式.
Other platforms should have similar ways to switch versions.
这篇关于本地服务器的Server App Engine Standard无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!