Thanks Andrea. Something odd in the prj files. I have redone the projection and 
tried again. Everything working normally again.

From: Andrea Aime <[email protected]>
Sent: Friday, 17 April 2020 19:30
To: Phil Scadden <[email protected]>
Cc: Jody Garnett <[email protected]>; GeoServer Mailing List List 
<[email protected]>
Subject: Re: [Geoserver-users] very odd error while trying to change the style.

Hi Phil, the WKT as specified is indeed not valid... the WKT that GeoServer is 
trying to decode is the full string, but the part at the
beginning, in bold, does not belong there:

PROJCS["ESRI PE String = 
PROJCS["NZGD_2000_Transverse_Mercator",GEOGCS["GCS_NZGD_2000",DATUM["D_NZGD_2000",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",1600000.0],PARAMETER["False_Northing",10000000.0],PARAMETER["Central_Meridian",173.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]",
  GEOGCS["NZGD2000",
    DATUM["New Zealand Geodetic Datum 2000",
      SPHEROID["GRS 1980", 6378137.0, 298.257222101, AUTHORITY["EPSG","7019"]],
      TOWGS84[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
      AUTHORITY["EPSG","6167"]],
    PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
    UNIT["degree", 0.017453292519943295],
    AXIS["Geodetic longitude", EAST],
    AXIS["Geodetic latitude", NORTH],
    AUTHORITY["EPSG","4167"]],
  PROJECTION["Transverse_Mercator"],
  PARAMETER["central_meridian", 173.0],
  PARAMETER["latitude_of_origin", 0.0],
  PARAMETER["scale_factor", 0.9996],
  PARAMETER["false_easting", 1600000.0],
  PARAMETER["false_northing", 10000000.0],
  UNIT["m", 1.0],
  AXIS["Easting", EAST],
  AXIS["Northing", NORTH]]
org.opengis.referencing.FactoryException: Error in "PROJCS": Can't parse 
"NZGD_2000_Transverse_Mercator",GEOGCS["GCS_NZGD_2000",DATUM["D_NZGD_2000",SPHEROID["GRS_1980
 (...) 10000000.0],
  UNIT["m", 1.0],
  AXIS["Easting", EAST],
  AXIS["Northing", NORTH]]

Remove it, and the WKT actually parses correctly

Cheers
Andrea


On Fri, Apr 17, 2020 at 3:41 AM Phil Scadden 
<[email protected]<mailto:[email protected]>> wrote:
Rebooting doesn’t fix the problem. Moving to verbose logging shows this warning 
when I log in.
2020-04-17 11:09:17,095 WARN [geoserver.security] - Failed login, user admin 
from 161.65.53.68
But I log in ok. (and I did not log in as user admin).

No error being logged like the one I get when attempting to save. I get the 
error even if trying to save a changed status for “Advertised”.

Think I may have found it. The logs now show a lot errors like below, 
associated with layers with EPSG:2193 – a very common projection. It is these 
layers that I suddenly cant edit (despite being able to do so a couple of days 
ago). I can edit layers which have 4326 or 3031. These are geotiffs originating 
in ArcGis so I will have another go a getting a better projection for them.

2020-04-17 10:44:35,554 WARN [org.geoserver] - Error decode wkt: PROJCS["ESRI 
PE String = 
PROJCS["NZGD_2000_Transverse_Mercator",GEOGCS["GCS_NZGD_2000",DATUM["D_NZGD_2000",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",1600000.0],PARAMETER["False_Northing",10000000.0],PARAMETER["Central_Meridian",173.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]",
  GEOGCS["NZGD2000",
    DATUM["New Zealand Geodetic Datum 2000",
      SPHEROID["GRS 1980", 6378137.0, 298.257222101, AUTHORITY["EPSG","7019"]],
      TOWGS84[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
      AUTHORITY["EPSG","6167"]],
    PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
    UNIT["degree", 0.017453292519943295],
    AXIS["Geodetic longitude", EAST],
    AXIS["Geodetic latitude", NORTH],
    AUTHORITY["EPSG","4167"]],
  PROJECTION["Transverse_Mercator"],
  PARAMETER["central_meridian", 173.0],
  PARAMETER["latitude_of_origin", 0.0],
  PARAMETER["scale_factor", 0.9996],
  PARAMETER["false_easting", 1600000.0],
  PARAMETER["false_northing", 10000000.0],
  UNIT["m", 1.0],
  AXIS["Easting", EAST],
  AXIS["Northing", NORTH]]
org.opengis.referencing.FactoryException: Error in "PROJCS": Can't parse 
"NZGD_2000_Transverse_Mercator",GEOGCS["GCS_NZGD_2000",DATUM["D_NZGD_2000",SPHEROID["GRS_1980
 (...) 10000000.0],
  UNIT["m", 1.0],
  AXIS["Easting", EAST],
  AXIS["Northing", NORTH]]" because "NZGD" is unrecognized.



From: Jody Garnett <[email protected]<mailto:[email protected]>>
Sent: Thursday, 16 April 2020 16:55
To: Phil Scadden <[email protected]<mailto:[email protected]>>
Cc: GeoServer Mailing List List 
<[email protected]<mailto:[email protected]>>
Subject: Re: [Geoserver-users] very odd error while trying to change the style.

That is odd, and not much to go on! Do you want to try turning up the logging 
using of one of the other logging profiles to see if you can get some more 
details?

The error message appears to be due to an API change, is there any chance you 
are mixing and matching components from different GeoServer builds (say using a 
community module?). Or are you using a different version of Java that has not 
been tested enough with GeoServer?

Please try and reproduce the issue with the recent release candidate also.

On Wed, Apr 15, 2020 at 6:51 PM Phil Scadden 
<[email protected]<mailto:[email protected]>> wrote:
When I try to change the style of a raster layer to a valid SLD style that is 
used by many other layers, I have getting an error when I save:
Java.lang.reflect.UndeclaredThrowableException  and it doesn’t save. Doesn’t 
seem related to layer. Nor to a particular style.
Nothing is added to the log file.

Actually, I am struggling to save any change. Tried logging out and in. Disk 
space is fine.
________________________________________________
Ngā mihi, Nā Phil Scadden
Te Aroturuki Matepā Aronuku me te Pūtaiao Raraunga
GNS Science Ltd 764 Cumberland 
St<https://www.google.com/maps/search/764+Cumberland+St?entry=gmail&source=g>, 
Private Bag 1930,
Dunedin, New Zealand Ph +64 3 4799663, 027 3463185

“Whāia te iti kahurangi ki te tūohu koe me he maunga teitei”

Notice: This email and any attachments are confidential and may not be used, 
published or redistributed without the prior written consent of the Institute 
of Geological and Nuclear Sciences Limited (GNS Science). If received in error 
please destroy and immediately notify GNS Science. Do not copy or disclose the 
contents.
_______________________________________________
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]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
--
Jody Garnett
Notice: This email and any attachments are confidential and may not be used, 
published or redistributed without the prior written consent of the Institute 
of Geological and Nuclear Sciences Limited (GNS Science). If received in error 
please destroy and immediately notify GNS Science. Do not copy or disclose the 
contents.
_______________________________________________
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]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/geoserver-users


--

Regards, Andrea Aime

== GeoServer Professional Services from the experts! Visit http://goo.gl/it488V 
for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions 
S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: 
+39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it 
http://twitter.com/geosolutions_it 
------------------------------------------------------- Con riferimento alla 
normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento 
generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza 
inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è 
un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo 
scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, 
ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene 
notizia. This email is intended only for the person or entity to which it is 
addressed and may contain information that is privileged, confidential or 
otherwise protected from disclosure. We remind that - as provided by European 
Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or 
the information herein by anyone other than the intended recipient is 
prohibited. If you have received this email by mistake, please notify us 
immediately by telephone or e-mail.

Notice: This email and any attachments are confidential and may not be used, 
published or redistributed without the prior written consent of the Institute 
of Geological and Nuclear Sciences Limited (GNS Science). If received in error 
please destroy and immediately notify GNS Science. Do not copy or disclose the 
contents.
_______________________________________________
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

Reply via email to