Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6962615

Testcase failure com/sun/tools/attach/BasicTests.sh

XMLWordPrintable

    • generic, x86
    • generic, windows_vista

      Fails on Windows 2000.

      --------------------------------------------------
      TEST: com/sun/tools/attach/BasicTests.sh
      JDK under test: (C:\temp\jprt\T1\T\203900~1.OHA\TESTPR~1\WINDOW~1.0-P)
      java version "1.7.0-201006192039.ohair.jdk"
      Java(TM) SE Runtime Environment (build 1.7.0-201006192039.ohair.jdk-administrator_2010_06_19_14_04-b00)
      Java HotSpot(TM) Client VM (build 19.0-b02, mixed mode, sharing)


      ACTION: build -- Passed. Build successful
      REASON: User specified action: run build BasicTests
      TIME: 0.078 seconds
      messages:
      command: build BasicTests
      reason: User specified action: run build BasicTests
      elapsed time (seconds): 0.078

      ACTION: compile -- Passed. Compilation successful
      REASON: .class file out of date or does not exist
      TIME: 0.078 seconds
      messages:
      command: compile C:\temp\jprt\T1\T\203900.ohair\source\test\com\sun\tools\attach\BasicTests.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.078

      ACTION: shell -- Failed. Execution failed: exit code 1
      REASON: User specified action: run shell BasicTests.sh
      TIME: 24.469 seconds
      messages:
      command: shell BasicTests.sh []
      reason: User specified action: run shell BasicTests.sh
      elapsed time (seconds): 24.469
      STDOUT:
      Waiting for Application to initialize...
      2133
      Application is process 1404, shutdown port is 2133
      Running tests ...
       - Attaching to application ...
       - Test: system properties in target VM
       - attach.test property set as expected
       - Test: agent properties in target VM
       - agent properties non-empty as expected
       - Test: Load an agent that does not exist
       - AgentLoadException thrown as expected!
       - Test: Load a bad agent
       - AgentInitializationException throws as expected!
       - Test: Detach from VM
       - IOException as expected
       - Re-attaching to application ...
       - Test: End-to-end connection with agent
       - Loading Agent.jar into target VM ...
       - Waiting for agent to connect back to tool ...
       - Connected to agent.
       - Re-attaching to application ...
       - Test: End-to-end connection with RedefineAgent
       - Loading RedefineAgent.jar into target VM ...
      Exception in thread "main" com.sun.tools.attach.AgentInitializationException: Agent JAR loaded but agent failed to initialize
      at sun.tools.attach.HotSpotVirtualMachine.loadAgent(HotSpotVirtualMachine.java:121)
      at BasicTests.main(BasicTests.java:126)
      Connecting to port 2133 to shutdown Application ...
      1 test(s) failed:
      2133
      Agent running...
      Agent connecting back to Tool....
      Agent connected to Tool.
      RedefineAgent running...
      RedefineAgent redefine supported: true
      RedefineAgent connecting back to Tool....
      RedefineAgent connected to Tool.
      STDERR:
      java.lang.reflect.InvocationTargetException
      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:613)
      at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:384)
      at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:407)
      Caused by: java.lang.RuntimeException: Something bad happened - Bye!
      at BadAgent.agentmain(BadAgent.java:33)
      ... 6 more
      java.lang.reflect.InvocationTargetException
      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:613)
      at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)
      at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:407)
      Caused by: java.lang.Exception: RedefineAgent Error(6439234): no transform call for class java.math.BigInteger
      at RedefineAgent.testRedefine(RedefineAgent.java:89)
      at RedefineAgent.agentmain(RedefineAgent.java:110)
      ... 6 more
      Error opening zip file or JAR manifest missing: SilverBullet.jar
      Agent failed to start!
      Agent failed to start!
      Exception in thread "Attach Listener" Exception in thread "Attach Listener"

      TEST RESULT: Failed. Execution failed: exit code 1
      --------------------------------------------------
      This test also failed in the 2011.04.08 RT_Baseline nightly
      on the following config: linux-i586_javase_client_comp_JT_JDK_com_sun_tools

      Here is a snippet from the .jtr file:

       - Test: End-to-end connection with RedefineAgent
       - Loading RedefineAgent.jar into target VM ...
      Exception in thread "main" com.sun.tools.attach.AgentInitializationException: Agent JAR loaded but agent failed to initialize
      at sun.tools.attach.HotSpotVirtualMachine.loadAgent(HotSpotVirtualMachine.java:121)
      at BasicTests.main(BasicTests.java:126)
      Connecting to port 54336 to shutdown Application ...
      1 test(s) failed:
      54336
      Agent running...
      Agent connecting back to Tool....
      Agent connected to Tool.
      RedefineAgent running...
      RedefineAgent redefine supported: true
      RedefineAgent connecting back to Tool....
      RedefineAgent connected to Tool.
      ----------System.err:(24/1578)----------
      <snip>
      Exception in thread "Attach Listener" java.lang.reflect.InvocationTargetException
      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:613)
      at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)
      at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:407)
      Caused by: java.lang.Exception: RedefineAgent Error(6439234): no transform call for class java.math.BigInteger
      at RedefineAgent.testRedefine(RedefineAgent.java:89)
      at RedefineAgent.agentmain(RedefineAgent.java:110)
      ... 6 more
      Agent failed to start!
      result: Failed. Execution failed: exit code 1

            dcubed Daniel Daugherty
            ohair Kelly Ohair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: