Hi Diego,

On 09/03/14 04:16, Diego Benna wrote:
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)

Taking a quick look, it looks the java.lang.NoSuchMethodError most likely means that you have got the wrong version of one of the Http Components.

My dependences are:

  <dependency>
       <groupId>org.apache.httpcomponents</groupId>
       <artifactId>httpclient</artifactId>
       <version>4.2.5</version>
     </dependency>

Currently we are depending on 4.3.1, but 3.1.0 was depending on 4.2.5, right. And in http-commons they always have been little careful on braking backwards compatibility across new versions.

>     <dependency>
>       <groupId>org.apache.marmotta</groupId>
>       <artifactId>marmotta-client-java</artifactId>
>       <version>3.1.0-incubating-SNAPSHOT</version>
>       <type>jar</type>
>     </dependency>

If you are already using SNAPSHOTS, could you just try to upgrade to marmotta-client-java 3.2.0-SNAPSHOT? The release is being established quite a long time ago, just blocked by a legal issue, so you may benefit on the improvements there, and help us to find if those issues still affect the client library.

Thanks for the bug report and your cooperation.

Cheers,

--
Sergio Fernández
Senior Researcher
Knowledge and Media Technologies
Salzburg Research Forschungsgesellschaft mbH
Jakob-Haringer-Straße 5/3 | 5020 Salzburg, Austria
T: +43 662 2288 318 | M: +43 660 2747 925
sergio.fernan...@salzburgresearch.at
http://www.salzburgresearch.at

Reply via email to