OpenJDK 7 and VirtualMachine API

Henri Gomez henri.gomez at gmail.com
Tue Apr 24 09:22:37 PDT 2012


Hi to all,

I tried to use crash (http://vietj.github.com/crash/), the Java shell
to connect to a basic Tomcat running under OpenJDK 7 on OSX via
VirtualMachine API and it failed.

Exception in thread "main"
org.crsh.cmdline.matcher.CmdInvocationException: java.io.IOException:
No such process
       at org.crsh.cmdline.matcher.MethodMatch.doInvoke(MethodMatch.java:168)
       at org.crsh.cmdline.matcher.CommandMatch.invoke(CommandMatch.java:84)
       at org.crsh.standalone.CRaSH.main(CRaSH.java:246)
Caused by: java.io.IOException: No such process
       at sun.tools.attach.BsdVirtualMachine.sendQuitTo(Native Method)
       at sun.tools.attach.BsdVirtualMachine.<init>(BsdVirtualMachine.java:76)
       at sun.tools.attach.BsdAttachProvider.attachVirtualMachine(BsdAttachProvider.java:63)
       at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:213)
       at org.crsh.standalone.CRaSH.main(CRaSH.java:93)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:601)
       at org.crsh.cmdline.matcher.MethodMatch.doInvoke(MethodMatch.java:161)
       ... 2 more

I made many tests, using Apple Java 6 (1.6.0-31) and OpenJDK 7 u4 on
crash Java side without more luck.
On remote side (Tomcat), I tried with OpenJDK 7 u4 and u6 (from
jdk7u/jdk7u-dev).

What's status of VirtualMachine API on OpenJDK 7 ?

Cheers



More information about the jdk7u-dev mailing list