[
https://issues.jboss.org/browse/JBIDE-26598?page=com.atlassian.jira.plugi...
]
Aurélien Pupier commented on JBIDE-26598:
-----------------------------------------
so my previous investigation is when using Jboss Tools with JDK 11 and having a JDK 8 for
the process we want to connect to. it means that
sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary is not
"backward-compatible".
In case, it is JDK 11 for both places, the problem is in Jboss Tools code. it searching
for a management-agent.jar which doesn't exist in
org.jboss.tools.jmx.jvmmonitor.internal.tools.JvmAttachHandler.getLocalConnectorAddressInternal(Object,
int)
it is searching for this kind of file C:\install\jdk\jdk-11.0.2\lib\management-agent.jar
but it doesn't exist
Unable to connect to JMX process when instance launched with JDK 11
-------------------------------------------------------------------
Key: JBIDE-26598
URL:
https://issues.jboss.org/browse/JBIDE-26598
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: jmx
Affects Versions: 4.11.0.Final
Reporter: Aurélien Pupier
Priority: Blocker
{code}
org.jboss.tools.jmx.local
Error
Wed Mar 27 09:25:29 CET 2019
Unable to connect to jvm
org.jboss.tools.jmx.jvmmonitor.core.JvmCoreException: Could not get JMX service URL (PID:
9470)
at
org.jboss.tools.jmx.jvmmonitor.internal.core.ActiveJvm.initialize(ActiveJvm.java:462)
at
org.jboss.tools.jmx.jvmmonitor.internal.core.ActiveJvm.initialize(ActiveJvm.java:445)
at org.jboss.tools.jmx.jvmmonitor.internal.core.ActiveJvm.connect(ActiveJvm.java:233)
at org.jboss.tools.jmx.jvmmonitor.internal.core.ActiveJvm.connect(ActiveJvm.java:213)
at
org.jboss.tools.jmx.local.internal.JvmConnectionWrapper.connect(JvmConnectionWrapper.java:118)
at org.jboss.tools.jmx.core.ConnectJob.run(ConnectJob.java:29)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
{code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)