changcheng / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

ERROR ResourceWatcherRunnable:81 - Exception while checking for resource changes logged on tomcat shutdown #513

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

INFO Http11BaseProtocol:184 - Stopping Coyote HTTP/1.1 on http-9080
ERROR ResourceWatcherRunnable:81 - Exception while checking for resource changes
java.lang.NullPointerException
    at ro.isdc.wro.config.Context.isContextSet(Context.java:112)
    at ro.isdc.wro.model.resource.locator.support.DispatcherStreamLocator.getInputStream(DispatcherStreamLocator.java:97)
    at ro.isdc.wro.model.resource.locator.ServletContextUriLocator.dispatcherBasedStreamLocator(ServletContextUriLocator.java:203)
    at ro.isdc.wro.model.resource.locator.ServletContextUriLocator.dispatcherFirstStreamLocator(ServletContextUriLocator.java:190)
    at ro.isdc.wro.model.resource.locator.ServletContextUriLocator.locate(ServletContextUriLocator.java:165)
    at ro.isdc.wro.model.resource.locator.factory.InjectorAwareUriLocatorFactoryDecorator.locate(InjectorAwareUriLocatorFactoryDecorator.java:51)
    at ro.isdc.wro.manager.runnable.ResourceWatcherRunnable.getCurrentHash(ResourceWatcherRunnable.java:143)
    at ro.isdc.wro.manager.runnable.ResourceWatcherRunnable.isChanged(ResourceWatcherRunnable.java:123)
    at ro.isdc.wro.manager.runnable.ResourceWatcherRunnable.checkForChanges(ResourceWatcherRunnable.java:92)
    at ro.isdc.wro.manager.runnable.ResourceWatcherRunnable.run(ResourceWatcherRunnable.java:73)
    at ro.isdc.wro.config.support.InheritableContextRunnable.run(InheritableContextRunnable.java:42)

Original issue reported on code.google.com by lystoc...@gmail.com on 11 Aug 2012 at 10:40

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 11 Aug 2012 at 5:09

GoogleCodeExporter commented 9 years ago
Fixed in branch 1.4.x.
The fix is a short term solution. The problem will disappear after the 
ResourceWatcher implementation is improved.

Original comment by alex.obj...@gmail.com on 12 Aug 2012 at 11:03

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 12 Aug 2012 at 6:56

GoogleCodeExporter commented 9 years ago
I'm still getting this in 1.4.8.1:

java.lang.NullPointerException
    at ro.isdc.wro.config.Context.set(Context.java:157)
    at ro.isdc.wro.config.Context.set(Context.java:142)
    at ro.isdc.wro.model.resource.locator.support.DispatcherStreamLocator.getInputStream(DispatcherStreamLocator.java:98)
    at ro.isdc.wro.model.resource.locator.ServletContextUriLocator.dispatcherBasedStreamLocator(ServletContextUriLocator.java:203)
    at ro.isdc.wro.model.resource.locator.ServletContextUriLocator.dispatcherFirstStreamLocator(ServletContextUriLocator.java:190)
    at ro.isdc.wro.model.resource.locator.ServletContextUriLocator.locate(ServletContextUriLocator.java:165)
    at ro.isdc.wro.model.resource.locator.factory.InjectorAwareUriLocatorFactoryDecorator.locate(InjectorAwareUriLocatorFactoryDecorator.java:51)
    at ro.isdc.wro.manager.runnable.ResourceWatcherRunnable.getCurrentHash(ResourceWatcherRunnable.java:143)
    at ro.isdc.wro.manager.runnable.ResourceWatcherRunnable.isChanged(ResourceWatcherRunnable.java:123)
    at ro.isdc.wro.manager.runnable.ResourceWatcherRunnable.checkForChanges(ResourceWatcherRunnable.java:92)
    at ro.isdc.wro.manager.runnable.ResourceWatcherRunnable.run(ResourceWatcherRunnable.java:73)
    at ro.isdc.wro.config.support.InheritableContextRunnable.run(InheritableContextRunnable.java:42)

Original comment by lystoc...@gmail.com on 15 Aug 2012 at 7:59

GoogleCodeExporter commented 9 years ago
The issue is fixed by issue514. It should not appear anymore. 

Changing the milestone release to 1.4.9

Original comment by alex.obj...@gmail.com on 20 Aug 2012 at 1:07