felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Offermans (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-3515) DeploymentAdmin triggers IOException on install
Date Mon, 21 May 2012 08:19:41 GMT

    [ https://issues.apache.org/jira/browse/FELIX-3515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280019#comment-13280019

Marcel Offermans commented on FELIX-3515:

Applying the patch would re-introduce FELIX-3336, but I completely agree that the current
code does not work correctly as the stream we're reading from is closed too early. I'll work
on a different fix.
> 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
> Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
> Maven home: C:\Program Files\Apache Maven\apache-maven-3.0.4
> Java version: 1.7.0_02, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.7.0_02\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>            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


View raw message