[Geoserver-devel] [JIRA] (GEOS-9866) S3 Geotiff Plugin Stopped Working

Andy Arismendi created an issue

GeoServer / BugGEOS-9866

S3 Geotiff Plugin Stopped Working

Issue Type:

BugBug

Affects Versions:

2.18.1

Assignee:

Unassigned

Components:

Community modules

Created:

19/Jan/21 8:06 PM

Priority:

MediumMedium

Reporter:

Andy Arismendi

Using the current geoserver-2.18.x-latest-war.zip as of 18JAN21 the S3 geotiff extension appears to have stopped working. The error below appears to complain it can’t find a ehcache class. ehcache-3.4.0.jar is present in tomcat/webapps/geoserver/WEB-INF/lib.

It used to work with:
version = 2.18-SNAPSHOT
git revision = cf16e5a6c0f14b802d6d665b1d9d3f8c1aa2ed14
git branch = origin/2.18.x
build date = 15-Dec-2020 04:11
geotools version = 24-SNAPSHOT
geotools revision = ab11cbbec4b5f20c67412c8ba11f6c6dea3b1fcd
geowebcache version = 1.18-SNAPSHOT
geowebcache revision = 4ac71fc3bc6848927c8a4531ceb37de93c04a426/4ac71
hudson build = -1

Not working in:
version = 2.18-SNAPSHOT
git revision = d55bf28215089c5c69b94f17dc97aa4c44936cad
git branch = origin/2.18.x
build date = 15-Jan-2021 04:11
geotools version = 24-SNAPSHOT
geotools revision = e82df60dc5d206908f2d691bd3df4096515cbb7b
geowebcache version = 1.18-SNAPSHOT
geowebcache revision = a4571508b2aae66c899d2d95c0ef873294f96853/a4571
hudson build = -1

To reproduce:

This results in a WicketRuntimeException with the stack trace below:

Caused by: java.lang.NoClassDefFoundError: net/sf/ehcache/constructs/blocking/CacheEntryFactory
at org.geotools.s3.S3ImageInputStreamImpl.<init>(S3ImageInputStreamImpl.java:79)
at org.geotools.s3.geotiff.S3GeoTiffFormat.getReader(S3GeoTiffFormat.java:112)
at org.geotools.s3.geotiff.S3GeoTiffFormat.getReader(S3GeoTiffFormat.java:43)
at org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1566)
at org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1511)
at org.geoserver.catalog.impl.CoverageStoreInfoImpl.getGridCoverageReader(CoverageStoreInfoImpl.java:53)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.geoserver.catalog.impl.ModificationProxy.invoke(ModificationProxy.java:127)
at com.sun.proxy.$Proxy36.getGridCoverageReader(Unknown Source)
at org.geoserver.web.data.layer.NewLayerPageProvider.getItemsInternal(NewLayerPageProvider.java:86)
at org.geoserver.web.data.layer.NewLayerPageProvider.getItems(NewLayerPageProvider.java:47)
at org.geoserver.web.wicket.GeoServerDataProvider.getFilteredItems(GeoServerDataProvider.java:190)
at org.geoserver.web.data.layer.NewLayerPageProvider.getFilteredItems(NewLayerPageProvider.java:186)
at org.geoserver.web.wicket.GeoServerDataProvider.size(GeoServerDataProvider.java:208)
at org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.updateMatched(GeoServerTablePanel.java:664)
at org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.<init>(GeoServerTablePanel.java:659)
at org.geoserver.web.wicket.GeoServerTablePanel.<init>(GeoServerTablePanel.java:237)
at org.geoserver.web.wicket.GeoServerTablePanel.<init>(GeoServerTablePanel.java:106)
at org.geoserver.web.data.layer.NewLayerPage$1.<init>(NewLayerPage.java:99)
at org.geoserver.web.data.layer.NewLayerPage.<init>(NewLayerPage.java:98)
at org.geoserver.web.data.store.CoverageStoreNewPage.onSuccessfulSave(CoverageStoreNewPage.java:86)
at org.geoserver.web.data.store.CoverageStoreNewPage.onSave(CoverageStoreNewPage.java:71)
at org.geoserver.web.data.store.AbstractCoverageStorePage$1.onSubmit(AbstractCoverageStorePage.java:141)
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.delegateSubmit(Form.java:1309)
at org.apache.wicket.markup.html.form.Form.process(Form.java:976)
at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:797)
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)
… 119 more
Caused by: java.lang.ClassNotFoundException: net.sf.ehcache.constructs.blocking.CacheEntryFactory
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1365)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1188)
… 153 more

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#100154-sha1:34dd3c4)

Atlassian logo