[Geoserver-devel] [JIRA] (GEOS-10120) Validating a CSS style causes Geoserver error

Jonathan Ball created an issue

GeoServer / BugGEOS-10120

Validating a CSS style causes Geoserver error

Issue Type:

BugBug

Affects Versions:

2.19.0

Assignee:

Unassigned

Components:

CSS

Created:

22/Jun/21 6:44 PM

Environment:

Debian GNU/Linux 10 (buster)

Priority:

MediumMedium

Reporter:

Jonathan Ball

Pressing the validate button on the styles page for a CSS causes the “Oops something went wrong” screen. I have seen a couple of other historical reports on this relating to multiple copies of the asm jar. I have checked and after installing the CSS extension I only have one of each of the following:

{{ asm-util-6.2.1.jar
asm-6.2.1.jar
parboiled-core-1.2.0.jar
asm-analysis-6.2.1.jar
parboiled-java-1.2.0.jar
gt-brewer-25-SNAPSHOT.jar
gs-css-2.19-SNAPSHOT.jar
gt-css-25-SNAPSHOT.jar
asm-tree-6.2.1.jar }}

The caused by sections of the error are as follows:

> Caused by: java.lang.reflect.InvocationTargetException
> at jdk.internal.reflect.GeneratedMethodAccessor313.invoke(Unknown Source)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
> … 122 more
> Caused by: java.lang.NoSuchMethodError: ‘java.util.Map org.geotools.styling.Rule.getOptions()’
> at org.geotools.brewer.styling.builder.RuleBuilder.build(RuleBuilder.java:190)
> at org.geotools.brewer.styling.builder.FeatureTypeStyleBuilder.build(FeatureTypeStyleBuilder.java:162)
> at org.geotools.brewer.styling.builder.StyleBuilder.build(StyleBuilder.java:95)
> at org.geotools.styling.css.CssTranslator.translate(CssTranslator.java:333)
> at org.geoserver.community.css.web.CssHandler.convertToSLD(CssHandler.java:150)
> at org.geoserver.community.css.web.CssHandler.validate(CssHandler.java:167)
> at org.geoserver.wms.web.data.AbstractStylePage.validateSLD(AbstractStylePage.java:687)
> at org.geoserver.wms.web.data.AbstractStylePage$14.onClick(AbstractStylePage.java:650)
> at org.geoserver.web.wicket.GeoServerAjaxFormLink.onSubmit(GeoServerAjaxFormLink.java:45)
> at org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:111)
> at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$AjaxFormSubmitter.onSubmit(AjaxFormSubmitBehavior.java:215)
> at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:787)
> at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:171)
> at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:155)
> at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:601)

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100166-sha1:53542da)

Atlassian logo