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

JDWP: FATAL ERROR in native method: JNI call made with pending exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 5.0
    • core-svc
    • b23
    • generic
    • generic


      The following tests fail with "FATAL ERROR in native method: JNI call made with pending exception" when run with -Xcheck:jni

      nsk/jdi/ClassType/newInstance/newinstance004
      nsk/jdi/ClassType/invokeMethod/invokemethod004
      nsk/jdi/ObjectReference/invokeMethod/invokemethod005


      The issue appears to be a long standing issue in the JDWP agent -- in the invoker it saves the exception from the invoked method in a global ref before clearing the exception. Most JNI calls cannot be made when there is a pending exception so the right solution is to clear the exception before saving it.

      ###@###.### 2005-1-27 11:01:46 GMT

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: