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.

  • I have an install.xml that works fine with IzPack 4.3.5 and generates an web installer. With IzPack 5.0.0-beta10, only standard installer can be generated and process of generating web installer fails as follows: .:: IzPack - Version 5.0.0-beta10 ::. < compiler specifications version: 1.0 > - Copyright (c) 2001-2010 Julien Ponge and others. All Rights Reserved. - Visit http://izpack.org/ for the latest releases - Released under the terms of the Apache Software License version 2.0. -> Processing : install.xml -> Output : install.jar -> Base path : . -> Kind : web -> Compression : default -> Compr. level: -1 -> IzPack home : /home/tomas/Projects/IzPack_v5 < my install xml content printed here> Setting the installer information Setting the GUI preferences Adding langpack: eng Adding resource: flag.eng Adding resource: LicencePanel.licence Adding panel: UNKNOWN (HelloPanel) :: Classname : HelloPanel Adding panel: UNKNOWN (LicencePanel) :: Classname : LicencePanel Adding panel: UNKNOWN (TargetPanel) :: Classname : TargetPanel Adding panel: UNKNOWN (InstallPanel) :: Classname : InstallPanel [ Begin ] Copying the skeleton installer Copying 3 files into installer Merging 0 jars into installer Writing 5 Packs into installer Writing Pack 0: Pack_Linux_x86 Writing Pack 1: Pack_Linux_x86_64 -> Fatal error : Bad file descriptor java.io.IOException: Bad file descriptor at java.io.RandomAccessFile.writeBytes(Native Method) at java.io.RandomAccessFile.write(RandomAccessFile.java:482) at org.apache.tools.zip.ZipOutputStream.writeOut(ZipOutputStream.java:826) at org.apache.tools.zip.ZipOutputStream.writeOut(ZipOutputStream.java:815) at org.apache.tools.zip.ZipOutputStream.writeLocalFileHeader(ZipOutputStream.java:559) at org.apache.tools.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:412) at com.izforge.izpack.compiler.stream.JarOutputStream.putNextEntry(JarOutputStream.java:145) at com.izforge.izpack.compiler.packager.impl.Packager.writePacks(Packager.java:292) at com.izforge.izpack.compiler.packager.impl.PackagerBase.writeInstaller(PackagerBase.java:373) at com.izforge.izpack.compiler.packager.impl.Packager.createInstaller(Packager.java:123) at com.izforge.izpack.compiler.Compiler.createInstaller(Compiler.java:131) at com.izforge.izpack.compiler.CompilerConfig.executeCompiler(CompilerConfig.java:307) at com.izforge.izpack.compiler.bootstrap.CompilerLauncher.main(CompilerLauncher.java:31) (tip : use -? to get the commmand line parameters)
    via by Tomas Z,
  • Legacy issues from Codehaus JIRA
    via by Unknown author,
  • I have an install.xml that works fine with IzPack 4.3.5 and generates an web installer. With IzPack 5.0.0-beta10, only standard installer can be generated and process of generating web installer fails as follows: .:: IzPack - Version 5.0.0-beta10 ::. < compiler specifications version: 1.0 > - Copyright (c) 2001-2010 Julien Ponge and others. All Rights Reserved. - Visit http://izpack.org/ for the latest releases - Released under the terms of the Apache Software License version 2.0. -> Processing : install.xml -> Output : install.jar -> Base path : . -> Kind : web -> Compression : default -> Compr. level: -1 -> IzPack home : /home/tomas/Projects/IzPack_v5 < my install xml content printed here> Setting the installer information Setting the GUI preferences Adding langpack: eng Adding resource: flag.eng Adding resource: LicencePanel.licence Adding panel: UNKNOWN (HelloPanel) :: Classname : HelloPanel Adding panel: UNKNOWN (LicencePanel) :: Classname : LicencePanel Adding panel: UNKNOWN (TargetPanel) :: Classname : TargetPanel Adding panel: UNKNOWN (InstallPanel) :: Classname : InstallPanel [ Begin ] Copying the skeleton installer Copying 3 files into installer Merging 0 jars into installer Writing 5 Packs into installer Writing Pack 0: Pack_Linux_x86 Writing Pack 1: Pack_Linux_x86_64 -> Fatal error : Bad file descriptor java.io.IOException: Bad file descriptor at java.io.RandomAccessFile.writeBytes(Native Method) at java.io.RandomAccessFile.write(RandomAccessFile.java:482) at org.apache.tools.zip.ZipOutputStream.writeOut(ZipOutputStream.java:826) at org.apache.tools.zip.ZipOutputStream.writeOut(ZipOutputStream.java:815) at org.apache.tools.zip.ZipOutputStream.writeLocalFileHeader(ZipOutputStream.java:559) at org.apache.tools.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:412) at com.izforge.izpack.compiler.stream.JarOutputStream.putNextEntry(JarOutputStream.java:145) at com.izforge.izpack.compiler.packager.impl.Packager.writePacks(Packager.java:292) at com.izforge.izpack.compiler.packager.impl.PackagerBase.writeInstaller(PackagerBase.java:373) at com.izforge.izpack.compiler.packager.impl.Packager.createInstaller(Packager.java:123) at com.izforge.izpack.compiler.Compiler.createInstaller(Compiler.java:131) at com.izforge.izpack.compiler.CompilerConfig.executeCompiler(CompilerConfig.java:307) at com.izforge.izpack.compiler.bootstrap.CompilerLauncher.main(CompilerLauncher.java:31) (tip : use -? to get the commmand line parameters)
    via by Tomas Z [X],
  • I've tried to create a web installation, and the maven build is failed. {code} Exception in thread "main" java.lang.AssertionError: java.io.IOException: Stream Closed at org.izpack.mojo.IzPackNewMojo.execute(IzPackNewMojo.java:184) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: java.io.IOException: Stream Closed at java.io.RandomAccessFile.writeBytes(Native Method) at java.io.RandomAccessFile.write(RandomAccessFile.java:499) at org.apache.tools.zip.ZipOutputStream.writeOut(ZipOutputStream.java:1027) at org.apache.tools.zip.ZipOutputStream.writeOut(ZipOutputStream.java:1012) at org.apache.tools.zip.ZipOutputStream.writeLocalFileHeader(ZipOutputStream.java:734) at org.apache.tools.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:520) at com.izforge.izpack.compiler.stream.JarOutputStream.putNextEntry(JarOutputStream.java:145) at com.izforge.izpack.compiler.packager.impl.Packager.writePacks(Packager.java:144) at com.izforge.izpack.compiler.packager.impl.PackagerBase.writeInstaller(PackagerBase.java:452) at com.izforge.izpack.compiler.packager.impl.PackagerBase.createInstaller(PackagerBase.java:404) at com.izforge.izpack.compiler.Compiler.createInstaller(Compiler.java:143) at com.izforge.izpack.compiler.CompilerConfig.executeCompiler(CompilerConfig.java:332) at org.izpack.mojo.IzPackNewMojo.execute(IzPackNewMojo.java:180) ... 21 more {code} I've made a hack fix: https://github.com/llibicpep/izpack/commit/bb3d70be2b58c2c9eb99aec540732373363965ef This hack should be completely rewritten (so I wont create a pull request). As I am a newbie in IzPack 5 - I can't do it myself. If somebody can give me some explanation how it's can be fixed in the right way - I will try to fix it.
    via by Kryvenko Dmytro,
  • IOException while indexing
    via GitHub by tmm1
    ,
  • Java Bad File Descriptor Close Bug
    via by Unknown author,
  • Corrupt Database: bad file descriptor
    via by Thom Pischke,
  • read
    via hsqldb by ksumit
    ,
    • java.io.IOException: Bad file descriptor at java.io.RandomAccessFile.writeBytes(Native Method) at java.io.RandomAccessFile.write(RandomAccessFile.java:482) at org.apache.tools.zip.ZipOutputStream.writeOut(ZipOutputStream.java:826) at org.apache.tools.zip.ZipOutputStream.writeOut(ZipOutputStream.java:815) at org.apache.tools.zip.ZipOutputStream.writeLocalFileHeader(ZipOutputStream.java:559) at org.apache.tools.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:412) at com.izforge.izpack.compiler.stream.JarOutputStream.putNextEntry(JarOutputStream.java:145) at com.izforge.izpack.compiler.packager.impl.Packager.writePacks(Packager.java:292) at com.izforge.izpack.compiler.packager.impl.PackagerBase.writeInstaller(PackagerBase.java:373) at com.izforge.izpack.compiler.packager.impl.Packager.createInstaller(Packager.java:123) at com.izforge.izpack.compiler.Compiler.createInstaller(Compiler.java:131) at com.izforge.izpack.compiler.CompilerConfig.executeCompiler(CompilerConfig.java:307) at com.izforge.izpack.compiler.bootstrap.CompilerLauncher.main(CompilerLauncher.java:31)

    Users with the same issue

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