Debasish Sahu ha scritto:
> Hi ,
> 
> I took the current build from the trunk . A new error has crept in and 
> am unable to configure any Oracle Spatial Layers.It was working fine 
> with yesterday's build.
> 
> 15 Apr 10:37:35 INFO [layer.TileLayerDispatcher] - Adding layers from 
> GeoServer
> Catalog Listener
> 15 Apr 10:37:35 ERROR [layer.TileLayerDispatcher] - Configuration 
> GeoServer Cata
> log Listener contained no layers.
> 15 Apr 10:37:35 ERROR [util.XMLConfiguration] - Failed to find 
> geowebcache.xml
> 15 Apr 10:37:35 ERROR [layer.TileLayerDispatcher] - Unable to determine 
> configur
> ation directory.
> 15 Apr 10:37:35 WARN [layer.TileLayer] - Merging grids, formats and 
> filters of t
> opp:INDIA_STATES
> 15 Apr 10:37:49 WARN [catalog.imp] - Catalog listener threw exception 
> handling e
> vent.
> java.lang.NullPointerException
>         at 
> org.geowebcache.layer.wms.WMSLayer.acquireLayerLock(WMSLayer.java:796
> )
>         at 
> org.geowebcache.layer.TileLayerDispatcher.update(TileLayerDispatcher.
> java:151)

This error is logged but it's not fatal, it's GWC crashing because
it cannot handle the events GeoServer trunk throw miss some
information it needs.
We added a try/catch around the even throwing code that just logs
the exception, as you can see here:

 > 15 Apr 10:37:49 WARN [catalog.imp] - Catalog listener threw exception
 > handling e
 > vent.

the code dealing with events being:

protected void event(CatalogEvent event) {
         for (Iterator l = listeners.iterator(); l.hasNext();) {
             try {
                 CatalogListener listener = (CatalogListener) l.next();
                 if (event instanceof CatalogAddEvent) {
                     listener.handleAddEvent((CatalogAddEvent) event);
                 } else if (event instanceof CatalogRemoveEvent) {
                     listener.handleRemoveEvent((CatalogRemoveEvent) event);
                 } else if (event instanceof CatalogModifyEvent) {
                     listener.handleModifyEvent((CatalogModifyEvent) event);
                 } else if (event instanceof CatalogPostModifyEvent) {
 
listener.handlePostModifyEvent((CatalogPostModifyEvent)event);
                 }
             } catch(Exception e) {
                 LOGGER.log(Level.WARNING, "Catalog listener threw 
exception handling event.", e);
             }

         }
     }

Soo... you're probably looking at the wrong stack trace?
Cheers
Andrea

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to