[Geoserver-users] DATA_DIR migration from 2.3.1 to 2.7. EncryptingUrlParams error.

Hello,

I’m migrating Geoserver from 2.3.1 to 2.7.
I created a Tomcat instance with Geoserver 2.7 and I’m pointing the new Geoserver to a copy of the old DATA_DIR.
I’m using TOMCAT 7.0.5 and JDK 1.7. I’ve installed the compatible unlimited policy JAR files.

When I try GeoServer I got the folowing 500 error.

exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute __ICRYPT

I discovered that if I disable on <DATA_DIR>/security/config.xml, the error stops.

Also, the stores aren’t recognized by GeoServer, but when I remove “crypt2:” of the password at datastore.xml, the stores appears.

I know the problem is related to encryption method, but I don’t know what to do.


JÔNATAS CASTRO
+55 (21) 99109-7575

Hi Jonatas

I think you switched from the limited to the unlimited policy files. As a consequence, Geoserver tries to use better algorithms but your key store still contains the limited keys.

Try the following

  1. stop GeoServer

  2. make a backup of GEOSERVER_DATA_DIR/security/geoserver.jceks

  3. remove GEOSERVER_DATA_DIR/security/geoserver.jceks

  4. restart GeoServer

The geoserver.jceks should be recreated.

Reenter the password(s) for your data store(s) and save them.

Hope this helps
Cheers
Christian

···

On Tue, May 12, 2015 at 9:53 PM, Jônatas Castro <jonatascastro12@anonymised.com> wrote:

Hello,

I’m migrating Geoserver from 2.3.1 to 2.7.
I created a Tomcat instance with Geoserver 2.7 and I’m pointing the new Geoserver to a copy of the old DATA_DIR.
I’m using TOMCAT 7.0.5 and JDK 1.7. I’ve installed the compatible unlimited policy JAR files.

When I try GeoServer I got the folowing 500 error.

exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute __ICRYPT

I discovered that if I disable on <DATA_DIR>/security/config.xml, the error stops.

Also, the stores aren’t recognized by GeoServer, but when I remove “crypt2:” of the password at datastore.xml, the stores appears.

I know the problem is related to encryption method, but I don’t know what to do.


JÔNATAS CASTRO
+55 (21) 99109-7575


One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

DI Christian Mueller MSc (GIS), MSc (IT-Security)
OSS Open Source Solutions GmbH