<div dir="ltr">I was trying to reproduce the code from hereĀ <a href="https://github.com/Geomatys/geotoolkit/blob/master/demos/geotk-demo-samples/src/main/java/org/geotoolkit/pending/demo/clients/wmts/WMTSClientDemo.java">https://github.com/Geomatys/geotoolkit/blob/master/demos/geotk-demo-samples/src/main/java/org/geotoolkit/pending/demo/clients/wmts/WMTSClientDemo.java</a> however I hit problems when initting the WebMapTileClient class.<div><br></div><div>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.</div><div><br></div><div>-- stacktrace snip --</div><div><br></div><font face="monospace, monospace">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)</font><div><br></div><div>-- snip --<br><div><div><br></div><div>I am calling the constructor like this:</div><div><br></div><div>server = new WebMapTileClient(new URL(serviceUrl), WMTSVersion.v100);<br></div><div><br></div><div>where serviceUrl is "<a href="http://lle.gov.wales/services/tiles/lidar/wmts">http://lle.gov.wales/services/tiles/lidar/wmts</a>"</div><div><br></div><div>Cheers,</div><div><br></div><div>Seb</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><p style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7.5pt;line-height:normal;font-family:arial,sans-serif;color:gray;text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;font-stretch:normal;background-color:rgb(255,255,255)"><b>Sebastian Clarke<br>Software Developer<br>Environment Systems</b><br>Tel: +44 (0) 1970 626688<br><a href="http://www.envsys.co.uk/" target="_blank">www.envsys.co.uk</a></p><p style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7.5pt;line-height:normal;font-family:arial,sans-serif;color:gray;text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;font-stretch:normal;background-color:rgb(255,255,255)"><br></p></div></div>
</div></div></div>