Propagation Commit Task Fails to Add Some HTML Binary Content Nodes due to "java.io.IOException: Stream closed" (Doc ID 1077657.1)

Last updated on FEBRUARY 14, 2017

Applies to:

Oracle WebLogic Portal - Version 10.3.0 and later
Information in this document applies to any platform.

Symptoms

The propagation commit task may fail to add some HTML binary content nodes due to the error message "java.io.IOException: Stream closed".

Error message from commit log:

ERROR (Mar 17, 2010 1:36:58 PM CST): [Application:ContentServices:WLP Repository:ContentNodes:tw:transfer:transferPwdComment.html] failed to [add]



Error message from server log:

####<Mar 15, 2010 11:23:48 AM CST> <Error> <InventoryServices> <spocap01> <mgd1> <[ACTIVE] ExecuteThread: '19' for queue: 'weblogic.kernel.Default (self-tuning)'> <portaladmin> <> <> <1268623428683> <BEA-000000> <Encountered an unexpected exception while processing election [Application:ContentServices:WLP Repository:ContentNodes:tw:transfer:transferPwdComment.html]. This election will not be processed further.
javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: com.bea.content.RepositoryRuntimeException: Stream closed
at weblogic.ejb.container.internal.EJBRuntimeUtils.throwTransactionRolledbackLocal(EJBRuntimeUtils.java:238)
at weblogic.ejb.container.internal.BaseLocalObject.handleSystemException(BaseLocalObject.java:864)
at weblogic.ejb.container.internal.BaseLocalObject.handleSystemException(BaseLocalObject.java:791)
at weblogic.ejb.container.internal.BaseLocalObject.postInvoke1(BaseLocalObject.java:486)
at weblogic.ejb.container.internal.BaseLocalObject.postInvokeTxRetry(BaseLocalObject.java:424)
at com.bea.content.repo.internal.server.bean.RepoNodeOps_ehgg7y_ELOImpl.create(RepoNodeOps_ehgg7y_ELOImpl.java:1232)
at com.bea.content.repo.internal.client.common.Node.create(Node.java:123)
at com.bea.content.spi.internal.NodeOpsImpl.createNode(NodeOpsImpl.java:799)
at com.bea.content.spi.internal.ExtendedNodeOpsImpl.createNodeWithNodeTypeAndObjectClassAndWorkflow(ExtendedNodeOpsImpl.java:81)
at sun.reflect.GeneratedMethodAccessor501.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.content.manager.internal.delegate.LatestInterfaceVersionWrapper.invoke(LatestInterfaceVersionWrapper.java:72)
at $Proxy73.createNodeWithNodeTypeAndObjectClassAndWorkflow(Unknown Source)
at com.bea.content.manager.internal.delegate.LatestNodeOpsDelegate.createNodeWithNodeTypeAndObjectClassAndWorkflow(LatestNodeOpsDelegate.java:221)
at com.bea.content.manager.internal.InternalNodeOpsBean.createNode(InternalNodeOpsBean.java:362)
at com.bea.content.manager.internal.InternalNodeOpsBean.createNodeFull(InternalNodeOpsBean.java:1939)
at com.bea.content.manager.internal.NodeOpsEJB_ihurl6_ELOImpl.createNodeFull(NodeOpsEJB_ihurl6_ELOImpl.java:2942)
at com.bea.content.manager.internal.NodeOpsImpl.createNodeFull(NodeOpsImpl.java:586)
at com.bea.content.federated.internal.NodeManagerImpl.addNodeImpl(NodeManagerImpl.java:282)
at com.bea.content.federated.internal.NodeManagerImpl.addNode(NodeManagerImpl.java:160)
at com.bea.propagation.content.online.updater.ContentNodeUpdater.addChild(ContentNodeUpdater.java:460)
at com.bea.propagation.framework.tool.resolver.TreeResolver.processAdd(TreeResolver.java:651)
at com.bea.propagation.framework.tool.resolver.TreeResolver.processElectionsIterative(TreeResolver.java:504)
at com.bea.propagation.framework.tool.resolver.TreeResolver.processElections(TreeResolver.java:405)
at com.bea.propagation.framework.tool.resolver.TreeResolver.resolveTree(TreeResolver.java:314)
at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.commitOperation(InventoryManagementServlet.java:816)
at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.doOperation(InventoryManagementServlet.java:301)
at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.doPost(InventoryManagementServlet.java:200)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
.....
java.io.IOException: Stream closed
at java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:134)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at java.security.DigestInputStream.read(DigestInputStream.java:144)
at java.io.FilterInputStream.read(FilterInputStream.java:116)
at com.bea.content.internal.server.common.SizeInputStream.read(SizeInputStream.java:87)
at java.io.FilterInputStream.read(FilterInputStream.java:90)
at com.bea.content.manager.ContentHelper.toByteArray(ContentHelper.java:347)
....
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
>


You will also notice that the inventory file generated for the failed HTML content node in src.zip at "propagation\worktmp\src.zip\\content_0.zip\\inventory_0\transferPwdComment.html_1.cmn", shows the file size as 0. A sample binaryFile property generated in the inventory file is given below:

<ns:property>
<ns:name>binaryFile</ns:name>
<ns:indexed-name>binaryFile</ns:indexed-name>
<ns:property-type>5</ns:property-type>
<ns:content-value>
<ns:binary-value>
<ns:filename>transferPwdComment.html</ns:filename>
<ns:filesize>0</ns:filesize>
<ns:content-type>text/html;charset=utf-8</ns:content-type>
<ns:checksum>d41d8cd98f00b204e9800998ecf8427e</ns:checksum>
</ns:binary-value>
</ns:content-value>
</ns:property>

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