gpt4 book ai didi

java - COBOL 与服务器的连接在 VSCode 中关闭

转载 作者:行者123 更新时间:2023-12-01 17:23:01 25 4
gpt4 key购买 nike

我现在正在尝试学习 COBOL(希望)能够帮助解决危机。我正在调用IBM course这需要 VSCode 中的“IBM Zowe Open Editor”和“Zowe Explorer”扩展。我花了很长时间为其设置 JDK。我使用 JDK1.8.0_251,如 configuration问道。我仍然收到错误消息“cobol 语言服务器在过去 3 分钟内崩溃了 5 次”,导致我的代码无法运行。以下是 COBOL 语言服务器的输出:

[Info  - 10:22:35 AM] Connection to server got closed. Server will restart.
Picked up _JAVA_OPTIONS: -Xmx512M
[Info - 10:22:57 AM] Connection to server got closed. Server will restart.
Picked up _JAVA_OPTIONS: -Xmx512M
[Info - 10:23:20 AM] Connection to server got closed. Server will restart.
[Error - 10:23:22 AM] Request textDocument/definition failed.
Message: Internal error.
Code: -32603
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:67)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.request(GenericEndpoint.java:120)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:261)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:190)
at com.ibm.lsp.cobol.core.abilities.WatchLSPParent.lambda$0(WatchLSPParent.java:96)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:192)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:99)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:65)
... 12 more
Caused by: java.lang.NullPointerException
at com.ibm.lsp.cobol.core.handlers.GetDefinitionHandler.getDefinition(GetDefinitionHandler.java:34)
at com.ibm.lsp.cobol.core.CobolLanguageServer.definition(CobolLanguageServer.java:182)
... 17 more

Picked up _JAVA_OPTIONS: -Xmx512M
[Info - 10:23:42 AM] Connection to server got closed. Server will restart.
Picked up _JAVA_OPTIONS: -Xmx512M
[Error - 10:24:05 AM] Connection to server got closed. Server will not be restarted.

更新:我想我需要访问 z/OS 大型机。我找到了如何获得免费访问here在 IBM 的 Master the Mainframe 计划中,但显然我需要添加 z/OSMF 软件(只为您提供 3 天的免费试用期)或名为 Remote System Explorer API 的东西。我会继续研究...

最佳答案

报告中数据中心升级时 COBOL 服务器系统不可用。 COBOL 服务器现已启动。我建议使用开放大型机项目、OMP、slack channel cobol 编程类(class)来寻求帮助。仅供引用 - z/OSMF 已安装并可运行。 COBOL 类(class)系统、Master the Mainframe 学习系统、Zowe 教程系统和 ZTrial 系统都是具有单独 IP 地址的独立 z/OS。请包含系统的 ID 和 IP 地址,以确保我们保持同步。

关于java - COBOL 与服务器的连接在 VSCode 中关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61256486/

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