We have come up with a fix, and possibly source of the problem.
We had the following layers.properties:
*.*.r=*
*.*.w=ROLE_ADMINISTRATOR
mode=MIXED
But we had disabled ACEGI - we use a different authentication scheme.
When we put *.*.w=*, the problem disappear.
Even though it was a quick fix, it shouldn't cause a data-corrupting crash.
Kind regards
Ugland IT Group AS
Thomas Jahnsen
Developer
Tel: + 47 67 59 28 23
E-mail: thja@anonymised.com
UGLAND IT GROUP AS, Strandveien 13, Pb. 58, 1324 Lysaker, org.nr. 971 058 773
Tlf: +47 67 59 28 10, fax: +47 67 59 28 11, email: firmapost@anonymised.com, internet: www.uglandit.com
Date: Fri, 13 Feb 2009 09:53:45 +0100
From: Thomas Jahnsen <thja@anonymised.com>
Subject: [Geoserver-users] Apply settings crashes in GeoServer 1.7.2
To: "'geoserver-users@lists.sourceforge.net'"
<geoserver-users@lists.sourceforge.net>
Message-ID:
<201931EA054F1746A294E8E5EA274A6071E251B533@anonymised.com>
Content-Type: text/plain; charset="us-ascii"Hello
We have come up with a problem in our GeoServer installation, version
1.7.2. Whenever we hit 'Apply', the program crashes with a
RunTimeException. After this happens, all the WMS BaseLayers disappear
- if we see the Map Demo page, they are gone. If we hit 'Save', they
disappear from services.xml. If we hit 'Load', they reappar.I suspect there are some corruption in the data, but have been unable
to determine what it is. The location of the exception and the result
suggests there is something wrong with the WMS base layers. I have
looked at the source code, but cannot find a cure.GeoServer retrieves data fine, and we can do changes directly in the
XML in the data directory.We run on Windows Server 2003 R2.
The stack trace:
java.lang.RuntimeException: Unknown resource type class $Proxy9
at
org.geoserver.security.SecureCatalogImpl.checkAccess(SecureCatalogImpl.
java:323)
at
org.geoserver.security.SecureCatalogImpl.getResourceByName(SecureCatalo
gImpl.java:239)
at
org.vfny.geoserver.global.WMS.setBaseMapLayers(WMS.java:469)
at org.vfny.geoserver.global.WMS.load(WMS.java:236)
at
org.vfny.geoserver.action.UpdateGSAction.updateGeoserver(UpdateGSAction
.java:81)
at
org.vfny.geoserver.action.UpdateGSAction.execute(UpdateGSAction.java:48
)
at
org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:101)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestP
rocessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
:236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
ationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terChain.java:206)
at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetChara
cterEncodingFilter.java:108)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
ationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terChain.java:206)
at
org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
ationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terChain.java:206)
at
org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.ja
va:163)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
ationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terChain.java:206)
at
org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
ationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terChain.java:206)
at
com.uitg.filters.AuthLogFilter.doFilter(AuthLogFilter.java:107)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
ationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:8
45)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
(Http11Protocol.java:583)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)I hope some of you can help us with this problem.