Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JBIDE-26598 - fix JMX navigator local processes with JDK9+ Eclipse #619

Conversation

apupier
Copy link
Member

@apupier apupier commented Mar 27, 2019

instance targeting a JDK9+ process

with JDK9+, there is no management-agent.jar put aside in lib folder of
the JDk home. It is available by default.

Signed-off-by: Aurélien Pupier apupier@redhat.com

instance targeting a JDK9+ process

with JDK9+, there is no management-agent.jar put aside in lib folder of
the JDk home. It is available by default.

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
@apupier
Copy link
Member Author

apupier commented Mar 27, 2019

it would worth adding a test but seems there are not a lot available yet and might require several hours/days of work (unless I missed something?) so given that we are already in code freeze,i provided this PR which is fixing one of the 2 problematic cases when using JMX Navigator with Java 11.

@odockal
Copy link
Member

odockal commented Mar 27, 2019

@apupier Great work, I can test your solution.

@@ -233,20 +234,22 @@ public String getLocalConnectorAddressInternal(Object monitoredVm, int pid) thro
try {
virtualMachine = ToolsCore.attach(pid);

String javaHome = ToolsCore.getSystemProperties(virtualMachine)
.getProperty(IConstants.JAVA_HOME_PROPERTY_KEY);
if(!JavaUtilities.isJigsawRunning()) {
Copy link
Member Author

@apupier apupier Mar 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please note that it would be more accurate if we are checking if jigsaw is running on the targeted vm (it will be required to handle the other problematic use case)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created another set of PR to handle it more accurately: jbosstools/jbosstools-base#642 and #620

@jeffmaury
Copy link
Member

Replaced by #620

@jeffmaury jeffmaury closed this Mar 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants