ERROR: JVMPI, an experimental interface, is no longer supported.
Please use the supported interface: the JVM Tool Interface (JVM TI).
java.sql.SQLException
at packagedatabase2.GradationTest.stubsGetConnection2(GradationTest.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at jtest.internal.stubs.JUnitStubs.callStubMethod(JUnitStubs.java:499)
at jtest.internal.stubs.JUnitStubs.callStubLocal(JUnitStubs.java:360)
at jtest.internal.stubs.JUnitStubs.callStub(JUnitStubs.java:273)
at packagedatabase2.Gradation.getConnection(Gradation.java:10)
at packagedatabase2.GradationTest.testGetConnection2(GradationTest.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at com.parasoft.xtest.runner.api.java.RemoteTestRunner$1.runProtected(RemoteTestRunner.java:347)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at jtest.IndependentTestSuite$TestRunnerThread.run(IndependentTestSuite.java:256)
编号:string6姓名:string7性别:string8生日:string9
java.sql.SQLException
at packagedatabase2.GradationTest.testMain2(GradationTest.java:191)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at com.parasoft.xtest.runner.api.java.RemoteTestRunner$1.runProtected(RemoteTestRunner.java:347)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at jtest.IndependentTestSuite$TestRunnerThread.run(IndependentTestSuite.java:256)

解决方案 »

  1.   

    请问高手,ERROR: JVMPI, an experimental interface, is no longer supported.
    Please use the supported interface: the JVM Tool Interface (JVM TI).
    java.sql.SQLException
    该问题如何解决?
      

  2.   

    JVMPI error running Java application in PurifyPlus
     Technote (troubleshooting)
     
    Problem(Abstract)
    This technote explains how to resolve a JVMPI error that could occur in IBM® Rational® Purify®, Quantify®, or PureCoverage®.
     
    Symptom
    The following error is displayed when running any Java™ application:      FATAL ERROR: JVMPI, an experimental interface, is no longer supported.
          Please use the supported interface: the JVM Tool Interface (JVM TI).
          For information on temporary workarounds contact: [email protected]
          Error occurred during initialization of VM
          -Xrun library failed to init: PureJVMPI
          Purify'd application exited with code 1 (0x1).  
    Cause
    All three of the IBM Rational PurifyPlus tools use the JVMPI to monitor Java code. As of Java 1.6 this interface is no longer available.
     
    Resolving the problem
    PurifyPlus does not currently support the 1.6 JVM. Please switch to a supported JVM. The latest list of supported JVM's can be found in the PurifyPlus release notes.
    NOTE: Release Notes are found in the Doc folder of the PurifyPlus installation directory.
      

  3.   

    结贴,自己给自己加分, 更改JRE即可由1.6.0-》1.4.2