[Geoserver-users] Printing module

Hello again,

First, thank everyone for their help.

I keep trying to use the print module but the create.json endpoint fails.

com.itextpdf.text.DocumentException: org.mapfish.print.InvalidJsonValueException: spec.layers[0].baseURL has an invalid value: https://…/ows?SERVICE=WMS& (java.util.HashMap cannot be cast to org.mapfish.print.config.HostMatcher)

A little context:
1.- I am using version 2.24.0 of Geoserver with Postgis Database (OSM)
2.- I am using docker-compose and nginx with proxy for GS and https
3.- I included the commons-httpclient-3.1.jar library to solve initial problems.
4.-https:…/geoserver/pdf/info.json works and includes this url:
“printURL”: “https://…/geoserver/pdf/print.pdf”,
“createURL”: “https://…/geoserver/pdf/create.json”
5.- I tried many host entries in Printing/config.yaml.

Somebody could help me?

Greetings

We did a lot of changes recently to the library used by the print module, and while there some tests there are not a lot of tests in place so we depend on public feedback.

What do you mean about initial problems and http client?1

(I do not use the print module myself but I do try and check everything is packaged okay)

···


Jody Garnett

Hi,

Well i’ll try to use http client.

Wich updated version are you talking about?

Regards

···

El 24/2/24 a las 22:58, Jody Garnett escribió:

We did a lot of changes recently to the library used by the print module, and while there some tests there are not a lot of tests in place so we depend on public feedback.

What do you mean about initial problems and http client?1

(I do not use the print module myself but I do try and check everything is packaged okay)


Jody Garnett

On Sat, Feb 24, 2024 at 12:57 PM Sailing Control - Kiko <kiko.de.carlos@anonymised.com> wrote:

Hello again,

First, thank everyone for their help.

I keep trying to use the print module but the create.json endpoint fails.

com.itextpdf.text.DocumentException: org.mapfish.print.InvalidJsonValueException: spec.layers[0].baseURL has an invalid value: https://…/ows?SERVICE=WMS& (java.util.HashMap cannot be cast to org.mapfish.print.config.HostMatcher)

A little context:
1.- I am using version 2.24.0 of Geoserver with Postgis Database (OSM)
2.- I am using docker-compose and nginx with proxy for GS and https
3.- I included the commons-httpclient-3.1.jar library to solve initial problems.
4.-https:…/geoserver/pdf/info.json works and includes this url:
“printURL”: “https://…/geoserver/pdf/print.pdf”,
“createURL”: “https://…/geoserver/pdf/create.json”
5.- I tried many host entries in Printing/config.yaml.

Somebody could help me?

Greetings


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users