java.io.IOException: Bad file descriptor

JIRA | Tomas Z | 5 years ago
  1. 0

    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)

    JIRA | 5 years ago | Tomas Z
    java.io.IOException: Bad file descriptor
  2. 0

    Legacy issues from Codehaus JIRA

    izpack.org | 6 months ago
    java.io.IOException: Bad file descriptor
  3. 0

    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)

    JIRA | 5 years ago | Tomas Z
    java.io.IOException: Bad file descriptor
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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.

    JIRA | 3 years ago | Kryvenko Dmytro
    java.lang.AssertionError: java.io.IOException: Stream Closed
  6. 0

    IOException while indexing

    GitHub | 5 years ago | tmm1
    org.elasticsearch.index.engine.RefreshFailedEngineException: [github][4] Refresh failed

    8 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Bad file descriptor

      at java.io.RandomAccessFile.writeBytes()
    2. Java RT
      RandomAccessFile.write
      1. java.io.RandomAccessFile.writeBytes(Native Method)
      2. java.io.RandomAccessFile.write(RandomAccessFile.java:482)
      2 frames
    3. Ant
      ZipOutputStream.putNextEntry
      1. org.apache.tools.zip.ZipOutputStream.writeOut(ZipOutputStream.java:826)
      2. org.apache.tools.zip.ZipOutputStream.writeOut(ZipOutputStream.java:815)
      3. org.apache.tools.zip.ZipOutputStream.writeLocalFileHeader(ZipOutputStream.java:559)
      4. org.apache.tools.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:412)
      4 frames
    4. com.izforge.izpack
      CompilerLauncher.main
      1. com.izforge.izpack.compiler.stream.JarOutputStream.putNextEntry(JarOutputStream.java:145)
      2. com.izforge.izpack.compiler.packager.impl.Packager.writePacks(Packager.java:292)
      3. com.izforge.izpack.compiler.packager.impl.PackagerBase.writeInstaller(PackagerBase.java:373)
      4. com.izforge.izpack.compiler.packager.impl.Packager.createInstaller(Packager.java:123)
      5. com.izforge.izpack.compiler.Compiler.createInstaller(Compiler.java:131)
      6. com.izforge.izpack.compiler.CompilerConfig.executeCompiler(CompilerConfig.java:307)
      7. com.izforge.izpack.compiler.bootstrap.CompilerLauncher.main(CompilerLauncher.java:31)
      7 frames