'ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options
I am using Eclipse plugin "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."
Please help me to do debug configuration.
Solution 1:[1]
You must start the server using the "Run" button instead of "Debug". You have set jdwp option in launch configurations and hit "Debug", while hitting "Debug" sets another jdwp option, so you get that error.
Solution 2:[2]
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?
If you are trying to debug Java in your adapters, you can follow the instructions in this video:
If you are trying to debug JavaScript in your adapters, you can review the answer in this question:
Solution 3:[3]
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
Solution 4:[4]
set JPDA_ENABLE=0 in your start script
Solution 5:[5]
I had following errors in my Intellij Idea when debugging

I Was able to fix it by unchecking the below mentioned "Pass environment variables" option in debug configuration "Startup/Connection" tab
Solution 6:[6]
Solution 7:[7]
Try this instead: use run command to launch program
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | Community |
| Solution 3 | rtgher |
| Solution 4 | Simas Joneliunas |
| Solution 5 | Ravindu Kottahachchi |
| Solution 6 | Luis Alfonso Ponce |
| Solution 7 | stayfool |







