Concurrent File Writes (File Adapter) Fail Due to java.io.EOFException when Reading Control File in a Cluster and BPEL Wait Activities do not Expire (Doc ID 1294713.1)

Last updated on NOVEMBER 03, 2016

Applies to:

Oracle(R) BPEL Process Manager - Version 10.1.3.5.0 and later
Oracle ESB - Version 10.1.3.5 and later
Information in this document applies to any platform.

Symptoms

You have configured a 10g SOA cluster and use a write (outbound) File Adapter.  As part of the cluster configuration a control file is used that is shared between all of the cluster nodes to keep track of the file writes being done by the multiple nodes.

However, usually under a heavy load you see a failure to read the control file when multiple nodes in the cluster are writing to the same file pattern at the same time.

As a side-affect it may also be seen that when running BPEL processes that contain Wait Activities, these do not expire at their defined times leaving the BPEL instance hung waiting for an expiration that never happens.

The following error is seen in the BPEL $ORACLE_HOME/bpel/domains/<domain name>/logs/domain.xml or $ORACLE_HOME/opmn/logs/<BPEL/ESB Runtime container>.log file in at least one of the nodes:


<2010-12-08 05:00:19,125> <DEBUG> <default.collaxa.cube.ws> <File
Adapter::Outbound> MemoryMutex::acquire called
for[/refresh/home/fAdapter/control/fileftp/controlFiles/d_ZTSawpsr_m_F+h_I0dUA==/outbound/controlFile_ob.properties]
<2010-12-08 05:00:19,125> <DEBUG> <default.collaxa.cube.ws> <File
Adapter::Outbound> Memory Mutex controlFile exists for
[/refresh/home/fAdapter/control/fileftp/controlFiles/d_ZTSawpsr_m_F+h_I0dUA==/outbound/controlFile_ob.properties] = true
<2010-12-08 05:00:19,125> <DEBUG> <default.collaxa.cube.ws> <File
Adapter::Outbound> MemoryMutex::saveProperties failed
<2010-12-08 05:00:19,138> <DEBUG> <default.collaxa.cube.ws> <File
Adapter::Outbound>
java.io.EOFException
at java.io.DataInputStream.readFully(DataInputStream.java:178)
at java.io.DataInputStream.readLong(DataInputStream.java:380)
at oracle.tip.adapter.file.MemoryMutex.saveProperties(MemoryMutex.java:232)
at oracle.tip.adapter.file.MemoryMutex.acquire(MemoryMutex.java:126)
at oracle.tip.adapter.file.FileUtil.replaceFileConvention(FileUtil.java:1174)
at oracle.tip.adapter.file.FileUtil.getOutputFileName(FileUtil.java:1146)
at oracle.tip.adapter.file.outbound.FileSender.sendNonBatched(FileSender.java:643)
at oracle.tip.adapter.file.outbound.FileInteraction.executeFileWrite(FileInteraction.java:489)
at oracle.tip.adapter.file.outbound.FileInteraction.execute(FileInteraction.java:339)
at oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation(WSIFOperation_JCA.java:486)
at oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeInputOnlyOperation(WSIFOperation_JCA.java:739)
at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:474)
...

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