java.io.IOException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

When you iterate over the lines of a scala.io.Source with source.getLines, make sure you do not close the source until you processed the iterator.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Setup this project in Netbeans step by step ?
    via openbravopos by nobody
    ,
  • Copy files to rootDir in Gradle
    via Stack Overflow by stuff22
    ,
  • Lock on Hot Backup
    via GitHub by thiagopm
    ,
  • Generating a backup in Fisheye is failing with: {noformat} 2013-08-15 18:58:00,425 WARN [ThreadPool3 ] fisheye BackupManagerImpl$2-run - Backup failed. java.io.IOException: The process cannot access the file because another process has locked a portion of the file at java.io.FileInputStream.readBytes(Native Method) at java.io.FileInputStream.read(FileInputStream.java:242) at com.cenqua.fisheye.io.IOHelper.copyStream(IOHelper.java:98) at com.cenqua.fisheye.io.IOHelper.copyStream(IOHelper.java:87) at com.atlassian.crucible.migration.item.FileSaver.add(FileSaver.java:64) at com.atlassian.crucible.migration.item.FileSaver.add(FileSaver.java:55) at com.atlassian.crucible.migration.item.FileSaver.add(FileSaver.java:55) at com.atlassian.crucible.migration.item.FileSaver.addPath(FileSaver.java:25) at com.atlassian.crucible.migration.item.FishEyeCacheBackup$SaverImpl.backup(FishEyeCacheBackup.java:104) at com.atlassian.crucible.migration.BackupManagerImpl.createBackup(BackupManagerImpl.java:260) at com.atlassian.crucible.migration.BackupManagerImpl.access$000(BackupManagerImpl.java:54) at com.atlassian.crucible.migration.BackupManagerImpl$2$1.perform(BackupManagerImpl.java:152) at com.atlassian.crucible.maintenance.MaintenanceManager.doMaintenance(MaintenanceManager.java:108) at com.atlassian.crucible.migration.BackupManagerImpl$2.run(BackupManagerImpl.java:150) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) 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:724) {noformat} A restart does not help. There are no repositories that are running initial indexing at the moment.
    via by Gurleen Anand [Atlassian],
    • java.io.IOException: The process cannot access the file because another process has locked a portion of the file at java.io.FileInputStream.readBytes(Native Method) at java.io.FileInputStream.read(FileInputStream.java:194) at oracle.jdevimpl.deploy.JarUtil.initStoredZipEntry(JarUtil.java:999) at oracle.jdevimpl.deploy.JarUtil.writeJarFile(JarUtil.java:720) at oracle.jdevimpl.deploy.war.WarDeployer.writeWarFile(WarDeployer.java:210) at oracle.jdevimpl.deploy.war.WarDeployer.deploy(WarDeployer.java:67) at oracle.jdevimpl.deploy.ModulePackager.deploy(ModulePackager.java:139) at oracle.jdevimpl.deploy.DynamicDeployer.deploy(DynamicDeployer.java:84) at oracle.jdevimpl.deploy.DynamicDeployer.deploy(DynamicDeployer.java:84) at oracle.jdevimpl.deploy.BatchDeployer.deploy(BatchDeployer.java:46) at oracle.jdevimpl.deploy.DynamicDeployer.deploy(DynamicDeployer.java:84) at oracle.jdevimpl.deploy.BatchDeployer.deploy(BatchDeployer.java:46) at oracle.jdevimpl.deploy.DynamicDeployer.deploy(DynamicDeployer.java:84) at oracle.jdevimpl.deploy.J2eeProfileDt$CleanupTransientProfilesDeployer.deploy(J2eeProfileDt.java:71) at oracle.jdevimpl.deploy.FinalDeployer.deploy(FinalDeployer.java:48) at oracle.jdevimpl.deploy.AsyncDeployer$1.runImpl(AsyncDeployer.java:67) at oracle.jdevimpl.deploy.AsyncDeployer$1.run(AsyncDeployer.java:53)

    Users with the same issue

    richard77
    5 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    18 more bugmates