Michael Obi February 2016

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/fasterxml/jackson/databind/ObjectMapper

FATAL EXCEPTION: main Process: com.example.mickey4real.helloworld, PID: 19318

  • Hi, I trying to make an android app that would connect to Amazon's SimpleDB. I get the following error when trying to run a program that performs a SelectRequest from my SimpleDB Domain. Please can anyone help me.

    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/fasterxml/jackson/databind/ObjectMapper;

at com.amazonaws.internal.config.InternalConfig.(InternalConfig.java:43)

at com.amazonaws.internal.config.InternalConfig.load(InternalConfig.java)

at com.amazonaws.internal.config.InternalConfig$Factory.(InternalConfig.java:304)

at com.amazonaws.util.VersionInfoUtils.userAgent(VersionInfoUtils.java:139)

at com.amazonaws.util.VersionInfoUtils.initializeUserAgent(VersionInfoUtils.java:134)

at com.amazonaws.util.VersionInfoUtils.getUserAgent(VersionInfoUtils.java:95)

at com.amazonaws.ClientConfiguration.(ClientConfiguration.java:61)

at com.amazonaws.services.simpledb.AmazonSimpleDBClient.(AmazonSimpleDBClient.java:133)

at com.example.mickey4real.helloworld.AWSConnection.getSimpleDB(AWSConnection.java:23)

at com.example.mickey4real.helloworld.Login.getAllUsernames(Login.java:115)

at com.example.mickey4real.helloworld.Login.onClick(Login.java:169)

at android.view.View.performClick(View.java:5197)

at android.view.View$PerformClick.run(View.java:20926)

at android.os.Handler.handleCallback(Handler.java:739)

at android.os.Handler.dispatchMessage(Handler.java:95)

at android.os.Looper.loop(Looper.java:145)

at android.app.ActivityThread.main(ActivityThread.java:5951)

at java.lang.reflect.Method.invoke(Native Method)

at java.lang.reflect.Method.invoke(Method.java:372)

at com.android.internal.os.ZygoteInit$MethodAndAr

Answers


Michael Obi February 2016

I have solved this issue. I simple had to include the missing JAR file to my dependencies. In this case, it was: com.fasterxml.jackson.core:jackson-databind:2.7.0 and the error vanished.

Post Status

Asked in February 2016
Viewed 1,675 times
Voted 12
Answered 1 times

Search




Leave an answer