Export to GitHub

contactlistimporter - issue #5

NoClassDefFoundError: org/apache/http/client/methods/UrlEncodedFormEntity


Posted on Jun 5, 2008 by Grumpy Rhino

<dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.0-alpha3</version> <!-- contactlistimporter does not work with alpha4 --> </dependency>

-- We have to use alpha3 instead of alpha4 since a class has been removed in alpha4 you use. It would be nice to have that fixed.

java.lang.NoClassDefFoundError: org/apache/http/client/methods/UrlEncodedFormEntity at com.xdatasystem.contactsimporter.ContactListImporterImpl.doPost(ContactListImporterImpl.java:172) at com.xdatasystem.contactsimporter.gmail.GmailImporter.login(GmailImporter.java:71) at com.xdatasystem.contactsimporter.ContactListImporterImpl.getContactList(ContactListImporterImpl.java:72)

Comment #1

Posted on Jun 5, 2008 by Happy Panda

You could just stop using Maven, some else created the maven pom files. I just download all libraries myself (also in the repository), this makes it able to choose your libraries more precise.

Comment #2

Posted on Jun 5, 2008 by Grumpy Rhino

I don't really understand what you mean.. Well we are using maven in a project it was just a note what version that didn't work.

I just mean it would be nice if contactlistimporter worked with the latest version of httpclient.

Comment #3

Posted on Jun 5, 2008 by Happy Panda

the HttpClient library changes often... so either you give me the correct change or you have to use the correct library.

Comment #4

Posted on Jun 5, 2008 by Grumpy Rhino

Yes I know. I wont bother you with that problem since you apparently knew it already.

Comment #5

Posted on Nov 7, 2008 by Happy Panda

Closing this issue, the fix is to use the correct httpclient version.

Status: WontFix

Labels:
Type-Defect Priority-Medium