[
https://issues.apache.org/jira/browse/IO-604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary Gregory updated IO-604:
----------------------------
Description:
The method {{FileUtils.doCopyFile(File, File, boolean)}} can throw
{{ClosedByInterruptException}} apparently randomly:
{noformat}
Thread [main] (Suspended (entry into method <init> in
ClosedByInterruptException))
owns: Object (id=405)
owns: AbstractComponentSubManager$3 (id=406)
owns: RunnableLock (id=407)
ClosedByInterruptException.<init>() line: 51
FileChannelImpl(AbstractInterruptibleChannel).end(boolean)
line: 202
FileChannelImpl.size() line: 315
FileUtils.doCopyFile(File, File, boolean) line: 1145
FileUtils.copyFile(File, File, boolean) line: 1088
FileUtils.copyFile(File, File) line: 1040
... Stack frames from my app...
{noformat}
I want to workaround this by updating {{doCopyFile}} to use Java 7's
{{Files.copy(Path,Path,CopyOptions)}} API.
was:
The method {{FileUtils.doCopyFile(File, File, boolean)}} can throw
{{ClosedByInterruptException}} apparently randomly:
{noformat}
Thread [main] (Suspended (entry into method <init> in
ClosedByInterruptException))
owns: Object (id=405)
owns: AbstractComponentSubManager$3 (id=406)
owns: RunnableLock (id=407)
ClosedByInterruptException.<init>() line: 51
FileChannelImpl(AbstractInterruptibleChannel).end(boolean)
line: 202
FileChannelImpl.size() line: 315
FileUtils.doCopyFile(File, File, boolean) line: 1145
FileUtils.copyFile(File, File, boolean) line: 1088
FileUtils.copyFile(File, File) line: 1040
... Stack frames from my app...
{noformat}
I want o try to workaround this by updating {{doCopyFile}} to use Java 7's
{{Files.copy(Path,Path,CopyOptions)}} API.
> FileUtils.doCopyFile(File, File, boolean) can throw ClosedByInterruptException
> ------------------------------------------------------------------------------
>
> Key: IO-604
> URL: https://issues.apache.org/jira/browse/IO-604
> Project: Commons IO
> Issue Type: Bug
> Reporter: Gary Gregory
> Assignee: Gary Gregory
> Priority: Major
> Fix For: 2.7
>
>
> The method {{FileUtils.doCopyFile(File, File, boolean)}} can throw
> {{ClosedByInterruptException}} apparently randomly:
> {noformat}
> Thread [main] (Suspended (entry into method <init> in
> ClosedByInterruptException))
> owns: Object (id=405)
> owns: AbstractComponentSubManager$3 (id=406)
> owns: RunnableLock (id=407)
> ClosedByInterruptException.<init>() line: 51
> FileChannelImpl(AbstractInterruptibleChannel).end(boolean)
> line: 202
> FileChannelImpl.size() line: 315
> FileUtils.doCopyFile(File, File, boolean) line: 1145
>
> FileUtils.copyFile(File, File, boolean) line: 1088
> FileUtils.copyFile(File, File) line: 1040
> ... Stack frames from my app...
> {noformat}
> I want to workaround this by updating {{doCopyFile}} to use Java 7's
> {{Files.copy(Path,Path,CopyOptions)}} API.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)