mck created NETBEANS-1066: ----------------------------- Summary: Profiler won't attach to local process using jdk10 Key: NETBEANS-1066 URL: https://issues.apache.org/jira/browse/NETBEANS-1066 Project: NetBeans Issue Type: Bug Components: profiler - Attach Affects Versions: 9.0 Environment: NetBeans git SHA 6e9f6f8 . MacOSX 10.13.6 (17G65) . $ java -version java version "10.0.1" 2018-04-17 Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10) Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode) . Reporter: mck
Following these steps - start a java process (on the command line `java -jar ...`) - from netbeans 'profile -> attach to external process...' - open 'setup attach to process...' - choose 'already running local java process' and the process from list. then "OK" - hit 'attach' An error dialog with only the text "0" appears. The logs report the following exception {noformat} com.sun.tools.attach.AgentLoadException: 0 at jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:104) at jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:115) at jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgent(HotSpotVirtualMachine.java:139) at org.netbeans.modules.profiler.NetBeansProfiler.loadAgentIntoTargetJVM(NetBeansProfiler.java:791) at org.netbeans.modules.profiler.NetBeansProfiler.attachToApp(NetBeansProfiler.java:759) at org.netbeans.modules.profiler.nbimpl.actions.ProfilerLauncher$ProfilerSessionImpl$1.run(ProfilerLauncher.java:112) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033){noformat} This same process works with netbeans started using jdk1.8 And using 'manually started local java process' (against a local process started with the corresponding agent jvm options) does work with jdk10 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists