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

JCK: FATAL ERROR in native method: Bad global or local ref passed to JNI

XMLWordPrintable

    • x86
    • windows_xp

      FULL PORDUCT VERSION :
      java version "1.4.2_07"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-b04)
      Java HotSpot(TM) Client VM (build 1.4.2_07-b04, mixed mode)

      FULL OS
      1. WindowsXPPro Version 5.1(Build 2600.xpsp_sp2_rtm.040803-2158: Service Pack 2)
        and
      2. WindowsXPPRO Version 5.1(Build 2600.xpsp2.030422-1633: Service Pack 1)

      DESCRIPTION
      This error occurs when executing JCK-Runtime tests using the flag Xcheck:jni
      There is one failure javasoft.sqe.tests.api.java.awt.interactive.DnDComponentTest

      could be related to CR6193413 and bug fix 4664556

      ==========================
      Error message
      ==========================
      First you get about 100 lines of this error message

      "Warning: Calling other JNI functions in the scope of
      Get/ReleasePrimitiveArrayCritical or Get/ReleaseStringCritical"

      Followed by this final message

      "FATAL ERROR in native method:
      Bad global or local ref passed to JNI
      at sun.awt.windows.WToolkit.eventLoop(Native Method)
      at sun.awt.windows.WToolkit.run(WToolkit.java:262)
      at java.lang.Thread.run(Thread.java:534)"

      ==================================================================
      To Reproduce Windows only
      ==================================================================
      1. Map z: to \\latte.ireland\JCK
      2. set CLASSPATH=Z:\jck\JCK-runtime-14a\classes
      3. set PATH=z:/jck/JCK-runtime-14a/lib/windows
      4. set SystemRoot=c:\Windows or c:winnt etc..
      5. Install the jdk locally on your machine.
         or map j: to /net/latte.ireland/deployment4/jdk/1.4.2_07b04/windows-i586
      6. put java in your PATH
      7 java -Xcheck:jni -Djava.awt.headless=false -Xfuture -Djava.security.policy=Z:\jck\JCK-runtime-14a\lib\jck.policy javasoft.sqe.tests.api.java.awt.interactive.DnDComponentTest -platform.robotAvailable true -TestCaseID ALL
       




      ###@###.### 2004-12-07 13:13:47 GMT

            chrisphi Chris Phillips
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: