不断收到错误消息,指出 localhost 的 Server App Engine Standard 无法启动 [英] Keep getting error that says Server App Engine Standard at localhost failed to start

查看:29
本文介绍了不断收到错误消息,指出 localhost 的 Server App Engine Standard 无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在 Eclipse 中启动 Google App Engine 项目时,我不断收到错误消息,说 localhost 的 Server App Engine Standard 无法启动(错误日志如下).

When trying to start a google app engine project in eclipse i keep getting an error saying Server App Engine Standard at localhost failed to start(error log below).

有没有人遇到过这个问题,问题的原因是什么.

Has anyone come across this issue before and what was the cause of the issue.

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.appengine.tools.development.StreamHandlerFactory (file:/C:/Users/AppData/Local/google/ct4j-cloud-sdk/LATEST/google-cloud-sdk/platform/google_appengine/google/appengine/tools/java/lib/impl/appengine-local-runtime.jar) to method java.net.URL.getURLStreamHandler(java.lang.String)
WARNING: Please consider reporting this to the maintainers of com.google.appengine.tools.development.StreamHandlerFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Jan 05, 2020 3:13:54 PM com.google.appengine.tools.development.SystemPropertiesManager setSystemProperties
INFO: Overwriting system property key 'java.util.logging.config.file', value 'C:UsersAppDataLocalgooglect4j-cloud-sdkLATESTgoogle-cloud-sdkplatformgoogle_appenginegoogleappengine	oolsjavaconfigsdklogging.properties' with value 'WEB-INF/logging.properties' from 'C:Userseclipse-workspace.metadata.pluginsorg.eclipse.wst.server.core	mp1WEB-INFappengine-web.xml'
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:3638)
    at com.google.appengine.tools.development.SharedMain.setTimeZone(SharedMain.java:183)
    at com.google.appengine.tools.development.SharedMain.postServerActions(SharedMain.java:152)
    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)

非常感谢任何人可以提供的任何建议来帮助我解决这个问题,因为在这个问题上时间肯定对我不利.

would be really appreciative of any advice anyone could give to help me solve this issue as time is definitely against me on this one.

appengine-web.xml 添加如下:

edit: appengine-web.xml added below:

<?xml version="1.0" encoding="UTF-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
    <threadsafe>true</threadsafe>
    <sessions-enabled>false</sessions-enabled>
    <runtime>java8</runtime>
    <system-properties>
        <property value="WEB-INF/logging.properties" 
            name="java.util.logging.config.file"/>
    </system-properties>
</appengine-web-app>

推荐答案

您使用的是 Java 11 JVM,本地开发服务器不支持该 JVM.

You're running with a Java 11 JVM, which isn't supported by the local development server.

此问题通常表示您没有配置 Java 8 JVM.您需要:

This problem usually indicates that you don't have a Java 8 JVM configured. You'll need to:

  • 下载并安装 Java 8 JVM(例如,来自 adoptopenjdk.net).
  • 通过Preferences > Java > Installed JREs将JVM添加到Eclipse;搜索按钮通常会起作用.
  • 执行环境窗格中将此JVM标记为JavaSE-1.8配置文件的默认JVM.
  • Download and install a Java 8 JVM (for example, from adoptopenjdk.net).
  • Add the JVM to Eclipse via Preferences > Java > Installed JREs; the Search button will usually just work.
  • Mark this JVM as the default JVM for the JavaSE-1.8 profile in the Execution Environments pane.

这篇关于不断收到错误消息,指出 localhost 的 Server App Engine Standard 无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆