<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>TeamDev Support : Thread List - JxFileWatcher</title>
    <link>http://support.teamdev.com/community/java_platform_integration_solutions/jxfilewatcher?view=discussions</link>
    <description>Latest Forum Threads in JxFileWatcher</description>
    <language>en</language>
    <pubDate>Tue, 03 Aug 2010 08:50:57 GMT</pubDate>
    <generator>Clearspace 2.5.3 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2010-08-03T08:50:57Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>JxFileWatcher and Network Drives</title>
      <link>http://support.teamdev.com/thread/3864</link>
      <description>&lt;!-- [DocumentBodyStart:1c349978-b532-4e3f-820d-061ea0b5cbc4] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Does this library support watching network drives?  E.g. IF there are 500K files on a network share, can they all be "watched"?&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:1c349978-b532-4e3f-820d-061ea0b5cbc4] --&gt;</description>
      <pubDate>Mon, 02 Aug 2010 22:34:58 GMT</pubDate>
      <author>forum-admin@teamdev.com</author>
      <guid>http://support.teamdev.com/thread/3864</guid>
      <dc:date>2010-08-02T22:34:58Z</dc:date>
      <clearspace:dateToText>1 month, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Client-Server issues, remote filewatcher invocation</title>
      <link>http://support.teamdev.com/thread/3825</link>
      <description>&lt;!-- [DocumentBodyStart:936c3993-672d-42a1-9c25-07d343827a3d] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;I bought license for filewatcher;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Tests work well on my local computer;&lt;/p&gt;&lt;p&gt;However, when it's integrated in web-site, I get an error that says &lt;span style="font-size: 14pt;"&gt;&lt;strong&gt;the operation is not supported&lt;/strong&gt;&lt;/span&gt;.  I did  some additional testing to narrow down the problem.  When I run the  Online Demo at &lt;a class="jive-link-external-small" href="http://www.teamdev.com/jxfilewatcher/"&gt;http://www.teamdev.com/jxfilewatcher/&lt;/a&gt; , the  demo works, and I see the events being logged in the demo output  window.  Then when I attempt to run from the web-site, I get the &lt;strong&gt;operation not supported error&lt;/strong&gt;.  So, it seems like there is some  difference in the online demo vs the way the plugin is calling  jxfilewatcher.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Could possibly be a version difference in jxfilewatcher, or just  some way it is being called differently, or maybe the filters?&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:936c3993-672d-42a1-9c25-07d343827a3d] --&gt;</description>
      <pubDate>Thu, 15 Jul 2010 09:21:56 GMT</pubDate>
      <author>forum-admin@teamdev.com</author>
      <guid>http://support.teamdev.com/thread/3825</guid>
      <dc:date>2010-07-15T09:21:56Z</dc:date>
      <clearspace:dateToText>1 month, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>6</clearspace:messageCount>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>Problem: "ATTENTION: Failed to open file:"</title>
      <link>http://support.teamdev.com/thread/3803</link>
      <description>&lt;!-- [DocumentBodyStart:f50a1912-edb0-4d7e-8d57-f8cd3af86505] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I'm using jxFileWatcher-1.0.2 on Mac OS X Server 10.6.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When I add a lot of file in the directory watched, indications after appear:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;     8 juil. 2010 12:01:42 com.teamdev.filewatch.mac.KEventWatcher a&lt;/p&gt;&lt;p&gt;     ATTENTION: Failed to open file: /xxx/lol.jpg&lt;/p&gt;&lt;p&gt;     8 juil. 2010 12:01:42 watch.WatchingAllFileEvents$1 fileAdded&lt;/p&gt;&lt;p&gt;     Added[file=/xxx/lol.jpg]&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But sometimes, the file isn't added.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So, how I can do to manage this problem.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:f50a1912-edb0-4d7e-8d57-f8cd3af86505] --&gt;</description>
      <pubDate>Thu, 08 Jul 2010 10:23:08 GMT</pubDate>
      <author>forum-admin@teamdev.com</author>
      <guid>http://support.teamdev.com/thread/3803</guid>
      <dc:date>2010-07-08T10:23:08Z</dc:date>
      <clearspace:dateToText>2 months, 3 days ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>deleted after renamed</title>
      <link>http://support.teamdev.com/thread/3627</link>
      <description>&lt;!-- [DocumentBodyStart:91a66dcb-5526-47e7-ab06-17e5a6c97676] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hi, i'm testing de WatchingAllFileEvents demo file on macosx 10.6, when i'm renamed a file, the log is "renamed" and "deleted".&lt;/p&gt;&lt;p&gt;Why ?&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;...WatchingAllFileEvents$1 fileRenamed&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;INFO: Renamed[old name=/image/toto.jpg, new name=/image/tata.jpg]&lt;/p&gt;&lt;p&gt;... WatchingAllFileEvents$1 fileDeleted&lt;/p&gt;&lt;p&gt;INFO: Deleted[file=/image/tata.jpg]&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;thanks.&lt;/p&gt;&lt;div&gt; &lt;/div&gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:91a66dcb-5526-47e7-ab06-17e5a6c97676] --&gt;</description>
      <pubDate>Thu, 29 Apr 2010 17:11:45 GMT</pubDate>
      <author>forum-admin@teamdev.com</author>
      <guid>http://support.teamdev.com/thread/3627</guid>
      <dc:date>2010-04-29T17:11:45Z</dc:date>
      <clearspace:dateToText>2 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>10</clearspace:messageCount>
      <clearspace:replyCount>9</clearspace:replyCount>
    </item>
    <item>
      <title>Problem while redeploying j2ee web application using jxfile watcher</title>
      <link>http://support.teamdev.com/thread/3611</link>
      <description>&lt;!-- [DocumentBodyStart:5f359d23-ab4b-458b-bc4f-ba74957e9033] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;We use JxFileWatcher for keep watch on system folders for any update, for the first time we deploy the application to tomcat6, everthing works well, but if we try to undeploy and redeploy it using admin interface of tomcat then we face following error in running tomcat:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Caused by:&lt;br/&gt;java.lang.UnsatisfiedLinkError: Cannot load native JNIWrapper library (jniwrap.dll).&lt;br/&gt;    at com.jniwrapper.Library.a(SourceFile:112)&lt;br/&gt;    at com.jniwrapper.PlatformContext.u(SourceFile:452)&lt;br/&gt;    at com.jniwrapper.PlatformContext.t(SourceFile:490)&lt;br/&gt;    at com.teamdev.filewatch.a.a(SourceFile:43)&lt;br/&gt;    at com.teamdev.filewatch.FileWatcher.create(SourceFile:369)&lt;br/&gt;    at com.hybrid.jmsclient.bo.Impl.FileEventManager.startWatchedFolder(FileEventManager.java:116)&lt;br/&gt;    at com.hybrid.jmsclient.bo.Impl.FileEventManager.setPreferenceDAO(FileEventManager.java:52)&lt;br/&gt;    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br/&gt;    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;br/&gt;    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;br/&gt;    at java.lang.reflect.Method.invoke(Method.java:585)&lt;br/&gt;    at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:786)&lt;br/&gt;    at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:606)&lt;br/&gt;    at org.springframework.beans.AbstractPropertyAccessor.setPropertyValue(AbstractPropertyAccessor.java:49)&lt;br/&gt;    at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:74)&lt;br/&gt;    at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:57)&lt;br/&gt;    at org.springframework.beans.factory.support.AbstractBeanFactory.applyPropertyValues(AbstractBeanFactory.java:840)&lt;br/&gt;    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1026)&lt;br/&gt;    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:809)&lt;br/&gt;    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)&lt;br/&gt;    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)&lt;br/&gt;    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)&lt;br/&gt;    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)&lt;br/&gt;    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)&lt;br/&gt;    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273)&lt;br/&gt;    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)&lt;br/&gt;    at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)&lt;br/&gt;    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)&lt;br/&gt;    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)&lt;br/&gt;    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)&lt;br/&gt;    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)&lt;br/&gt;    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)&lt;br/&gt;    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)&lt;br/&gt;    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)&lt;br/&gt;    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)&lt;br/&gt;    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)&lt;br/&gt;    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:525)&lt;br/&gt;    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1359)&lt;br/&gt;    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br/&gt;    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;br/&gt;    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;br/&gt;    at java.lang.reflect.Method.invoke(Method.java:585)&lt;br/&gt;    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)&lt;br/&gt;    at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)&lt;br/&gt;    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)&lt;br/&gt;    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)&lt;br/&gt;    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)&lt;br/&gt;    at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1475)&lt;br/&gt;    at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:250)&lt;br/&gt;    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)&lt;br/&gt;    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)&lt;br/&gt;    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)&lt;br/&gt;    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&lt;br/&gt;    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)&lt;br/&gt;    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)&lt;br/&gt;    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)&lt;br/&gt;    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)&lt;br/&gt;    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)&lt;br/&gt;    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)&lt;br/&gt;    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)&lt;br/&gt;    at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)&lt;br/&gt;    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)&lt;br/&gt;    at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)&lt;br/&gt;    at java.lang.Thread.run(Thread.java:595)&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;which ultimately causes failing in deployment of the web application.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Specifically we are using jxfilewatcher-1.0.1 version and application server is Tomcat 6.0.24&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;We can see some errors that may cause the issue while undeploying the application that is&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;SEVERE: A web application registered the JBDC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.&lt;br/&gt;Apr 23, 2010 5:08:22 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads&lt;br/&gt;SEVERE: A web application appears to have started a thread named [Thread-4] but has failed to stop it. This is very likely to create a memory leak.&lt;br/&gt;Apr 23, 2010 5:08:22 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads&lt;br/&gt;SEVERE: A web application appears to have started a thread named [Thread-5] but has failed to stop it. This is very likely to create a memory leak.&lt;br/&gt;Apr 23, 2010 5:08:22 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads&lt;br/&gt;SEVERE: A web application appears to have started a thread named [Thread-6] but has failed to stop it. This is very likely to create a memory leak.&lt;br/&gt;Apr 23, 2010 5:08:22 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads&lt;br/&gt;SEVERE: A web application appears to have started a thread named [Thread-7] but has failed to stop it. This is very likely to create a memory leak.&lt;br/&gt;Apr 23, 2010 5:08:22 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads&lt;br/&gt;SEVERE: A web application appears to have started a thread named [Thread-8] but has failed to stop it. This is very likely to create a memory leak.&lt;br/&gt;Apr 23, 2010 5:08:22 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads&lt;br/&gt;SEVERE: A web application appears to have started a thread named [Thread-9] but has failed to stop it. This is very likely to create a memory leak.&lt;br/&gt;Apr 23, 2010 5:08:22 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads&lt;br/&gt;SEVERE: A web application appears to have started a thread named &lt;strong&gt;[com.jniwrapper.n&lt;/strong&gt;] but has failed to stop it. This is very likely to create a memory leak.&lt;br/&gt;Apr 23, 2010 5:08:22 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I think the jniwrapper thread is not exiting and holding the instance in the memory which is causing the issue, but question is how can we make this thread exit, or there is any other way to deal this problem&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any help is appreciable.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:5f359d23-ab4b-458b-bc4f-ba74957e9033] --&gt;</description>
      <pubDate>Fri, 23 Apr 2010 12:46:24 GMT</pubDate>
      <author>vaibhav.vyas@thepsi.com</author>
      <guid>http://support.teamdev.com/thread/3611</guid>
      <dc:date>2010-04-23T12:46:24Z</dc:date>
      <clearspace:dateToText>4 months, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>7</clearspace:messageCount>
      <clearspace:replyCount>6</clearspace:replyCount>
    </item>
    <item>
      <title>FileWatcher release file</title>
      <link>http://support.teamdev.com/thread/3623</link>
      <description>&lt;!-- [DocumentBodyStart:02870c3d-ea45-4f73-9a2b-09715e074177] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hello,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;1)&lt;/p&gt;&lt;p&gt;How i'm using watcher now is"&lt;/p&gt;&lt;p&gt;-watcher is started and all folders get related log files;&lt;/p&gt;&lt;p&gt;-collecting logs...&lt;br/&gt; -watcher is stopped, released and all files are parsed;&lt;br/&gt; -watcher is started again and all folders get related log files, again;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;2)&lt;/p&gt;&lt;p&gt;What i want to switch to:&lt;/p&gt;&lt;p&gt;-watcher is started and all folders get related log file;&lt;/p&gt;&lt;p&gt;-collecting  logs...&lt;/p&gt;&lt;p&gt;onButtonPress()&lt;/p&gt;&lt;p&gt;{&lt;/p&gt;&lt;p&gt;-all folders get another related &lt;strong&gt;duplicate&lt;/strong&gt; log file;&lt;br/&gt; -old watcher is stopped, released and all released files are parsed while new duplicates are monitoring;&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;On 2) way there wouldn't be missed logs that might happen &lt;strong&gt;during parsing&lt;/strong&gt; in 1) scenario;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So, when &lt;strong&gt;more than 1 logfile&lt;/strong&gt; is assigned &lt;strong&gt;to&lt;/strong&gt; &lt;strong&gt;1&lt;/strong&gt; &lt;strong&gt;folder&lt;/strong&gt; there is trouble with releasing the logfile(s);&lt;/p&gt;&lt;p&gt;File that is assigned  to the folder, that's already under monitoring, is not released properly  later, and require application restart or sometimes even environement restart  to become unlocked so can be deleted.&lt;/p&gt;&lt;p&gt;I tried already with sequence logFile1.log, logFile1.log.1, logFile1.log.2..., but run into same issue.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Each File handler inside the watcher is initialized:&lt;/p&gt;&lt;p&gt;fh = new FileHandler(log);&lt;/p&gt;&lt;p&gt;And file handler is released manually (event if it's not required in Eclipse)&lt;/p&gt;&lt;p&gt;fh.close();&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any ideas about this issue, please?&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:02870c3d-ea45-4f73-9a2b-09715e074177] --&gt;</description>
      <pubDate>Wed, 28 Apr 2010 10:56:20 GMT</pubDate>
      <author>forum-admin@teamdev.com</author>
      <guid>http://support.teamdev.com/thread/3623</guid>
      <dc:date>2010-04-28T10:56:20Z</dc:date>
      <clearspace:dateToText>4 months, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>setFilter &amp; WatchingAttributes</title>
      <link>http://support.teamdev.com/thread/3617</link>
      <description>&lt;!-- [DocumentBodyStart:d80dd143-c5f3-429f-81aa-0b4c0e62e456] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hello,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In the folder that's selected for watching, my aim is to:&lt;/p&gt;&lt;p&gt;-watch files with extension .pdf and .doc&lt;/p&gt;&lt;p&gt;-watch subfolders&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Tried to rework example that i downloaded and found in &lt;em&gt;samples&lt;/em&gt; folder: WatchingFilteredFileEvents.java&lt;/p&gt;&lt;p&gt;This part of the code can be reworked for this idea, i think:&lt;/p&gt;&lt;p&gt;&lt;em&gt;// Monitor all events excluding directories&lt;br/&gt;Set&amp;lt;WatchingAttributes&amp;gt; watchingAttributes = EnumSet.allOf(WatchingAttributes.class);&lt;br/&gt;watchingAttributes.remove(WatchingAttributes.DirectoryName);&lt;br/&gt;watcher.setOptions(watchingAttributes);&lt;/em&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;em&gt;// Specify monitoring only java and class files&lt;br/&gt;watcher.setFilter(new FileMaskFilter("*.java;*.class"));&lt;/em&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But it seems that whenever I set &lt;em&gt;watcher.setFilter, WatchingAttributes&lt;/em&gt; are ignored!? Why? Does &lt;em&gt;setFilter&lt;/em&gt; method has higher priority than &lt;em&gt;WatchingAttributes,&lt;/em&gt; maybe&lt;em&gt;?&lt;/em&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;How to use setFilter together with WatchingAttributes?&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:d80dd143-c5f3-429f-81aa-0b4c0e62e456] --&gt;</description>
      <pubDate>Mon, 26 Apr 2010 16:29:30 GMT</pubDate>
      <author>forum-admin@teamdev.com</author>
      <guid>http://support.teamdev.com/thread/3617</guid>
      <dc:date>2010-04-26T16:29:30Z</dc:date>
      <clearspace:dateToText>4 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>6</clearspace:messageCount>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>Issue with JxFileWatcher and TextEdit on OSX?</title>
      <link>http://support.teamdev.com/thread/3262</link>
      <description>&lt;!-- [DocumentBodyStart:cc1c419c-621a-4107-ba5d-275dd01aa812] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;I recently spotted that notifications within our application were missing when editing files using TextEdit on OSX. Trying to narrow the cause of this I launched the java ws sample for jxFileWatcher from you're site and see the same behaviour.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It's hard to tell whether this would be a bug within jxFileWatcher itself or unexpected behaviour from Apple's TextEdit application, so I was wondering if anyone else can reproduce this and shed any light upon what may be causing it.  For reference I'm using TextEdit Version 1.5 (244) on Mac OS X 10.5.8.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Steps to Reproduce (requires Mac)&lt;/strong&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Launch jxFileWatcher sample (via teamdev.com)&lt;/li&gt;&lt;li&gt;Create a new folder on disk&lt;/li&gt;&lt;li&gt;Start the sample monitoring the created folder&lt;/li&gt;&lt;li&gt;touch a file in that folder (file watcher correctly shows it as added)&lt;/li&gt;&lt;li&gt;echo content to the file via terminal e.g. echo "1" &amp;gt;&amp;gt; file.txt (file watcher correctly shows updates)&lt;/li&gt;&lt;li&gt;repeat as desired&lt;/li&gt;&lt;li&gt;Open the file with TextEdit, change and save (file watcher shows updates)&lt;/li&gt;&lt;li&gt;Repeat changing the file with TextEdit ~3-4 times more&lt;/li&gt;&lt;li&gt;At this point I no longer see updates appearing from jxFileWatcher&lt;/li&gt;&lt;li&gt;echo content to file again via terminal&lt;/li&gt;&lt;li&gt;Still see no updates appearing&lt;/li&gt;&lt;/ol&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If there's a way to generate more detailed debug from within jxFileWatcher that I can enable to capture more information about this I'm happy to try that.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Cheers,&lt;/p&gt;&lt;p&gt;Ian&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:cc1c419c-621a-4107-ba5d-275dd01aa812] --&gt;</description>
      <category domain="http://support.teamdev.com/tags?containerType=?14&amp;container=2061">issue</category>
      <category domain="http://support.teamdev.com/tags?containerType=?14&amp;container=2061">textedit</category>
      <pubDate>Fri, 30 Oct 2009 16:31:36 GMT</pubDate>
      <author>forum-admin@teamdev.com</author>
      <guid>http://support.teamdev.com/thread/3262</guid>
      <dc:date>2009-10-30T16:31:36Z</dc:date>
      <clearspace:dateToText>10 months, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
  </channel>
</rss>

