java.lang.NoClassDefFoundError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • LinkedIntTemplate cannot work on Android because of dependency on javax.xml.bind library. It is not available in any version of Android. java.lang.NoClassDefFoundError: javax.xml.bind.annotation.XmlRootElement at java.lang.Class.getDeclaredAnnotations(Native Method) at org.codehaus.jackson.map.introspect.AnnotatedClass.resolveClassAnnotations(AnnotatedClass.java:292) at org.codehaus.jackson.map.introspect.AnnotatedClass.construct(AnnotatedClass.java:139) at org.codehaus.jackson.map.introspect.BasicClassIntrospector.forDeserialization(BasicClassIntrospector.java:149) at org.codehaus.jackson.map.introspect.BasicClassIntrospector.forDeserialization(BasicClassIntrospector.java:16) at org.codehaus.jackson.map.DeserializationConfig.introspect(DeserializationConfig.java:787) at org.codehaus.jackson.map.deser.BeanDeserializerFactory.createBeanDeserializer(BeanDeserializerFactory.java:303) at org.codehaus.jackson.map.deser.StdDeserializerProvider._createDeserializer(StdDeserializerProvider.java:364) at org.codehaus.jackson.map.deser.StdDeserializerProvider._createAndCache2(StdDeserializerProvider.java:286) at org.codehaus.jackson.map.deser.StdDeserializerProvider._createAndCacheValueDeserializer(StdDeserializerProvider.java:266) at org.codehaus.jackson.map.deser.StdDeserializerProvider.hasValueDeserializerFor(StdDeserializerProvider.java:196) at org.codehaus.jackson.map.ObjectMapper.canDeserialize(ObjectMapper.java:1333) at org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.canRead(MappingJacksonHttpMessageConverter.java:94) at org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.doWithRequest(RestTemplate.java:518) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:449) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:414) at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:212) at org.springframework.social.linkedin.api.impl.LinkedInTemplate.getConnections(LinkedInTemplate.java:63) at org.springframework.social.linkedin.api.impl.LinkedInTemplateTest.testGetConnections(LinkedInTemplateTest.java:93) at java.lang.reflect.Method.invokeNative(Native Method) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:529) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1447) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlRootElement in loader dalvik.system.PathClassLoader[/system/framework/android.test.runner.jar:/data/app/org.springframework.android.auth.test-1.apk:/data/app/org.springframework.android.auth.test-1.apk] at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240) at java.lang.ClassLoader.loadClass(ClassLoader.java:551) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) ... 31 more
    via by Roy Clarkson,
  • LinkedIntTemplate cannot work on Android because of dependency on javax.xml.bind library. It is not available in any version of Android. java.lang.NoClassDefFoundError: javax.xml.bind.annotation.XmlRootElement at java.lang.Class.getDeclaredAnnotations(Native Method) at org.codehaus.jackson.map.introspect.AnnotatedClass.resolveClassAnnotations(AnnotatedClass.java:292) at org.codehaus.jackson.map.introspect.AnnotatedClass.construct(AnnotatedClass.java:139) at org.codehaus.jackson.map.introspect.BasicClassIntrospector.forDeserialization(BasicClassIntrospector.java:149) at org.codehaus.jackson.map.introspect.BasicClassIntrospector.forDeserialization(BasicClassIntrospector.java:16) at org.codehaus.jackson.map.DeserializationConfig.introspect(DeserializationConfig.java:787) at org.codehaus.jackson.map.deser.BeanDeserializerFactory.createBeanDeserializer(BeanDeserializerFactory.java:303) at org.codehaus.jackson.map.deser.StdDeserializerProvider._createDeserializer(StdDeserializerProvider.java:364) at org.codehaus.jackson.map.deser.StdDeserializerProvider._createAndCache2(StdDeserializerProvider.java:286) at org.codehaus.jackson.map.deser.StdDeserializerProvider._createAndCacheValueDeserializer(StdDeserializerProvider.java:266) at org.codehaus.jackson.map.deser.StdDeserializerProvider.hasValueDeserializerFor(StdDeserializerProvider.java:196) at org.codehaus.jackson.map.ObjectMapper.canDeserialize(ObjectMapper.java:1333) at org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.canRead(MappingJacksonHttpMessageConverter.java:94) at org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.doWithRequest(RestTemplate.java:518) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:449) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:414) at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:212) at org.springframework.social.linkedin.api.impl.LinkedInTemplate.getConnections(LinkedInTemplate.java:63) at org.springframework.social.linkedin.api.impl.LinkedInTemplateTest.testGetConnections(LinkedInTemplateTest.java:93) at java.lang.reflect.Method.invokeNative(Native Method) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:529) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1447) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlRootElement in loader dalvik.system.PathClassLoader[/system/framework/android.test.runner.jar:/data/app/org.springframework.android.auth.test-1.apk:/data/app/org.springframework.android.auth.test-1.apk] at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240) at java.lang.ClassLoader.loadClass(ClassLoader.java:551) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) ... 31 more
    via by Roy Clarkson,
  • GoogleMaps V2 on api 10
    via Stack Overflow by hackingforgirls
    ,
  • Ругается на MapView
    via GitHub by IlyaZh
    ,
  • java.lang.ClassNotFoundException
    via GitHub by janhar
    ,
  • class not found?
    via GitHub by thecr0w
    ,
    • java.lang.NoClassDefFoundError: javax.xml.bind.annotation.XmlRootElement at java.lang.Class.getDeclaredAnnotations(Native Method) at org.codehaus.jackson.map.introspect.AnnotatedClass.resolveClassAnnotations(AnnotatedClass.java:292) at org.codehaus.jackson.map.introspect.AnnotatedClass.construct(AnnotatedClass.java:139) at org.codehaus.jackson.map.introspect.BasicClassIntrospector.forDeserialization(BasicClassIntrospector.java:149) at org.codehaus.jackson.map.introspect.BasicClassIntrospector.forDeserialization(BasicClassIntrospector.java:16) at org.codehaus.jackson.map.DeserializationConfig.introspect(DeserializationConfig.java:787) at org.codehaus.jackson.map.deser.BeanDeserializerFactory.createBeanDeserializer(BeanDeserializerFactory.java:303) at org.codehaus.jackson.map.deser.StdDeserializerProvider._createDeserializer(StdDeserializerProvider.java:364) at org.codehaus.jackson.map.deser.StdDeserializerProvider._createAndCache2(StdDeserializerProvider.java:286) at org.codehaus.jackson.map.deser.StdDeserializerProvider._createAndCacheValueDeserializer(StdDeserializerProvider.java:266) at org.codehaus.jackson.map.deser.StdDeserializerProvider.hasValueDeserializerFor(StdDeserializerProvider.java:196) at org.codehaus.jackson.map.ObjectMapper.canDeserialize(ObjectMapper.java:1333) at org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.canRead(MappingJacksonHttpMessageConverter.java:94) at org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.doWithRequest(RestTemplate.java:518) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:449) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:414) at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:212) at org.springframework.social.linkedin.api.impl.LinkedInTemplate.getConnections(LinkedInTemplate.java:63) at org.springframework.social.linkedin.api.impl.LinkedInTemplateTest.testGetConnections(LinkedInTemplateTest.java:93) at java.lang.reflect.Method.invokeNative(Native Method) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:529) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1447) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlRootElement in loader dalvik.system.PathClassLoader[/system/framework/android.test.runner.jar:/data/app/org.springframework.android.auth.test-1.apk:/data/app/org.springframework.android.auth.test-1.apk] at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240) at java.lang.ClassLoader.loadClass(ClassLoader.java:551) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) ... 24 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    bayukresnobayukresno
    3 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    3 more bugmates