[
https://issues.apache.org/jira/browse/FELIX-3515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bram de Kruijff updated FELIX-3515:
-----------------------------------
Attachment:
FELIX-3515_ExplodingOutputtingInputStream_DontReadFromClosedStream.java
Attached patch. I think simply removing the offending code solves the issue
without risk.
> DeploymentAdmin triggers IOException on install
> -----------------------------------------------
>
> Key: FELIX-3515
> URL: https://issues.apache.org/jira/browse/FELIX-3515
> Project: Felix
> Issue Type: Bug
> Components: Deployment Admin
> Environment: r1339925
> Reporter: Bram de Kruijff
> Priority: Critical
> Attachments:
> FELIX-3515_ExplodingOutputtingInputStream_DontReadFromClosedStream.java
>
>
> The commit in r1339925 introduced an IOException that will happen always, but
> may or may not have an effect (concurrency).
> Issue it the ExplodingOutputtingInputStream#run() will always try to read an
> InputStream it has already closed itself. As the IOException is now also
> pushed to the calling thread this cause the deployment to fail.
> {code}
> java.io.IOException: Exception while processing the stream in the background:
> Pipe closed
> at
> org.apache.felix.deploymentadmin.ExplodingOutputtingInputStream.close(ExplodingOutputtingInputStream.java:73)
> at
> org.apache.felix.deploymentadmin.DeploymentAdminImpl.installDeploymentPackage(DeploymentAdminImpl.java:217)
> at
> org.amdatu.itest.base.impl.TestContextImpl.installDeploymentPackage(TestContextImpl.java:94)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira