[geotk] Issue with WMTS WebMapTileClient

Sebastian Clarke sebastian.clarke at envsys.co.uk
Mon Dec 21 06:50:44 PST 2015


I was trying to reproduce the code from here
https://github.com/Geomatys/geotoolkit/blob/master/demos/geotk-demo-samples/src/main/java/org/geotoolkit/pending/demo/clients/wmts/WMTSClientDemo.java
however I hit problems when initting the WebMapTileClient class.

I'm not sure whether this might be some library incompatibility, or plain
old operator error (as this is my first time using this). I have pasted the
stack trace below, along with the relevant line from my test class which
causes it. Any help would be gratefully appreciated.

-- stacktrace snip --

java.lang.NoSuchMethodError:
org.opengis.parameter.ParameterDescriptor.getName()Lorg/opengis/metadata/Identifier;
at
org.geotoolkit.client.AbstractClientFactory.createFixedIdentifier(AbstractClientFactory.java:84)
at
org.geotoolkit.wmts.WMTSClientFactory.<clinit>(WMTSClientFactory.java:59)
at org.geotoolkit.wmts.WebMapTileClient.<init>(WebMapTileClient.java:140)
at org.geotoolkit.wmts.WebMapTileClient.<init>(WebMapTileClient.java:127)
at org.geotoolkit.wmts.WebMapTileClient.<init>(WebMapTileClient.java:104)
at eu.cobwebproject.qa.lbs.WMTSReader.<init>(WMTSReader.java:30) at
eu.cobwebproject.qa.lbs.WMTSReaderTest.setUp(WMTSReaderTest.java:20) at
junit.framework.TestCase.runBare(TestCase.java:139) at
junit.framework.TestResult$1.protect(TestResult.java:122) at
junit.framework.TestResult.runProtected(TestResult.java:142) at
junit.framework.TestResult.run(TestResult.java:125) at
junit.framework.TestCase.run(TestCase.java:129) at
junit.framework.TestSuite.runTest(TestSuite.java:252) at
junit.framework.TestSuite.run(TestSuite.java:247) at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
at
org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:86)
at
org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:49)
at
org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:69)
at
org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606) at
org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at
org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at
org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
at
org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
at com.sun.proxy.$Proxy2.processTestClass(Unknown Source) at
org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606) at
org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at
org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at
org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:360)
at
org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

-- snip --

I am calling the constructor like this:

server = new WebMapTileClient(new URL(serviceUrl), WMTSVersion.v100);

where serviceUrl is "http://lle.gov.wales/services/tiles/lidar/wmts"

Cheers,

Seb

-- 



*Sebastian ClarkeSoftware DeveloperEnvironment Systems*
Tel: +44 (0) 1970 626688
www.envsys.co.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geotoolkit/attachments/20151221/624cd7f8/attachment.html>


More information about the Geotoolkit mailing list