ORA-29532: Java call terminated by uncaught Java exception: java.lang.IllegalMonitorStateException (Doc ID 1907945.1)

Last updated on JULY 07, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 to 12.1.0.1 [Release 11.2 to 12.1]
Information in this document applies to any platform.
Checked for relevance on 21-Jun-2017

Symptoms

When executing external JAVA procedure setting java_jit_enabled=true, you can encounter below error.

 ORA-29532: Java call terminated by uncaught Java exception: java.lang.IllegalMonitorStateException

ORA-12012: error on auto execute of job "SVOCRUN"."JOB_IF_17_RUN"
ORA-29532: Java call terminated by uncaught Java exception: java.lang.IllegalMonitorStateException
ORA-06512: at "SVOCRUN.RUN_IF_VOC", line 214

 exceptions are similar to below

Exception in thread "Thread-417" java.lang.IllegalMonitorStateException
  at java.io.BufferedOutputStream.write(BufferedOutputStream.java)
  at java.io.PrintStream.write(PrintStream.java)
  at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java)
  at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java)
  at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java)
  at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java)
  at java.io.PrintStream.write(PrintStream.java)
  at java.io.PrintStream.print(PrintStream.java)
  at java.io.PrintStream.println(PrintStream.java)
  at Host$2.run(Host)

 

Changes

None

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms