JDeveloper 12.2.1.x Hangs When Editing/Opening Large XML Files

(Doc ID 2364371.1)

Last updated on FEBRUARY 22, 2018

Applies to:

Oracle JDeveloper - Version 12.2.1.2.0 to 12.2.1.3.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

Experiencing performance issues when attempting to open and/or edit JSPX in JDeveloper. The IDE becomes unresponsive and hangs. Sometimes below error is logged in the messages tab:

oracle.javatools.buffer.JdkReadWriteLockImplementation$DeadlockScanner scan
SEVERE: Starvation (possible deadlock) detected:
Oracle JDeveloper 12.2.1.2.0 1648 (JDEVADF_12.2.1.2.0_GENERIC_161008.1648.S)
Oracle Corporation Java 1.8.0_111-b14


JDeveloper can hang, freeze or crash even if systems has 16 GB of RAM and JDeveloper is set to use more memory.

And taking a thread dump can show the following:

"AWT-EventQueue-0" id=15 WAITING on
java.util.concurrent.locks.ReentrantReadWriteLock$NonfairSync@208ca29c
at sun.misc.Unsafe.park(Native Method)
- waiting on
java.util.concurrent.locks.ReentrantReadWriteLock$NonfairSync@208ca29c
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:836)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:870)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1199)
at java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.lock(ReentrantReadWriteLock.java:943)
at oracle.javatools.buffer.JdkReadWriteLockImplementation.lock(JdkReadWriteLockImplementation.java:202)
at oracle.javatools.buffer.JdkReadWriteLockImplementation.writeLock(JdkReadWriteLockImplementation.java:110)
at oracle.javatools.buffer.ReadWriteLock.writeLock(ReadWriteLock.java:325)
at oracle.javatools.buffer.AbstractTextBuffer.writeLock(AbstractTextBuffer.java:1077)
at oracle.javatools.buffer.TextBufferDecorator.writeLock(TextBufferDecorator.java:327)
at oracle.javatools.editor.BasicDocument.writeLock(BasicDocument.java:481)
at oracle.javatools.editor.BasicWriteAction.lock(BasicWriteAction.java:69)
at oracle.javatools.editor.BasicAction.actionPerformed(BasicAction.java:121)
at oracle.javatools.editor.BasicWriteAction.actionPerformed(BasicWriteAction.java:59)
at oracle.javatools.editor.BasicEditorKit$DefaultKeyTypedAction.actionPerformed(BasicEditorKit.java:1047)
...
...


This is specially noticeable when working with big XML files in projects with large class paths.

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