错误:无法两次加载此 JVM TI 代理,请检查您的 java 命令行是否有重复的 jdwp 选项
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24032125/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options
提问by gaurav001
I am using Eclipse plugin "IBM Worklight Developer Edition".
我正在使用 Eclipse 插件“IBM Worklight Developer Edition”。
I am trying to debug the adapter procedure code. For that I tried to do some debug configurations but it said Server already running(debug button disabled). So I stopped the server then again tried debug configuration, this time the button was enabled but on console I got "ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options."
我正在尝试调试适配器过程代码。为此,我尝试进行一些调试配置,但它说服务器已在运行(调试按钮已禁用)。所以我停止了服务器,然后再次尝试调试配置,这次按钮已启用,但在控制台上我得到了“错误:无法两次加载此 JVM TI 代理,请检查您的 java 命令行是否有重复的 jdwp 选项。”
Please help me to do debug configuration.
请帮我做调试配置。
回答by Idan Adar
It would great if you could edit your question and supply more information...
如果您可以编辑您的问题并提供更多信息,那就太好了...
- Worklight version
- Java or JS?
- The full error exception and trace
- What is the problem you are trying to debug?
- 工作灯版本
- Java还是JS?
- 完整的错误异常和跟踪
- 您尝试调试的问题是什么?
If you are trying to debug Javain your adapters, you can follow the instructions in this video:
如果您尝试在适配器中调试Java,可以按照此视频中的说明进行操作:
If you are trying to debug JavaScriptin your adapters, you can review the answer in this question:
如果您尝试在您的适配器中调试JavaScript,您可以查看此问题中的答案:
回答by stayfool
Try this instead: use run command to launch program
试试这个:使用运行命令来启动程序
回答by user3631225
this is pretty straightforward. you have the same argument twice somewhere in your vm arguments. Try referring to this post: ERROR: Cannot load this JVM TI agent twice starting Oracle WebLogic Server 12.1.3.0
这很简单。您在 vm 参数中的某处有两次相同的参数。尝试参考这篇文章:错误:无法加载此 JVM TI 代理两次启动 Oracle WebLogic Server 12.1.3.0
回答by Abdollah
You must start the server using the "Run"button instead of "Debug". You have set jdwpoption in launch configurations and hit "Debug", while hitting "Debug" sets another jdwpoption, so you get that error.
您必须使用“运行”按钮而不是“调试”来启动服务器。您已在启动配置中设置jdwp选项并点击“调试”,而点击“调试”会设置另一个jdwp选项,因此您会收到该错误。