Hi Diego, first of all, is there any specific reason why you are using the SNAPSHOT version of the marmotta client? Version 3.1.0-incubating has been released quite some time ago so please try out this version first.
It that dos not help, please check your dependency tree, maybe the version of httpclient is overwritten somewhere else (the API of httpclient changed in 4.3, see [1]) Best, Jakob [1] https://issues.apache.org/jira/browse/MARMOTTA-406 On 9 March 2014 04:16, Diego Benna <diego.be...@gmail.com> wrote: > Dear community > > I would like to ask help. I have marmotta 3.1. When I had Marmotta 3.0 I had > no problems found. > When I run this code: > > ClientConfiguration configuration = new > ClientConfiguration("http://localhost:8080/marmotta/"); > ImportClient importClient = new ImportClient(configuration); > > I get this error: > > Exception in thread "main" java.lang.NoSuchMethodError: > org.apache.http.client.methods.HttpGet.releaseConnection()V > at > org.apache.marmotta.client.clients.ImportClient.getSupportedTypes(ImportClient.java:104) > at > org.apache.marmotta.client.clients.ImportClient.<init>(ImportClient.java:65) > at sled.agent.util.MarmottaClient.main(MarmottaClient.java:52) > > My dependences are: > > <dependency> > <groupId>org.apache.httpcomponents</groupId> > <artifactId>httpclient</artifactId> > <version>4.2.5</version> > </dependency> > <dependency> > <groupId>org.apache.httpcomponents</groupId> > <artifactId>httpcore</artifactId> > <version>4.2.5</version> > </dependency> > <dependency> > <groupId>org.apache.httpcomponents</groupId> > <artifactId>httpclient-cache</artifactId> > <version>4.2.5</version> > </dependency> > <dependency> > <groupId>org.apache.httpcomponents</groupId> > <artifactId>httpmime</artifactId> > <version>4.2.5</version> > </dependency> > ... > <dependency> > <groupId>org.apache.marmotta</groupId> > <artifactId>marmotta-client-java</artifactId> > <version>3.1.0-incubating-SNAPSHOT</version> > <type>jar</type> > </dependency> > > Can you help me please? is very important. > thanks > > Diego Benna >