[Geoserver-users] GeoServer 1.7.1 shipped with wrong GeoWebCache jar

(We may release 1.7.1a, in which case this email will not apply to those downloads.)

If you have already downloaded GeoServer 1.7.1 and want to use GeoWebCache, please do the following:

1) Go into WEB-INF/lib
2) Download http://repo.opengeo.org/org/opengeo/geowebcache/1.0/geowebcache-1.0.jar , save it in the same location
3) Delete geowebcache-1.0-20081204.002015-101.jar in the same directory
4) Restart your container to ensure everything is reloaded (Tomcat / Jetty)

You should then be able to see the demos by pointing a browser to http://localhost:8080/geoserver/gwc

Cheers,
-Arne

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

Hi Arne,

Just to clarify, the version that we did ship with works fine minus a few bug fixes that occurred from the RC to 1.0? So most people should not see a difference?

That said I will rebuild the artifacts.

-Justin

Arne Kepp wrote:

(We may release 1.7.1a, in which case this email will not apply to those downloads.)

If you have already downloaded GeoServer 1.7.1 and want to use GeoWebCache, please do the following:

1) Go into WEB-INF/lib
2) Download http://repo.opengeo.org/org/opengeo/geowebcache/1.0/geowebcache-1.0.jar , save it in the same location
3) Delete geowebcache-1.0-20081204.002015-101.jar in the same directory
4) Restart your container to ensure everything is reloaded (Tomcat / Jetty)

You should then be able to see the demos by pointing a browser to http://localhost:8080/geoserver/gwc

Cheers,
-Arne

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

I have tested the binary and it doesn't look bad. People who only use the automatic configuration should be fine. I.e just start GeoServer and use whatever is available through http://localhost:8080/geoserver/gwc

If you need additional configuration ( %GEOSERVER_DATA_DIR%/gwc/geowebcache.xml ), for example to support projections other than EPSG:4326 and EPSG:900913, then you should upgrade.

-Arne

Justin Deoliveira wrote:

Hi Arne,

Just to clarify, the version that we did ship with works fine minus a few bug fixes that occurred from the RC to 1.0? So most people should not see a difference?

That said I will rebuild the artifacts.

-Justin

Arne Kepp wrote:

(We may release 1.7.1a, in which case this email will not apply to those downloads.)

If you have already downloaded GeoServer 1.7.1 and want to use GeoWebCache, please do the following:

1) Go into WEB-INF/lib
2) Download http://repo.opengeo.org/org/opengeo/geowebcache/1.0/geowebcache-1.0.jar , save it in the same location
3) Delete geowebcache-1.0-20081204.002015-101.jar in the same directory
4) Restart your container to ensure everything is reloaded (Tomcat / Jetty)

You should then be able to see the demos by pointing a browser to http://localhost:8080/geoserver/gwc

Cheers,
-Arne

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

Arne Kepp wrote:

I have tested the binary and it doesn't look bad. People who only use the automatic configuration should be fine. I.e just start GeoServer and use whatever is available through http://localhost:8080/geoserver/gwc

Report :
System : 1.7.1 war install with default geowebcache, downloade today

I. Standard access, without "gwc" : Work
II. gwc Access
1. Layers List : Ok
2. Click on topp:states ==> Ok
3. Click on my layer (bino:line) :
a.
10 Dec 09:43:34 ERROR [geowebcache.GeoWebCacheDispatcher] - null http://192.168.4.2:8080/geoserver/gwc/service/wms
java.lang.NullPointerException
    at it.geosolutions.imageio.plugins.arcgrid.raster.StringToDouble.acquire(StringToDouble.java:293)
    at it.geosolutions.imageio.plugins.arcgrid.raster.EsriAsciiGridRaster.parseHeader(EsriAsciiGridRaster.java:144)
    at it.geosolutions.imageio.plugins.arcgrid.spi.AsciiGridsImageReaderSpi.canDecodeInput(AsciiGridsImageReaderSpi.java:219)
    at javax.imageio.ImageIO$CanDecodeInputFilter.filter(ImageIO.java:541)
    at javax.imageio.spi.FilterIterator.advance(ServiceRegistry.java:793)
    at javax.imageio.spi.FilterIterator.<init>(ServiceRegistry.java:787)
    at javax.imageio.spi.ServiceRegistry.getServiceProviders(ServiceRegistry.java:491)
    at javax.imageio.ImageIO.getImageReaders(ImageIO.java:620)
    at javax.imageio.ImageIO.read(ImageIO.java:1412)
    at javax.imageio.ImageIO.read(ImageIO.java:1326)
    at org.geowebcache.layer.wms.WMSMetaTile.setImageBytes(WMSMetaTile.java:97)
    at org.geowebcache.layer.wms.WMSLayer.getMetatilingReponse(WMSLayer.java:299)
    at org.geowebcache.layer.wms.WMSLayer.getTile(WMSLayer.java:226)
    at org.geowebcache.GeoWebCacheDispatcher.handleServiceRequest(GeoWebCacheDispatcher.java:252)
    at org.geowebcache.GeoWebCacheDispatcher.handleRequestInternal(GeoWebCacheDispatcher.java:164)
    at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
    at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
    at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
    at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:178)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)

b. after repeated of msg# a .... :

10 Dec 09:47:06 ERROR [wms.WMSHttpHelper] - Error forwarding request http://localhost:8080/geoserver/wms?format_options=regionateby:auto&layers=bino%3Aline&width=1024&styles=bino_line&srs=EPSG%3A4326&format=image%2Fpng&tiled=FALSE&version=1.1.0&exceptions=application%2Fvnd.ogc.se_inimage&height=256&bbox=90.0%2C0.0%2C135.0%2C11.25&request=GetMap&service=WMS&transparent=TRUE Read timed out
10 Dec 09:47:06 ERROR [geowebcache.GeoWebCacheDispatcher] - All backends (1) failed, last one: http://localhost:8080/geoserver/wms?format_options=regionateby:auto&layers=bino%3Aline&width=1024&styles=bino_line&srs=EPSG%3A4326&format=image%2Fpng&tiled=FALSE&version=1.1.0&exceptions=application%2Fvnd.ogc.se_inimage&height=256&bbox=90.0%2C0.0%2C135.0%2C11.25&request=GetMap&service=WMS&transparent=TRUE

null http://192.168.4.2:8080/geoserver/gwc/service/wms

Know ... i'm downloading sugested geowebcache jar.

I'll report after update

Sincerely
-bino-

Bino Oetomo wrote:

Know ... i'm downloading sugested geowebcache jar.

I'll report after update

Sincerely
-bino-
  
Here is my experience with GeoWebCache jar.

1. Accessing "http://192.168.4.2:8080/geoserver/gwc/demo&quot;

a. Some of log Msgs :
10 Dec 12:11:02 INFO [util.GetCapabilitiesConfiguration] - Loaded 25 layers from http://192.168.4.2:8080/geoserver/wms?request=GetCapabilities
10 Dec 12:11:02 INFO [layer.TileLayerDispatcher] - Adding layers from http://192.168.4.2:8080/geoserver/wms?request=GetCapabilities
10 Dec 12:11:02 INFO [file.FileCache] - Found System environment variable GEOSERVER_DATA_DIR set to /opt/tomcat/webapps/geoserver/data/, using it as the default prefix.
10 Dec 12:11:02 ERROR [util.XMLConfiguration] - Failed to find geowebcache.xml
10 Dec 12:11:02 ERROR [layer.TileLayerDispatcher] - Unable to determine configuration directory.

b. Result : Layers listed correctly

2. Clicking on "EPSG:4326" of "bino:Polygon" (http://192.168.4.2:8080/geoserver/gwc/demo/bino:polygon?srs=EPSG:4326)

a. Some Log Msgs :
10 Dec 12:11:44 WARN [cache.CacheFactory] - Received request for default cache, returning gwcCacheFile
10 Dec 12:11:44 WARN [wms.WMSLayer] - cachePrefix not defined for layer bino:polygon, using default prefix and name instead: /opt/tomcat/webapps/geoserver/data//gwc/bino_polygon
10 Dec 12:11:44 INFO [file.FileCache] - Succesfully opened /opt/tomcat/webapps/geoserver/data/gwc/bino_polygon for writing
10 Dec 12:11:44 INFO [geowebcache.GeoWebCacheDispatcher] - Read 129 from blank PNG8 file (expected 129).
10 Dec 12:12:44 ERROR [wms.WMSHttpHelper] - Error forwarding request http://192.168.4.2:8080/geoserver/wms?format_options=regionateby:auto&layers=bino%3Apolygon&width=768&styles=bino_poly&srs=EPSG%3A4326&format=image%2Fpng&tiled=FALSE&version=1.1.0&exceptions=application%2Fvnd.ogc.se_inimage&height=256&bbox=90.0%2C0.0%2C157.5%2C22.5&request=GetMap&service=WMS&transparent=TRUE Read timed out
10 Dec 12:12:44 ERROR [geowebcache.GeoWebCacheDispatcher] - All backends (1) failed, last one: http://192.168.4.2:8080/geoserver/wms?format_options=regionateby:auto&layers=bino%3Apolygon&width=768&styles=bino_poly&srs=EPSG%3A4326&format=image%2Fpng&tiled=FALSE&version=1.1.0&exceptions=application%2Fvnd.ogc.se_inimage&height=256&bbox=90.0%2C0.0%2C157.5%2C22.5&request=GetMap&service=WMS&transparent=TRUE

Result : Only Show some blank tile square.

3. Clicking on :"EPSG:4326" of "topp:tasmania_state_boundaries" (pointed to : http://192.168.4.2:8080/geoserver/gwc/demo/topp:tasmania_state_boundaries?srs=EPSG:4326)

a. Some Log MSGs :
10 Dec 12:19:22 WARN [cache.CacheFactory] - Received request for default cache, returning gwcCacheFile
10 Dec 12:19:22 WARN [wms.WMSLayer] - cachePrefix not defined for layer topp:tasmania_state_boundaries, using default prefix and name instead: /opt/tomcat/webapps/geoserver/data//gwc/topp_tasmania_state_boundaries
10 Dec 12:19:22 INFO [file.FileCache] - /opt/tomcat/webapps/geoserver/data//gwc/topp_tasmania_state_boundaries did not exist, has been created recursively.
10 Dec 12:19:24 ERROR [geowebcache.GeoWebCacheDispatcher] - null http://192.168.4.2:8080/geoserver/gwc/service/wms
java.lang.NullPointerException
    at org.geowebcache.layer.wms.WMSMetaTile.createTile(WMSMetaTile.java:154)
    at org.geowebcache.layer.wms.WMSMetaTile.createTiles(WMSMetaTile.java:124)
    at org.geowebcache.layer.wms.WMSLayer.getMetatilingReponse(WMSLayer.java:321)
    at org.geowebcache.layer.wms.WMSLayer.getTile(WMSLayer.java:240)
    at org.geowebcache.GeoWebCacheDispatcher.handleServiceRequest(GeoWebCacheDispatcher.java:252)
    at org.geowebcache.GeoWebCacheDispatcher.handleRequestInternal(GeoWebCacheDispatcher.java:164)
    at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
    at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
    at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
    at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:178)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)

etc etc ....

b. Result : the layer displayed correctly

I think ... there is something with TimeOut .. since my data is big enough
How to extend the geowebcache timeout ?

Sincerely
-bino-

Hi Bino,

please remember to use Reply-to-all, so the message goes to the list.

This is pretty strange, are you using Tomcat or Jetty ? It looks like the container is buffering up the response to the extent that you get hit by the connection timeout. The timeouts should be configurable, but currently they're not. (I've made a ticket, #72).

Can you try:
http://atlas.openplans.org/~ak/geowebcache-1.0.1.jar

-Arne

Bino Oetomo wrote:

Dear Sir
Arne Kepp wrote:

Hi Bino,

I need to look into the NPE, I have never seen it before and that code has not changed in a while.

If you hit the URL below, how long does it take until the responses is rendered in the browser ?

http://192.168.4.2:8080/geoserver/wms?format_options=regionateby:auto&layers=bino%3Apolygon&width=768&styles=bino_poly&srs=EPSG%3A4326&format=image%2Fpng&tiled=FALSE&version=1.1.0&exceptions=application%2Fvnd.ogc.se_inimage&height=256&bbox=90.0%2C0.0%2C157.5%2C22.5&request=GetMap&service=WMS&transparent=TRUE

+/- 19 secs

How did you get GWC to hit 192.168.4.2 , by default it's configured to hit http://127.0.0.1 ?

Actualy, both Address is inthe same Box
By adding to web.xml :
   <context-param>
   <param-name>GEOSERVER_WMS_URL</param-name>
       <param-value>http://192.168.4.2:8080/geoserver/wms?request=GetCapabilities&lt;/param\-value&gt;

   </context-param>
Thankyou for your response ..
I really appraciate it.

Sincerely
-bino-

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

Arne Kepp wrote:

Hi Bino,

please remember to use Reply-to-all, so the message goes to the list.

Roger that

This is pretty strange, are you using Tomcat or Jetty ? It looks like the container is buffering up the response to the extent that you get hit by the connection timeout. The timeouts should be configurable, but currently they're not. (I've made a ticket, #72).

According my http://192.168.4.2:8080/manager/status

Tomcat : Apache Tomcat/6.0.18
JVM : SUN --> 1.6.0_10-b33, Free memory: 116.93 MB Total memory: 233.02 MB Max memory: 253.18 MB
OS : UBUNTU --> 2.6.24-19-server

Can you try:
http://atlas.openplans.org/~ak/geowebcache-1.0.1.jar

Done installing that jar ...
Restart geoserver
But Still generate the same condition ...

Thankyou for your support

Sincerely
-bino-

Bino Oetomo wrote:

..... <snip>

Can you try:
http://atlas.openplans.org/~ak/geowebcache-1.0.1.jar

Done installing that jar ...
Restart geoserver
But Still generate the same condition ...

Did you remove the old jar geowebcache-1.0.jar ? I changed all the
timeouts to 120 seconds in that jar.

If it persists I will try to make a really bad style on a big layer.
Timeouts were mostly an issue with KML stuff, I have not received
reports on image output.

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

Can anyone tell me what the parameter jaiRecycling is for in the services.xml file and what considerations should be taken into account when setting it? TNX David

--

David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: drrobison@anonymised.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/book_detail.php?id=2579

Hi David,
this boolean parameter tells the JAI (Java Advanced Imaging) library
if recycle or not the tiles, i.e. reuse the allocated memory for
WriteableRasters.

-------------------------------------------------------
Eng. Alessio Fabiani
Vice-President /CTO GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 349 8227000

http://www.geo-solutions.it

-------------------------------------------------------

On Wed, Dec 10, 2008 at 5:29 PM, David R Robison
<drrobison@anonymised.com> wrote:

Can anyone tell me what the parameter jaiRecycling is for in the
services.xml file and what considerations should be taken into account
when setting it? TNX David

--

David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: drrobison@anonymised.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/book_detail.php?id=2579

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ciao David,
as Alessio correctly pointed out this flag can enable/disable
recycling of unused tiles at the ImageIO level in order to reuse them
when creating new raster in memory. This is quite
advanced/experimental configuration option, however performances tests
that we have made in the past shows that setting recycling on
introduce some performance penalty, therefore I would suggest you to
safely disable it.

Simone.

-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

-------------------------------------------------------

On Wed, Dec 10, 2008 at 5:29 PM, David R Robison
<drrobison@anonymised.com> wrote:

Can anyone tell me what the parameter jaiRecycling is for in the
services.xml file and what considerations should be taken into account
when setting it? TNX David

--

David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: drrobison@anonymised.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/book_detail.php?id=2579

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Dear Arne
Arne Kepp wrote:

Done installing that jar ...
Restart geoserver
But Still generate the same condition ...

Did you remove the old jar geowebcache-1.0.jar ? I changed all the
timeouts to 120 seconds in that jar.

If it persists I will try to make a really bad style on a big layer.
Timeouts were mostly an issue with KML stuff, I have not received
reports on image output.

Yes ... I remove the old Jar ...
BTW .. I'm sorry for this very late feedback ...
I had a realy bad cold since last thursday.

And this is my first day

Sincerely
-bino-