Error "java.io.IOException: The process cannot access the file because another process has locked a portion of the file" upon deploying an application having a big jazn-data.xml file (Doc ID 1551734.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle JDeveloper - Version 11.1.1.6.0 to 11.1.1.6.0 [Release Oracle11g]
Oracle JDeveloper - Version 11.1.2.0.0 to 11.1.2.3.0 [Release Oracle11g]
Information in this document applies to any platform.

Symptoms

An ADF application with a very large jazn-data.xml file is very slow to start (> 20 minutes) when deployed. This problem is reproducible with JDeveloper versions 11.1.1.6.0 and 11.1.2.x. Upon deploying following errors are seen in the logfiles:

ERROR
-----------------------
WatchingDocumentChangeNotifier> Exception during change of document %USER_HOME%\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\DefaultDomain\config\fmwconfig\mbeans\..\system-jazn-data.xml.
java.io.IOException: The process cannot access the file because another process has locked a portion of the file.
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:177)
at oracle.as.jmx.framework.util.HashingDataSource.getCurrentHashCode(HashingDataSource.java:211)
at oracle.as.jmx.framework.util.NonPMConfigObjectMBeanAssociationInfo$NonPMInternalDocumentChangeListenerSupport.documentChanged(NonPMConfigObjectMBeanAssociationInfo.java:741)
at oracle.as.jmx.framework.wls.spi.activation.DocumentChangeDistributor.documentChanged(DocumentChangeDistributor.java:99)
at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier$DocumentChangeListenerWrapper.documentChanged(WatchingDocumentChangeNotifier.java:716)
at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier.checkUsingListeners(WatchingDocumentChangeNotifier.java:398)
at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier.checkFiles(WatchingDocumentChangeNotifier.java:286)
at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier$1.run(WatchingDocumentChangeNotifier.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier.internalCheckFiles(WatchingDocumentChangeNotifier.java:292)
at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier.run(WatchingDocumentChangeNotifier.java:273)
at java.lang.Thread.run(Thread.java:662)



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