java.io.IOException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hi, When I start Apache Karaf with my project, the following error is displayed in the log of the console : karaf@root:/> Exception in thread "Thread-13" java.lang.RuntimeException: Bundle cannot be generated at org.ops4j.pax.url.bnd.BndUtils$1.run(BndUtils.java:138) Caused by: 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.writeShort(ZipOutputStream.java:436) at java.util.zip.ZipOutputStream.writeLOC(ZipOutputStream.java:334) at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:179) at java.util.jar.JarOutputStream.putNextEntry(JarOutputStream.java:92) at aQute.lib.osgi.Jar.writeResource(Jar.java:260) at aQute.lib.osgi.Jar.write(Jar.java:190) at org.ops4j.pax.url.bnd.BndUtils$1.run(BndUtils.java:134) Exception in thread "Thread-14" java.lang.RuntimeException: Bundle cannot be generated at org.ops4j.pax.url.bnd.BndUtils$1.run(BndUtils.java:138) 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:161) at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:196) at aQute.lib.osgi.Jar.writeResource(Jar.java:267) at aQute.lib.osgi.Jar.write(Jar.java:190) at org.ops4j.pax.url.bnd.BndUtils$1.run(BndUtils.java:134)
    via by Charles Moulliard,
  • The issue described here only occurs when Spoon starts after the first time. So, when we start Spoon on the second time, we will see the following error in the logs: {code} 09:55:27,824 ERROR [WebjarsURLConnection] Error Transforming zip java.io.IOException: Pipe closed at java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:261) at java.io.PipedInputStream.receive(PipedInputStream.java:227) at java.io.PipedOutputStream.write(PipedOutputStream.java:149) at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:253) at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:238) at org.pentaho.osgi.platform.webjars.WebjarsURLConnection.transform(WebjarsURLConnection.java:190) at org.pentaho.osgi.platform.webjars.WebjarsURLConnection.access$000(WebjarsURLConnection.java:54) at org.pentaho.osgi.platform.webjars.WebjarsURLConnection$2.call(WebjarsURLConnection.java:90) at org.pentaho.osgi.platform.webjars.WebjarsURLConnection$2.call(WebjarsURLConnection.java:87) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) 09:55:27,831 ERROR [WebjarsURLConnection] Error Transforming zip java.io.IOException: Pipe closed at java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:261) at java.io.PipedInputStream.receive(PipedInputStream.java:227) at java.io.PipedOutputStream.write(PipedOutputStream.java:149) at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:253) at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:238) at org.pentaho.osgi.platform.webjars.WebjarsURLConnection.transform(WebjarsURLConnection.java:190) at org.pentaho.osgi.platform.webjars.WebjarsURLConnection.access$000(WebjarsURLConnection.java:54) at org.pentaho.osgi.platform.webjars.WebjarsURLConnection$2.call(WebjarsURLConnection.java:90) at org.pentaho.osgi.platform.webjars.WebjarsURLConnection$2.call(WebjarsURLConnection.java:87) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Set 17, 2015 9:55:28 AM org.apache.cxf.endpoint.ServerImpl initDestination {code} *Steps to Reproduce* # Download and unzip the last successful build of pdi-ee-6.1.0.0 # Start data-integration/spoon.bat or data-integration/spoon.sh from Command Line / Console # After PDI finished starting, close it. # Again, start data-integration/spoon.bat or data-integration/spoon.sh from Command Line / Console # Check the logs for the error. *Expected Result* We shouldn't see the exception on the start-up of Spoon. *Note* The spoon starts normally and ready to use - +not a blocker+.
    via by Emanuel Teixeira,
    • java.io.IOException: Pipe closed at java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:261)[:1.7.0_51] at java.io.PipedInputStream.receive(PipedInputStream.java:202)[:1.7.0_51] at java.io.PipedOutputStream.write(PipedOutputStream.java:122)[:1.7.0_51] at java.util.zip.ZipOutputStream.writeInt(ZipOutputStream.java:590)[:1.7.0_51] at java.util.zip.ZipOutputStream.writeEXT(ZipOutputStream.java:427)[:1.7.0_51] at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:262)[:1.7.0_51] at aQute.lib.osgi.Jar.writeResource(Jar.java:305)[2:org.ops4j.pax.url.wrap:1.3.6] at aQute.lib.osgi.Jar.write(Jar.java:211)[2:org.ops4j.pax.url.wrap:1.3.6] at org.ops4j.pax.swissbox.bnd.BndUtils$1.run(BndUtils.java:174)[2:org.ops4j.pax.url.wrap:1.3.6]

    Users with the same issue

    Unknown visitor1 times, last one,
    musketyr
    6 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    4 more bugmates