<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><div><br></div><div>Hi,</div><div>Problem: I canīt print any tiles coming from geowebcache!</div><div>gridset: 900913</div><div>System: Linux Ubuntu 10.04 / tomcat6 / Geoserver 2.1.2 </div><div><br></div><div><span><b><u>Javscript</u></b></span></div><div><span><b><u><br></u></b></span></div><div><span><span>// map</span></span></div><div><div>var map = new OpenLayers.Map("map", {</div><div> id: 'map',</div><div> projection: new OpenLayers.Projection("EPSG:900913"),</div><div> displayProjection: new OpenLayers.Projection("EPSG:4326"),</div><div> units: "m",</div><div> maxResolution: 156543.0339,</div><div>
maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508.34),</div><div> numZoomLevels: 17,</div><div> controls: [new OpenLayers.Control.MouseDefaults(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.MousePosition(), new OpenLayers.Control.ScaleLine({</div><div> geodesic: true</div><div> })]</div><div> });</div></div><div><br></div><div>// layer GWC</div><div><div>var layer_topo = new OpenLayers.Layer.WMS("Topographischekarte", "http://maps.zgb.de/geoserver/gwc/service/wms/", {</div><div> layers: 'zgb:tk50',</div><div> projection: "EPSG:900913",</div><div> format: 'image/png',</div><div> transparent: true,</div><div> singleTile:
false</div><div> }, {</div><div> 'buffer': 0,</div><div> 'opacity': 1,</div><div> 'isBaseLayer': true,</div><div> visibility: true</div><div> });</div></div><div><br></div><div><u><b>Geoserver log</b></u></div><div><u><b><br></b></u></div><div>2011-11-24 07:39:54,199 ERROR [geowebcache.GeoWebCacheDispatcher] - The requested tile dimensions 625x458 do not match those of the grid set (256x256) http://maps.zgb.de/geoserver/gwc/service/wms</div><div>2011-11-24 07:39:54,200 WARN [print.PDFUtils] - Server returned an error for
http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1176787.0%2C6892762.5%2C1181754.1%2C6899536.0&HEIGHT=625&WIDTH=458&map_resolution=75&SERVICE=WMS&REQUEST=GetMap&STYLES=&TILESIZE=%7B%22w%22%3A256%2C%22h%22%3A256%7D&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&PROJECTION=EPSG%3A900913&format_options=dpi%3A75&LAYERS=zgb%3Atk50&SINGLETILE=false&SRS=EPSG%3A900913: Error (status=400) while reading the image from http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1176787.0%2C6892762.5%2C1181754.1%2C6899536.0&HEIGHT=625&WIDTH=458&map_resolution=75&SERVICE=WMS&REQUEST=GetMap&STYLES=&TILESIZE=%7B%22w%22%3A256%2C%22h%22%3A256%7D&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&PROJECTION=EPSG%3A900913&format_options=dpi%3A75&LAYERS=zgb%3Atk50&SINGLETILE=false&SRS=EPSG%3A900913: Bad Request</div></font></div><div><font
class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><u><b>pdf error attatchment</b></u></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><u><b><br></b></u></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">java.io.IOException: Error (status=400) while reading the image from http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1091694.4%2C6741760.5%2C1250642.0%2C6958507.0</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">&</font><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-size: small; ">HEIGHT=625&WIDTH=458</span></div><div><font class="Apple-style-span" face="arial,
helvetica, sans-serif" size="2">&map_resolution=75&SERVICE=WMS&REQUEST=GetMap</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">&STYLES=&TILESIZE=%7B%22w%22%3A256%2C%22h%22%3A256%7D&TRANSPARENT=true</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">&VERSION=1.1.1&FORMAT=image%2Fpng&PROJECTION=EPSG%3A900913&format_options=dp</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">i%3A75&LAYERS=zgb%3Atk50&SINGLETILE=false&SRS=EPSG%3A900913: Bad Request<br></font></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size:
10pt; "><div style="font-size: 13px; ">Can anyone tell me why the mapfish print is requesting tile dimensions of 625x458?</div><div style="font-size: 13px; "><br></div><div style="font-size: 13px; "><br></div><div style="font-size: 13px; "><br></div><div style="font-size: 13px; ">Yours with thanks,</div><div style="font-size: 13px; "><br></div><div style="font-size: 13px; ">Rob</div><div><br></div></div></div></div></body></html>