gpt4 book ai didi

java - gcloud Preview 应用程序在 Windows 上运行 "bad port Access Denied"错误

转载 作者:行者123 更新时间:2023-12-01 11:56:04 26 4
gpt4 key购买 nike

我正在尝试设置一个多模块 Appengine 应用,其中一个模块作为托管虚拟机。

但对于初学者来说,我正在检查是否可以在此处运行在 AppEngine Java 多模块示例上运行的 gcloud 预览应用程序: https://github.com/GoogleCloudPlatform/appengine-modules-sample-java

当我将其导入 Android Studio 并运行 appengineRun 构建规则时,它构建得很好。但是,如果我进入命令提示符并运行以下命令:

E:\appengine-modules-sample-java-master>gcloud preview app run appengine-modules
-guestbook/src/main/webapp

然后我收到以下错误:

INFO: Skipping SDK update check. INFO: Starting API server at: http://localhost:51296 INFO: Starting module "default" running at: http://localhost:8080 INFO: Starting admin server at: http://localhost:8000 Exception in thread "main" java.lang.RuntimeException: Unable to create a DevApp Server ERROR: bad runtime process port ['']
at com.google.appengine.tools.development.devappserver2.DevAppServer2Fac tory.doCreateDevAppServer(DevAppServer2Factory.java:87)
at com.google.appengine.tools.development.devappserver2.DevAppServer2Fac tory.access$000(DevAppServer2Factory.java:35)
at com.google.appengine.tools.development.devappserver2.DevAppServer2Fac tory$1.run(DevAppServer2Factory.java:47)
at com.google.appengine.tools.development.devappserver2.DevAppServer2Fac tory$1.run(DevAppServer2Factory.java:45)
at java.security.AccessController.doPrivileged(Native Method)
at com.google.appengine.tools.development.devappserver2.DevAppServer2Fac tory.createDevAppServer(DevAppServer2Factory.java:45)
at com.google.appengine.tools.development.devappserver2.StandaloneInstan ce$StartAction.apply(StandaloneInstance.java:119)
at com.google.appengine.tools.development.devappserver2.StandaloneInstan ce$StartAction.apply(StandaloneInstance.java:82) ERROR: bad runtime process port ['']
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.j ava:48)
at com.google.appengine.tools.development.devappserver2.StandaloneInstan ce.run(StandaloneInstance.java:66)
at com.google.appengine.tools.development.devappserver2.StandaloneInstan ce.main(StandaloneInstance.java:44) Caused by: java.lang.RuntimeException: Cannot generate policy file.
at com.google.apphosting.utils.security.SecurityManagerInstaller.install (SecurityManagerInstaller.java:96)
at com.google.appengine.tools.development.devappserver2.DevAppServer2Fac tory.doCreateDevAppServer(DevAppServer2Factory.java:72)
... 10 more Caused by: java.io.IOException: Access is denied
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:1006)
at java.io.File.createTempFile(File.java:1981)
at java.io.File.createTempFile(File.java:2032)
at com.google.apphosting.utils.security.SecurityManagerInstaller.generat ePolicyFile(SecurityManagerInstaller.java:144)
at com.google.apphosting.utils.security.SecurityManagerInstaller.install (SecurityManagerInstaller.java:94)
... 11 more INFO: default: "GET /_ah/warmup HTTP/1.1" 500 2167

对于我尝试通过 gcloud Preview app run 运行的任何 Java AppEngine 模块,我都会遇到相同的错误。 gcloud 应用程序不支持运行 Java AppEngine 模块吗?

我做错了什么?

更新:截至今天,我使用最新的 gcloud 工具再次运行该命令,但仍然收到上述错误。

最佳答案

只有当我在 Windows 上运行时才会出现此问题。以管理员身份运行命令提示符并执行 gcloud 命令可修复此“端口错误/访问被拒绝”问题。

关于java - gcloud Preview 应用程序在 Windows 上运行 "bad port Access Denied"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28441545/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com