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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 6
    • Affects Version/s: 5.0
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: