Tuesday 4 February 2020

javascript - Error occurred decoding the EPSG code EPSG%3A3857 in GeoServer


My application is throwing the NoSuchAuthorityCodeException error although the layer preview in geoserver is working perfectly, they are not visualizing in the app. I have just checked the logs and found this error



org.geoserver.platform.ServiceException: Error occurred decoding the espg code EPSG%3A3857
at org.geoserver.wms.map.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:266)
at org.geoserver.wms.map.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:90)
at org.geoserver.ows.Dispatcher.parseRequestKVP(Dispatcher.java:1545)
at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:692)
at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:255)

Caused by


Caused by: org.opengis.referencing.NoSuchAuthorityCodeException: No authority was defined for code "EPSG%3A3857". Did you forget "AUTHORITY:NUMBER"?
at org.geotools.referencing.factory.ManyAuthoritiesFactory.noSuchAuthority(ManyAuthoritiesFactory.java:478)

at org.geotools.referencing.factory.ManyAuthoritiesFactory.getAuthorityFactory(ManyAuthoritiesFactory.java:457)
at org.geotools.referencing.factory.ManyAuthoritiesFactory.getCRSAuthorityFactory(ManyAuthoritiesFactory.java:532)
at org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:778)
at org.geotools.referencing.factory.ThreadedAuthorityFactory.createCoordinateReferenceSystem(ThreadedAuthorityFactory.java:635)
at org.geotools.referencing.DefaultAuthorityFactory.createCoordinateReferenceSystem(DefaultAuthorityFactory.java:176)
at org.geotools.referencing.CRS.decode(CRS.java:517)
at org.geotools.referencing.CRS.decode(CRS.java:433)
at org.geoserver.wms.map.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:258)
... 108 more


What could be the problem?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...