Hi Moritz,

for me the error is gone in 2.25.1, so please try updating.

Regards
Daniel

From: Maneke, Moritz <moritz.man...@gis-consult.de>
Sent: Dienstag, 18. Juni 2024 08:36
To: Jody Garnett <jody.garn...@gmail.com>; Calliess Daniel Ing. 
<daniel.calli...@stadt-salzburg.at>
Cc: geoserver-users <geoserver-users@lists.sourceforge.net>
Subject: [EXTERN!]: AW: [Geoserver-users] WMS broken after GeoServer Update 
(SAXException)





________________________________


Der Mailanhang wurde automatisiert auf Sicherheitsrisiken geprueft, etwaige 
Schadsoftware wurde aus dem Dokument (Mail und Beilagen) entfernt. (Beispiel: 
enthaltene Links zu Webseiten, aktive Inhalte wie z.B.: Makros wurden entfernt)!
Es wurden jedoch keine Anhaenge entfernt!





Bei Fragen wenden Sie sich bitte an den Helpdesk DW 4000 mail: 
helpd...@stadt-salzburg.at<mailto:helpd...@stadt-salzburg.at>
CP Sandblast



________________________________



Hello everybody,

i also encountered those errors when upgrading from 2.20.4 to 2.25.0
From my observations the error occurs when using extensions that contain the 
xercesImpl-*.jar library, like Printing or GeoFence.

The error can very easily be reproduced by running the official docker image 
plus printing extension:

docker run -it -p 8085:8080 --env INSTALL_EXTENSIONS=true --env 
STABLE_EXTENSIONS="printing" docker.osgeo.org/geoserver:2.25.0

And then clicking on any layer preview.

Regards
Moritz


Mit freundlichen Grüßen
i.A.
Moritz Maneke
_______________________________________________________
Anwendungsentwicklung
GIS Consult GmbH,
Gesellschaft für angewandte geographische Informationssysteme
Schultenbusch 3, 45721 Haltern am See
Telefon: +49 2364 92 18 68
E-Mail: moritz.man...@gis-consult.de<mailto:moritz.man...@gis-consult.de>
Datenschutzerklärung<https://www.gis-consult.de/datenschutzerklaerung/>
Geschäftsführer: Dietmar Hauling, Thomas Hermes, Christian Vogt
Handelsreg.: Gelsenkirchen HRB 5780
[cid:image001.png@01DAC197.A5D345C0]<https://www.facebook.com/gisconsultgmbh>[Ein
 Bild, das Grafiken, Symbol, Farbigkeit, Reihe enthält.  Automatisch generierte 
Beschreibung]<https://www.xing.com/pages/gis-consult-gmbh> [Ein Bild, das Logo, 
Symbol, Electric Blue (Farbe), Grafiken enthält.  Automatisch generierte 
Beschreibung] <https://de.linkedin.com/company/gis-consult-gmbh>

Von: Jody Garnett <jody.garn...@gmail.com<mailto:jody.garn...@gmail.com>>
Gesendet: Montag, 17. Juni 2024 18:25
An: Calliess Daniel Ing. 
<daniel.calli...@stadt-salzburg.at<mailto:daniel.calli...@stadt-salzburg.at>>
Cc: geoserver-users 
<geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>>
Betreff: Re: [Geoserver-users] WMS broken after GeoServer Update (SAXException)

Out of curiosity can you share the SLD file that did not validate? I am curious 
if it had anything unusual and/or missing.

I am sorry about the "Entity resolution disallowed for null" message not being 
helpful, when I wrote that I assumed every external entity would have a name - 
but found out later that some things like DTD Entities do not have a name.

What version of Java are you using?
--
Jody Garnett


On Apr 22, 2024 at 6:00:29 AM, Calliess Daniel Ing. 
<daniel.calli...@stadt-salzburg.at<mailto:daniel.calli...@stadt-salzburg.at>> 
wrote:
Hi,

I updated my GeoServer (Tomcat 9/Windows Server) from 2.24.2 to 2.25.0 and now 
I can't preview WMS layers. The error message is: 
"java.lang.reflect.UndeclaredThrowableExceptionorg.xml.sax.SAXException: Entity 
resolution disallowed for null". The same message is shown when I try to 
validate an SLD stylesheet. I copied the full stack trace to a file and 
attached it to this message. I also reverted back to the data dir included in 
the 2.25.0 release and can reproduce the error f.e. with the 'point' style.

I now found out that when I'm starting GeoServer with the 
-DENTITY_RESOLUTION_ALLOWLIST=* parameter, the error is gone. Although this 
parameter shouldn't be necessary because the styles are only containing 
references to www.opengis.net<http://www.opengis.net> and 
www.w3.org<http://www.w3.org> which are in the default list of allowed domains 
for entity expansion according to the 
documentation<https://docs.geoserver.org/latest/en/user/production/config.html#production-config-external-entities>.

The geoserver log shows a lot of "WARN   [geotools.xsd] - Sax parser property 
'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' not 
recognized.  Xerces version is incompatible." messages. Might there be a 
connection to the above issue?

Am I doing something wrong?

Thank you and best regards
Daniel
_______________________________________________
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


Geoserver-users@lists.sourceforge.net<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
_______________________________________________
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


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

Reply via email to