<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Marco,<br>
<br>
Try adding 'tile.openstreetmap.org' in your list of allowed hosts
in your config.yaml.<br>
<br>
Alexandre<br>
<br>
<br>
On 11-11-01 06:44 AM, Marco Afonso wrote:
<blockquote
cite="mid:CAG6YeNzsAAAhfOiMnwrktbvz1OB7akH0o0eVrNvC7=xP=VgA3A@mail.gmail.com"
type="cite">Hello all,
<div><br>
</div>
<div>I'm getting an error when trying to print my map having OSM
as base layer:</div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span
class="Apple-style-span" style="border-collapse: collapse;"><span
class="Apple-style-span" style="border-collapse: separate;
font-family: 'Times New Roman'; font-size: medium;">
<pre style="word-wrap: break-word; white-space: pre-wrap;">Error while generating PDF:
DocumentException: org.mapfish.print.InvalidJsonValueException: spec.layers[0].baseURL has an invalid value: <a moz-do-not-send="true" href="http://tile.openstreetmap.org/">http://tile.openstreetmap.org/</a> (spec.layers[0].baseURL has an invalid value: <a moz-do-not-send="true" href="http://tile.openstreetmap.org/">http://tile.openstreetmap.org/</a>)
        at org.mapfish.print.map.readers.HTTPMapReader.checkSecurity(HTTPMapReader.java:64)
        at org.mapfish.print.map.readers.HTTPMapReader.<init>(HTTPMapReader.java:55)
        at org.mapfish.print.map.readers.TileableMapReader.<init>(TileableMapReader.java:40)
        at org.mapfish.print.map.readers.OsmMapReader.<init>(OsmMapReader.java:41)
        at org.mapfish.print.map.readers.OsmMapReader.create(OsmMapReader.java:78)
        at org.mapfish.print.map.readers.MapReader.create(MapReader.java:56)
        at org.mapfish.print.map.MapChunkDrawer.renderImpl(MapChunkDrawer.java:111)</pre>
<pre style="word-wrap: break-word; white-space: pre-wrap;">...</pre>
<pre style="word-wrap: break-word; white-space: pre-wrap;">
</pre>
<font class="Apple-style-span" face="arial"><span
class="Apple-style-span" style="font-size: small;">The
code is the same as in GeoExt Printing OSM example...</span></font></span></span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span
class="Apple-style-span" style="border-collapse: collapse;"><span
class="Apple-style-span" style="border-collapse: separate;
font-family: 'Times New Roman'; font-size: medium;"><font
class="Apple-style-span" face="arial"><span
class="Apple-style-span" style="font-size: small;"><br>
</span></font></span></span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span
class="Apple-style-span" style="border-collapse: collapse;"><span
class="Apple-style-span" style="border-collapse: separate;
font-family: 'Times New Roman'; font-size: medium;"><font
class="Apple-style-span" face="arial"><span
class="Apple-style-span" style="font-size: small;">I'm
using extjs 3.4, openlayers 2.11, geoserver 2.1.1 and
openlayers 2.11</span></font></span></span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span
class="Apple-style-span" style="border-collapse: collapse;"><span
class="Apple-style-span" style="border-collapse: separate;
font-family: 'Times New Roman'; font-size: medium;"><font
class="Apple-style-span" face="arial"><span
class="Apple-style-span" style="font-size: small;"><br>
</span></font></span></span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span
class="Apple-style-span" style="border-collapse: collapse;"><span
class="Apple-style-span" style="border-collapse: separate;
font-family: 'Times New Roman'; font-size: medium;"><font
class="Apple-style-span" face="arial"><span
class="Apple-style-span" style="font-size: small;">Just
an add... my code works with Metacarta WMS basic as in
geoserver 2.11 printing demo.</span></font></span></span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span
class="Apple-style-span" style="border-collapse: collapse;"><span
class="Apple-style-span" style="border-collapse: separate;
font-family: 'Times New Roman'; font-size: medium;"><font
class="Apple-style-span" face="arial"><span
class="Apple-style-span" style="font-size: small;"><br>
</span></font></span></span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span
class="Apple-style-span" style="border-collapse: collapse;"><span
class="Apple-style-span" style="border-collapse: separate;
font-family: 'Times New Roman'; font-size: medium;"><font
class="Apple-style-span" face="arial"><span
class="Apple-style-span" style="font-size: small;">Thank
you for your attention.</span></font></span></span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span
class="Apple-style-span" style="border-collapse: collapse;"><span
class="Apple-style-span" style="border-collapse: separate;
font-family: 'Times New Roman'; font-size: medium;"><font
class="Apple-style-span" face="arial"><span
class="Apple-style-span" style="font-size: small;">Marco<br>
</span></font>
<pre style="word-wrap: break-word; white-space: pre-wrap;">
</pre>
</span></span></font></div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Alexandre Dubé
Mapgears
<a class="moz-txt-link-abbreviated" href="http://www.mapgears.com">www.mapgears.com</a>
</pre>
</body>
</html>