Hi David,
Yup, that fixed that that problem (not what I expected given the error
though).
However, now that I've added it, I'm getting:
28 Jan 15:37:19 ERROR [org.mapfish.print.servlet.BaseMapServlet] - Error
while generating PDF
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at
org.mapfish.print.map.readers.TmsMapReader.<init>(TmsMapReader.java:48)
at
org.mapfish.print.map.readers.TmsMapReader.create(TmsMapReader.java:86)
at org.mapfish.print.map.readers.MapReader.create(MapReader.java:58)
at
org.mapfish.print.map.MapChunkDrawer.renderImpl(MapChunkDrawer.java:98)
Again, the server can't actually access that layer itself, but I'd expect a
timeout (and/or just a blank background) which doesn't seem to be what I'm
getting.
Any thoughts?
Thanks,
Jonathan
On 28 January 2013 15:03, David Winslow <[email protected]> wrote:
> Have you added the tile service to the whitelist in the printing
> config.yaml?
>
> - !dnsMatch
> host: www.osmgb.org.uk
>
> --
> David Winslow
> OpenGeo - http://opengeo.org/
>
>
>
> On Mon, Jan 28, 2013 at 7:47 AM, Jonathan Moules <
> [email protected]> wrote:
>
>> Hi list,
>> I just wanted to check something before I report it as a bug (I suspect
>> it is, but best to check).
>>
>> I'm trying to use MapFish to create a pdf. The baselayer is coming from
>> an external TileMapService.
>> While my web-browser can access this TMS, the web-server itself cannot
>> (thus MapFish can't render that layer).
>>
>> The problem is - the error GeoServer console is giving is implying that
>> the TMS URL itself is at fault:
>>
>> 28 Jan 12:40:49 ERROR [org.mapfish.print.servlet.BaseMapServlet] - Error
>> while generating PDF
>> org.mapfish.print.InvalidJsonValueException: spec.layers[0].baseURL has
>> an invalid value:
>> http://www.osmgb.org.uk/ogc/tms27700/(spec.layers[0].baseURL has an invalid
>> value:
>> http://www.osmgb.org.uk/ogc/tms27700/)
>> 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.TmsMapReader.<init>(TmsMapReader.java:42)
>> at
>> org.mapfish.print.map.readers.TmsMapReader.create(TmsMapReader.java:86)
>>
>>
>> Has anyone else had any problems getting MapFish to serve a OpenLayers
>> TMS? Or is this because my server can't get to that URL (in which case, it
>> would normally time out so... ?)
>>
>> If someone wants to test this, there's also a public web-mercator TMS at
>> the same address; more information here:
>> http://www.osmgb.org.uk/osm-gb-wiki/index.php/Tile_Service
>>
>> Cheers,
>> Jonathan
>>
>>
>> This transmission is intended for the named addressee(s) only and may
>> contain sensitive or protectively marked material up to RESTRICTED and
>> should be handled accordingly. Unless you are the named addressee (or
>> authorised to receive it for the addressee) you may not copy or use it, or
>> disclose it to anyone else. If you have received this transmission in error
>> please notify the sender immediately. All email traffic sent to or from us,
>> including without limitation all GCSX traffic, may be subject to recording
>> and/or monitoring in accordance with relevant legislation.
>>
>>
>> ------------------------------------------------------------------------------
>> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
>> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
>> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
>> MVPs and experts. ON SALE this month only -- learn more at:
>> http://p.sf.net/sfu/learnnow-d2d
>> ________________________
_______________________
>> Geoserver-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>>
>
This transmission is intended for the named addressee(s) only and may contain
sensitive or protectively marked material up to RESTRICTED and should be
handled accordingly. Unless you are the named addressee (or authorised to
receive it for the addressee) you may not copy or use it, or disclose it to
anyone else. If you have received this transmission in error please notify the
sender immediately. All email traffic sent to or from us, including without
limitation all GCSX traffic, may be subject to recording and/or monitoring in
accordance with relevant legislation.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users