Hi Andrea, thanks for your answer !
Le 09/01/2019 à 09:43, Andrea Aime a écrit :
This is like saying "If I go to work by car or bike everything works,
but using the train, something breaks, any idea what might be causing
this?".
The code writing out the format is very different in these three
formats, PNG writes using Java2D, PDF using iText and SVG using Batik.
I gave a stack trace, so I feel I did a little bit more than that...
Making a guess, maybe the style is pointing to an image that cannot be
located, and SVG will throw an NPE instead
of silently skipping it?
The png files are there (I checked them all, they were not many) and are
rendered fine with the other encoders.
Or, if this is the actual code (lines number
might not match, but it seems they do) it could be
that for some reason Batik is not finding a PNG encoder (the writer
variable), but I would not know why or how:
https://github.com/apache/batik/blob/trunk/batik-svggen/src/main/java/org/apache/batik/svggen/ImageHandlerBase64Encoder.java#L152
Maybe, but this is definitively beyond my knowledge.
This would need someone running a debugger inside the Batik encoding
(and possibly initialization of that registry) and figure out
what happened. A first step would be to open a bug report on Jira with
reproducible steps (including data and style needed).
Also, make sure you've tried the generation on the latest stable version
(2.14.1) as we have been upgrading Batik a few times recently.
Yes, I'll do this ASAP.
I'll first upgrade to 2.14.1 to make sure this is not something that has
already been fixed.
Thanks for your help !
Regards
--
Arnaud
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users