java.io.IOException: The process cannot access the file because another process has locked a portion of the file

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Super User by leeand00

This occurs when the file is being locked by another application. Check if another process is accessing the same file. On Windows follow this post to figure it out : https://goo.gl/yPp1To

If it's being used, terminate that process to gain access.

Solutions on the web

via Oracle Community by dirkt, 1 year ago
The process cannot access the file because another process has locked a portion of the file
via Oracle Community by PiusV, 6 months ago
The process cannot access the file because another process has locked a portion of the file
via GitHub by volga629
, 2 years ago
via Netbeans Bugzilla by chriscarrilho, 1 year ago
The process cannot access the file because another process has locked a portion of the file
via Atlassian JIRA by Michael Heemskerk, 1 year ago
The process cannot access the file because another process has locked a portion of the file
via Netbeans Bugzilla by pedalshoe, 1 year ago
The process cannot access the file because another process has locked a portion of the file
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:233)
at oracle.bi.migration.util.FileUtils.copyStreamContentToStream(FileUtils.java:47)
at oracle.bi.migration.util.FileUtils.copyFileContentToStream(FileUtils.java:21)
at oracle.bi.migration.util.ZipUtils.recursivelyAddToZip(ZipUtils.java:172)
at oracle.bi.migration.util.ZipUtils.recursivelyAddToZip(ZipUtils.java:178)
at oracle.bi.migration.util.ZipUtils.bestEfforRecursivelyAddToZip(ZipUtils.java:256)
at oracle.bi.migration.util.ZipUtils.bestEffortCompressDirectoryToZip(ZipUtils.java:213)
at oracle.bi.migration.orchestration.BundleImporter_.finish(BundleImporter_.java:478)
at oracle.bi.migration.orchestration.actionspecification.ImportAction.finish(ImportAction.java:287)
at oracle.bi.migration.orchestration.MigrationConductor.performMigrationAction(MigrationConductor.java:134)
at oracle.bi.migration.tool.MigrationTool.go(MigrationTool.java:195)
at oracle.bi.migration.tool.MigrationTool.main(MigrationTool.java:251)

Users with the same issue

Once, 1 month ago
Once, 2 months ago
Once, 4 months ago
Once, 6 months ago
17 times, 8 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.