[Geoserver-devel] [JIRA] (GEOS-10240) GetCoverageMultipartEncodingTest is missconfigured with Wcs111FactoryImpl

Jody Garnett created an issue

GeoServer / TaskGEOS-10240

GetCoverageMultipartEncodingTest is missconfigured with Wcs111FactoryImpl

Issue Type:

TaskTask

Affects Versions:

2.21-RC

Assignee:

Unassigned

Components:

WCS

Created:

18/Sep/21 1:51 AM

Priority:

MediumMedium

Reporter:

Jody Garnett

Not sure if this is just poor design org.geoserver.wcs.GetCoverageMultipartEncodingTest is misconfigured with impl.Wcs111FactoryImpl:

[INFO] Running org.geoserver.wcs.GetCoverageMultipartEncodingTest
java.lang.ClassCastException: net.opengis.wcs11.impl.Wcs111FactoryImpl cannot be cast to net.opengis.wcs11.Wcs11Factory
	at net.opengis.wcs11.impl.Wcs11FactoryImpl.init(Wcs11FactoryImpl.java:42)
	at net.opengis.wcs11.Wcs11Factory.<clinit>(Wcs11Factory.java:26)
	at net.opengis.wcs11.impl.Wcs11PackageImpl.<init>(Wcs11PackageImpl.java:315)
	at net.opengis.wcs11.impl.Wcs11PackageImpl.init(Wcs11PackageImpl.java:341)
	at net.opengis.wcs11.Wcs11Package.<clinit>(Wcs11Package.java:182)
	at net.opengis.wcs11.Wcs11Package$Literals.<clinit>(Wcs11Package.java:3587)
	at net.opengis.wcs11.impl.GetCoverageTypeImpl.eStaticClass(GetCoverageTypeImpl.java:99)
	at org.eclipse.emf.ecore.impl.EObjectImpl.eClass(EObjectImpl.java:263)
	at org.geotools.xsd.EMFUtils.feature(EMFUtils.java:258)
	at org.geotools.xsd.EMFUtils.has(EMFUtils.java:49)
	at org.geoserver.ows.kvp.EMFKvpRequestReader.read(EMFKvpRequestReader.java:82)
	at org.geoserver.wcs.kvp.GetCoverageRequestReader.read(GetCoverageRequestReader.java:35)
	at org.geoserver.ows.Dispatcher.parseRequestKVP(Dispatcher.java:1511)
	at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:684)
	at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:261)
	at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:177)
	at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:52)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
	at org.geoserver.test.GeoServerSystemTestSupport$2.service(GeoServerSystemTestSupport.java:1642)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
	at org.springframework.mock.web.MockFilterChain$ServletFilterProxy.doFilter(MockFilterChain.java:167)
	at org.springframework.mock.web.MockFilterChain.doFilter(MockFilterChain.java:134)
	at org.geoserver.test.GeoServerSystemTestSupport.dispatch(GeoServerSystemTestSupport.java:1665)
	at org.geoserver.test.GeoServerSystemTestSupport.dispatch(GeoServerSystemTestSupport.java:1584)
	at org.geoserver.test.GeoServerSystemTestSupport.getAsServletResponse(GeoServerSystemTestSupport.java:1050)
	at org.geoserver.test.GeoServerSystemTestSupport.getAsServletResponse(GeoServerSystemTestSupport.java:1033)
	at org.geoserver.wcs.GetCoverageMultipartEncodingTest.testKvpBasic(GetCoverageMultipartEncodingTest.java:42)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)

If this ClassCastException exception is indeed expected please catch it responsibility and do not send a stack trace to build output.

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#100177-sha1:149c709)

Atlassian logo