HotswapProjects / HotswapAgent

Java unlimited redefinition of classes at runtime.
GNU General Public License v2.0
2.37k stars 493 forks source link

HotswapAgent logs loads of ERROR messages on Tomee #152

Open eitland opened 8 years ago

eitland commented 8 years ago

The messages follows this pattern:

HOTSWAP AGENT: 13:14:42.689 ERROR (org.hotswap.agent.watch.nio.EventDispatcher) - No match for watch event 'sun.nio.fs.AbstractWatchKey$Event@78405fb6', path 'c:...'

I'll try to come back with more info once I get around to debugging it.

brandstaetter commented 7 years ago

I am running into the same issue, are there workarounds?

skybber commented 7 years ago

As I remember it happens on massive redefinition on linux platform. It can be consequence of "rebuild all" project. HA has some optimization for massive redefinition for Windows platform but not for Linux. If it is you case, then there is still no workaround. You could rebuild/deploy only necessary sources to avoid this.

brandstaetter commented 7 years ago

It happens during startup of my application, somehow it registers HOTSWAP AGENT: 09:44:31.216 INFO (org.hotswap.agent.watch.nio.TreeWatcherNIO) - Registering directory target C:\Users\hbrandstaetter\crossng-logback.user.xml via watched: C:\Users\hbrandstaetter and then starts spamming error messages for every file inside my user home, i.e. AppData... is there a way to suppress this watcher?

Edit: it works if I remove the logback-user.properties file from my user-home, but i'd rather keep them together...