United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6581408 Most of serviceability tools fail in 6u3b01 due to version check
JDK-6581408 : Most of serviceability tools fail in 6u3b01 due to version check

Details
Type:
Bug
Submit Date:
2007-07-17
Status:
Resolved
Updated Date:
2012-02-02
Project Name:
JDK
Resolved Date:
2007-09-12
Component:
core-svc
OS:
linux_sun,generic
Sub-Component:
tools
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u3,7
Fixed Versions:
6u4 (b03)

Related Reports
Backport:
Duplicate:
Duplicate:
Relates:

Sub Tasks

Description
Most serviceability tools from 6u3 b01 (except jstack) cannot be used on 6u3 b01 process:

$ /set/vmsqe/jdk-builds/6/latest/solaris-amd64/bin/jmap 29386
Attaching to process ID 29386, please wait...
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at sun.tools.jmap.JMap.runTool(JMap.java:178)
        at sun.tools.jmap.JMap.main(JMap.java:110)
Caused by: sun.jvm.hotspot.runtime.VMVersionMismatchException: Supported versions are 1.7.0. Target VM is 1.6.0_03-ea-b01
        at sun.jvm.hotspot.runtime.VM.checkVMVersion(VM.java:222)
        at sun.jvm.hotspot.runtime.VM.<init>(VM.java:275)
        at sun.jvm.hotspot.runtime.VM.initialize(VM.java:328)
        at sun.jvm.hotspot.bugspot.BugSpotAgent.setupVM(BugSpotAgent.java:594)
        at sun.jvm.hotspot.bugspot.BugSpotAgent.go(BugSpotAgent.java:494)
        at sun.jvm.hotspot.bugspot.BugSpotAgent.attach(BugSpotAgent.java:332)
        at sun.jvm.hotspot.tools.Tool.start(Tool.java:163)
        at sun.jvm.hotspot.tools.HeapSummary.main(HeapSummary.java:39)
        ... 6 more
This also affects "jstack -F" (in this case SA is used)

                                    

Comments
EVALUATION

In 7.0 hotspot_version file was created to manage the release version number
(ex 1.7.0). This version file is used to create a version string for hotspot
vm (for non controlled build) and SA. When 7.0 hotspot vm moved to 6u3 this file
was not modified. And SA version check depends on this file. Since this 
file was not changed when it is moved to 6u3 SA version check broke.

So SA should be fixed to use the controlled build version string
instead of version from this file. 

-Swamy
                                     
2007-07-24



Hardware and Software, Engineered to Work Together