When a CU unfold JDK6u23 under a directory including Japanese characters in the directory path name, jvisualvm cause an exception in the target application and error dialogue appears.
CONFIGURATION:
OS : WindowsXP prof. (32bits, SP3, Japanese)
JDK : 6u23
REPRODUCE:
1. Unfold JDK6u23 under a directory including Japanese characters in the directory path name.
ex. C:\\203e\203X\203g ("tesuto" in Japanese)
2. Invoke jvisualvm under C:\\203e\203X\203g\JDK6_23\bin
3. Open some java application.
ex. java -jar Java2Demo.jar
4. Try to get profiles by clicking "CPU" or "Memory" button in profiler tab
In jvisualvm side, error dialog appears.(please see the attached error-dialog.JPG)
In the application side, the following exception occurs.
----
C:\utility\java\jdk6_21\demo\jfc\Java2D>java -jar Java2Demo.jar
Exception in thread "Attach Listener" java.lang.reflect.InvocationTargetExceptio
n
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Instrumenta
tionImpl.java:323)
at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(Instrume
ntationImpl.java:348)
Caused by: java.lang.NullPointerException
at org.netbeans.lib.profiler.server.ProfilerActivate15.getArchiveFile(Pr
ofilerActivate15.java:78)
at org.netbeans.lib.profiler.server.ProfilerActivate15.activate(Profiler
Activate15.java:99)
at org.netbeans.lib.profiler.server.ProfilerActivate15.agentmain(Profile
rActivate15.java:64)
... 6 more
Agent failed to start!
----
For more detail inf., please see the comment section.