Hi Roger,
the forwardHeaders parameter should be optional, but apparently is not (I
will check and provide a fix).
For the moment, could you try adding:


"forwardHeaders": []

to the root of your spec?

Mauro

2014-03-17 20:50 GMT+01:00 Roger Bedell <[email protected]>:

> Simone asked me to bring this up on the list instead of direct.
>
> Using the latest source from github, (
> https://github.com/geosolutions-it/mapfish-print)
> I built a war and put it on our server.
>
> Using this url:
> http://204.62.18.181:8090/print-servlet-2.0-SNAPSHOT_GS/
>
> you get the test screen.
>
> Paste this text:
>
>             {
>         layout: 'Letter portrait',
>         title: 'A simple example',
>         srs: 'EPSG:900913',
>         units: 'meters',
>         layers: [
>             {
>                 type: 'WMS',
>                 format: 'image/png',
>                 layers: ['ogi:oklakes','ogi:quad100','ogi:okzip'],
>                 baseURL: 'http://204.62.18.181/geoserver/wms',
>                 customParams: {TRANSPARENT:true}
>             }
>         ],
>         pages: [
>             {
>                 center: [-10964969.841611111, 4230671.17964707],
>                 scale: 1000000,
>                 dpi: 190,
>                 mapTitle: "OKMaps",
>                 comment: "",
>                 data: [
>                     {id:1, name: 'blah', icon: 'icon_pan'},
>                     {id:2, name: 'blip', icon: 'icon_zoomin'}
>                 ]
>             }
>         ]
>     }
> Click "Get Print" and you get an error:
> org.mapfish.print.JsonMissingException: attribute [spec.forwardHeaders]
> missing
>
> I also tried this with the main trunk of mapfish-print 2.0, and it works
> fine.
>
> Thanks!
> Roger
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>


-- 
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==

Dott. Mauro Bartolomeoli
@mauro_bart
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to