This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 122607 - JConsole does not start
Summary: JConsole does not start
Status: RESOLVED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: JMX (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P1 blocker (vote)
Assignee: Jean-francois Denise
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-22 21:56 UTC by _ alexlamsl
Modified: 2007-12-12 08:48 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Command line as shown in Output tab (586 bytes, text/plain)
2007-12-11 19:23 UTC, _ alexlamsl
Details
Options for JConsole (77.05 KB, image/png)
2007-12-12 00:19 UTC, _ alexlamsl
Details
JConsole Overview (87.18 KB, image/png)
2007-12-12 00:29 UTC, _ alexlamsl
Details
JConsole Memory (89.53 KB, image/png)
2007-12-12 00:30 UTC, _ alexlamsl
Details
JConsole Threads (91.30 KB, image/png)
2007-12-12 00:32 UTC, _ alexlamsl
Details
JConsole VM Summary (158.66 KB, image/png)
2007-12-12 00:33 UTC, _ alexlamsl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ alexlamsl 2007-11-22 21:56:44 UTC
Clicking on "Start JConsole Management Console" does not cause jconsole to start - an extra "java.exe" is started but 
no UI is visible.

Subsequently, shutting down of IDE is prompt with a running task of JConsole.

Starting jconsole.exe directly does start the program up correctly.

Product Version: NetBeans IDE Dev (Build 200711191200)
Java: 1.6.0_10-ea; Java HotSpot(TM) Client VM 1.6.0_10-ea-b07
System: Windows Vista version 6.0 running on x86; Cp1252; en_GB (nb)
Comment 1 Jiri Prox 2007-11-26 13:12:46 UTC
I cannot see Start JConsole Management Console in the IDE. Where can I find it? Do you use any additional plugin?
Comment 2 _ alexlamsl 2007-11-26 16:57:54 UTC
Oh - silly me :P

You'll need the JMX plug-in from the standard dev UC.
Comment 3 Jiri Vagner 2007-12-05 14:33:37 UTC
I'm able to invoke JConsole window via "Run" -> "Start JConsole ..."

Product Version: NetBeans IDE Dev (Build 20071205045329)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)

Comment 4 _ alexlamsl 2007-12-05 20:23:21 UTC
On my machine the JConsole window never appears. On the other hand, I can run JConsole normally outside of the IDE 
without any issues.

Output Tab:

JConsole starting...
C:\Program Files\Programming\JavaSE\1.6.0_10\bin\java  -classpath "C:\Program Files\Programming\NetBeans\6.1-
200712041200\platform7\lib\boot.jar;C:\Program Files\Programming\NetBeans\6.1-200712041200\platform7\lib\org-openide-
modules.jar;C:\Program Files\Programming\NetBeans\6.1-200712041200\platform7\lib\org-openide-util.jar;C:\Program 
Files\Programming\JavaSE\1.6.0_10\lib\dt.jar;C:\Program Files\Programming\JavaSE\1.6.0_10
\lib\tools.jar;null;C:\Program Files\Programming\JavaSE\1.6.0_10\lib\jconsole.jar" sun.tools.jconsole.JConsole -
interval=4  
JConsole started

---------------------------

Product Version: NetBeans IDE Dev (Build 200712041200)
Java: 1.6.0_10-ea; Java HotSpot(TM) Client VM 1.6.0_10-ea-b08
System: Windows Vista version 6.0 running on x86; Cp1252; en_GB (nb)
Comment 5 Jean-francois Denise 2007-12-06 07:59:41 UTC
What is the netbeans JMX module spec and impl number? We fixed a similar problem for netbeans 6.0 FCS (release 3.0).

I think that you have installed the JMX module that comes from the dev UC, in this module the bug could occur.

Let me know.

Thanks.
Comment 6 Jean-francois Denise 2007-12-06 16:40:10 UTC
release60 and trunk have been merged.
If you rebuild the JMX module, you will get the fix.
Comment 7 _ alexlamsl 2007-12-08 09:13:40 UTC
Still reproducible on:

Product Version: NetBeans IDE Dev (Build 200712080000)
Java: 1.6.0_10-ea; Java HotSpot(TM) Client VM 1.6.0_10-ea-b08
System: Windows Vista version 6.0 running on x86; Cp1252; en_GB (nb)

JMX module reports:

Version: 3.0.0.30
Comment 8 Jean-francois Denise 2007-12-10 21:37:17 UTC
I don't manage to reproduce on Vista and JDK1.6. I pasted the JConsoe Tab output.
I am using Netbeans 6.0 FCS and JMX Module  3.0.0.30

Did you do a fresh install (removal of .netbeans)?

JConsole starting...
c:\Program Files\Java\jdk1.6.0_03\bin\java  -classpath c:\Program Files\NetBeans 6.0\platform7\lib\boot.jar;c:\Program 
Files\NetBeans 6.0\platform7\lib\org-openide-modules.jar;c:\Program Files\NetBeans 6.0\platform7\lib\org-openide-
util.jar;c:\Program Files\Java\jdk1.6.0_03\lib\dt.jar;c:\Program Files\Java\jdk1.6.0_03\lib\tools.jar;null;c:\Program 
Files\Java\jdk1.6.0_03\lib\jconsole.jar sun.tools.jconsole.JConsole -interval=4  
JConsole started
Comment 9 _ alexlamsl 2007-12-11 10:41:37 UTC
It is indeed a freah install. Note that I'm using JDK6uN(b08), which could potentially be the culprit.

However, when I paste the line from the Output Tab into Command Prompt JConsole does start up normally.
Comment 10 Jean-francois Denise 2007-12-11 11:27:16 UTC
Could you past the exact command line that is displayed using JMX 3.0 JMX module?
Thanks.

Comment 11 _ alexlamsl 2007-12-11 19:23:03 UTC
Created attachment 54163 [details]
Command line as shown in Output tab
Comment 12 _ alexlamsl 2007-12-11 19:27:45 UTC
Just to be sure - the JMX module has indeed started up an instance of java.exe in the background, however it is 
permanently hidden and would need to be forcefully shut down ("Exit IDE") when trying to close down NetBeans IDE.
Comment 13 Jean-francois Denise 2007-12-11 21:27:02 UTC
I am now using latest JDK 6.
java version "1.6.0_10-ea"
Java(TM) SE Runtime Environment (build 1.6.0_10-ea-b08)
Java HotSpot(TM) Client VM (build 1.6.0_10-ea-b08, mixed mode, sharing)

Still not able to reproduce...

Could you go to Tools/Options/Miscellaneous/JConsole and :
1) Check that you don't have any value in Default Target. This could cause a bad connection to a never responding old 
process...
2) Please add into the Arguments area: -debug
JConsole will then display inside the output tab any exception that could occur.
If nothing is displayed,  could you connect JConsole to the background process in order to look at running Thread (in 
the Thread tab). Perhaps that stack will give infos. You can also check for deadlock.

Thanks.
Comment 14 _ alexlamsl 2007-12-12 00:19:43 UTC
Created attachment 54173 [details]
Options for JConsole
Comment 15 _ alexlamsl 2007-12-12 00:29:00 UTC
Created attachment 54174 [details]
JConsole Overview
Comment 16 _ alexlamsl 2007-12-12 00:30:20 UTC
Created attachment 54175 [details]
JConsole Memory
Comment 17 _ alexlamsl 2007-12-12 00:32:18 UTC
Created attachment 54176 [details]
JConsole Threads
Comment 18 _ alexlamsl 2007-12-12 00:33:16 UTC
Created attachment 54177 [details]
JConsole VM Summary
Comment 19 _ alexlamsl 2007-12-12 00:37:56 UTC
After adding "-debug" to the Arguments options, JConsole now starts up properly even if I remove the option later on.

So it seems to have something to do with a fresh installtion of the IDE. Every time I upgrade to a new nightly build, 
I always remove ".nbi" and ".netbeans" (the program directory is removed automatically).
Comment 20 Jean-francois Denise 2007-12-12 07:34:25 UTC
So I think that we run into a kind of Options related persistency problem that I can't explain.
I was thinking that all custom data was located inside de .netbeans file, but it seems that it is not the case.
Thanks for you investigations.
If you don't mind, I will close this bug.

Jean-Francois
Comment 21 _ alexlamsl 2007-12-12 08:48:48 UTC
I have just did a fresh reinstall to the latest nightly build, and even then I was not able to reproduce the issue 
anymore.

Thus I would agree with your conclusions and shall close this issue. Thanks for your kind attention.