Bug 1026426 - ArchiveExportException warning in the arquillian tests output
Summary: ArchiveExportException warning in the arquillian tests output
Keywords:
Status: MODIFIED
Alias: None
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: SwitchYard
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Tomohisa Igarashi
QA Contact: Matej Melko
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-04 15:48 UTC by Tomohisa Igarashi
Modified: 2021-10-15 11:52 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
If you run the functional test for one of JCA quickstarts or transaction-policy, you will encounter an ArchiveExportException. This is caused by the version of ShrinkWrap supplied with the Red Hat JBoss Enterprise Application Platform. To work around this issue, add the following code to the quick start's POM file: <programlisting> <![CDATA[ <dependency> <groupId>org.jboss.shrinkwrap</groupId> <artifactId>shrinkwrap-api</artifactId> <scope>test</scope> <version>1.2.0</version> </dependency> <dependency> <groupId>org.jboss.shrinkwrap</groupId> <artifactId>shrinkwrap-impl-base</artifactId> <scope>test</scope> <version>1.2.0</version> </dependency> <dependency> <groupId>org.jboss.shrinkwrap</groupId> <artifactId>shrinkwrap-spi</artifactId> <scope>test</scope> <version>1.2.0</version> </dependency> ]]></programlisting>
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SWITCHYARD-1806 0 Major Closed ArchiveExportException warning in the arquillian tests output 2016-05-16 21:50:17 UTC

Description Tomohisa Igarashi 2013-11-04 15:48:53 UTC
Description of problem:
If you run the functional test for one of JCA quickstarts or transaction-policy demo which is added by BZ980469, following warning appears in the console:
--------------------------------------------------------------------------
WARNING: Exception encountered during export of archive
org.jboss.shrinkwrap.api.exporter.ArchiveExportException: Failed to write asset to output: /junit/extensions/TestDecorator.class
        at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase$3.handle(StreamExporterDelegateBase.java:272)
        at org.jboss.shrinkwrap.impl.base.io.IOUtil.closeOnComplete(IOUtil.java:219)
        at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase.processNode(StreamExporterDelegateBase.java:233)
        at org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate.processNode(AbstractExporterDelegate.java:105)
        at org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate.processNode(AbstractExporterDelegate.java:109)
        at org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate.processNode(AbstractExporterDelegate.java:109)
        at org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate.doExport(AbstractExporterDelegate.java:95)
        at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase.access$001(StreamExporterDelegateBase.java:50)
        at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase$1.call(StreamExporterDelegateBase.java:121)
        at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase$1.call(StreamExporterDelegateBase.java:116)
        at org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate$1.call(JdkZipExporterDelegate.java:124)
        at org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate$1.call(JdkZipExporterDelegate.java:118)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
        at java.lang.Thread.run(Thread.java:695)
Caused by: java.io.IOException: Pipe closed
        at java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:244)
        at java.io.PipedInputStream.receive(PipedInputStream.java:210)
        at java.io.PipedOutputStream.write(PipedOutputStream.java:132)
        at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:155)
        at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:196)
        at org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate.closeEntry(JdkZipExporterDelegate.java:84)
        at org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate.closeEntry(JdkZipExporterDelegate.java:40)
        at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase$2.execute(StreamExporterDelegateBase.java:265)
        at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase$2.execute(StreamExporterDelegateBase.java:233)
        at org.jboss.shrinkwrap.impl.base.io.IOUtil.closeOnComplete(IOUtil.java:217)
        ... 15 more
Nov 4, 2013 9:21:56 AM org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate$1 call
WARNING: [SHRINKWRAP-120] Possible deadlock scenario: Got exception on closing the ZIP out stream: Pipe closed
java.io.IOException: Pipe closed
        at java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:244)
        at java.io.PipedInputStream.receive(PipedInputStream.java:185)
        at java.io.PipedOutputStream.write(PipedOutputStream.java:105)
        at java.util.zip.ZipOutputStream.writeInt(ZipOutputStream.java:445)
        at java.util.zip.ZipOutputStream.writeEXT(ZipOutputStream.java:362)
        at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:220)
        at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:301)
        at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:140)
        at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:321)
        at org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate$1.call(JdkZipExporterDelegate.java:148)
        at org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate$1.call(JdkZipExporterDelegate.java:118)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
        at java.lang.Thread.run(Thread.java:695)
--------------------------------------------------------------------------

How reproducible:


Steps to Reproduce:
1. Run one of the JCA or transaction-policy demo quickstart test with following the instruction in its Readme.md

Actual results:
Above stack dump appears in the console

Expected results:
No stack dump there

Comment 1 JBoss JIRA Server 2013-11-15 07:50:35 UTC
Tomohisa igarashi <tm.igarashi> made a comment on jira SWITCHYARD-1806

This stack trace is caused by the slight older ShrinkWrap which is derived from EAP BOM. Once I added following into quickstart pom, then the stack trace has gone.

{code:xml}
        <dependency>
            <groupId>org.jboss.shrinkwrap</groupId>
            <artifactId>shrinkwrap-api</artifactId>
            <scope>test</scope>
            <version>1.2.0</version>
        </dependency>
        <dependency>
            <groupId>org.jboss.shrinkwrap</groupId>
            <artifactId>shrinkwrap-impl-base</artifactId>
            <scope>test</scope>
            <version>1.2.0</version>
        </dependency>
        <dependency>
            <groupId>org.jboss.shrinkwrap</groupId>
            <artifactId>shrinkwrap-spi</artifactId>
            <scope>test</scope>
            <version>1.2.0</version>
        </dependency>
{code}

Comment 2 Rob Cernich 2014-10-21 18:36:25 UTC
Hey Tomo, could you please verify whether or not this is still a problem in FSW 6.1?  If not, please mark as modifed.  Thanks in advance.

Comment 3 Tomohisa Igarashi 2014-10-21 23:37:31 UTC
Tested it on current upstream master and I didn't see this exception.

Comment 4 JBoss JIRA Server 2014-10-21 23:39:00 UTC
Tomohisa igarashi <tm.igarashi> updated the status of jira SWITCHYARD-1806 to Closed


Note You need to log in before you can comment on or make changes to this bug.