Note that there are some explanatory texts on larger screens.

plurals
  1. POJackson : NoSuchMethodError for org.codehaus.jackson.map.DeserializationConfig.withAnnotationIntrospector
    primarykey
    data
    text
    <p>I am using Spring MVC 3.2 with Jackson.Everything works fine when I was working on Ubuntu 12.04. But our deployment server has Cent OS 6.So while deploying My project copy on server following stacktrace is coming and application is failed to get deployed.</p> <pre><code>java.lang.NoSuchMethodError: org.codehaus.jackson.map.DeserializationConfig.withAnnotationIntrospector(Lorg/codehaus/jackson/map/AnnotationIntrospector;)Lorg/codehaus/jackson/map/DeserializationConfig; at com.domain.atmosphere.JaxbJacksonObjectMapper.&lt;init&gt;(JaxbJacksonObjectMapper.java:26) at com.controller.BroadCastingController.pollForNewArrival(BroadCastingController.java:132) at com.controller.BroadCastingController$$FastClassByCGLIB$$379dc3e.invoke(&lt;generated&gt;) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631) at com.hcdc.coedp.safe.controller.BroadCastingController$$EnhancerByCGLIB$$8be92c05.pollForNewArrival(&lt;generated&gt;) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:64) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) </code></pre> <p>Following are the jars that I am using for jackson support.</p> <pre><code> jackson-annotations-2.0.4.jar: jackson-databind-2.0.4.jar: jackson-xc-1.9.11.jar: jackson-mapper-asl-1.9.8.jar: jackson-core-2.0.4.jar: jackson-core-asl-1.9.8.jar </code></pre> <p>And this is my custom <code>JaxbJacksonObjectMapper</code></p> <pre><code>public class JaxbJacksonObjectMapper extends ObjectMapper { public JaxbJacksonObjectMapper() { final AnnotationIntrospector introspector = new JaxbAnnotationIntrospector(); super.getDeserializationConfig().withAnnotationIntrospector(introspector); super.getSerializationConfig().withAnnotationIntrospector(introspector); this.enableDefaultTypingAsProperty(DefaultTyping.JAVA_LANG_OBJECT, JsonTypeInfo.Id.CLASS.getDefaultPropertyName()); } } </code></pre> <p>I read in <a href="https://stackoverflow.com/questions/5094180/jackson-objectmapper-constructor-throws-nosuchmethod">this</a> answer that this is a problem of version incompatibility.So if that's the case If any one could tell me the right version to be used with Spring MVC 3.2 I will be grateful.</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload