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

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

问题描述

当尝试在eclipse中启动google app引擎项目时,我不断收到错误消息,说本地主机的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:\Users\AppData\Local\google\ct4j-cloud-sdk\LATEST\google-cloud-sdk\platform\google_appengine\google\appengine\tools\java\config\sdk\logging.properties' with value 'WEB-INF/logging.properties' from 'C:\Users\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\WEB-INF\appengine-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,本地开发服务器不支持它.

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>已安装的JRE 将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.

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

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