You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (JIRA)" <ji...@apache.org> on 2012/09/12 14:31:08 UTC

[jira] [Commented] (IO-344) Exception throwns for IOUtils.closeQuietly

    [ https://issues.apache.org/jira/browse/IO-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453945#comment-13453945 ] 

Gary D. Gregory commented on IO-344:
------------------------------------

What version of Java are you using? Commons IO 2.4 requires Java 6. The {{java.io.Closeable}} interface was added to Java in version 1.5.
                
> Exception throwns for  IOUtils.closeQuietly
> -------------------------------------------
>
>                 Key: IO-344
>                 URL: https://issues.apache.org/jira/browse/IO-344
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.4
>            Reporter: ajay singh
>             Fix For: 2.4
>
>
> Hi I am using apache commons tailer utilities as follows
>  TailerListener listener = new VFTailerListerner();
>  tailer = new Tailer(new File(myfile.txt), listener, 1000L,true);
>  Thread thread = new Thread(tailer);
>  thread.setDaemon(true);
>  thread.start();
> But on calling tailer.stop 
> I am getting this error message 
> "Exception in thread "Thread-0" java.lang.NoSuchMethodError: org.apache.commons.io.IOUtils.closeQuietly(Ljava/io/Closeable;)V
>         at org.apache.commons.io.input.Tailer.run(Tailer.java:430)
>         at java.lang.Thread.run(Thread.java:662)"
> Thanks
> sirfak
> 	

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira