type.java,NoSuchMethodError:org.codehaus.jackson.type.JavaType

My application is throwing the error below, although I have in my app the jackson-core-asl-1.4.2 and jackson-mapper-asl-1.4.2

Caused by: java.lang.NoSuchMethodError: org.codehaus.jackson.type.JavaType.(Ljava/lang/Class;)V

at org.codehaus.jackson.map.type.SimpleType.(SimpleType.java:32)

at org.codehaus.jackson.map.type.TypeFactory._fromClass(TypeFactory.java:254)

at org.codehaus.jackson.map.type.TypeFactory._fromType(TypeFactory.java:266)

at org.codehaus.jackson.map.type.TypeFactory.type(TypeFactory.java:57)

at org.codehaus.jackson.map.ObjectMapper.(ObjectMapper.java:49)

at org.springframework.web.servlet.view.json.MappingJacksonJsonView.(MappingJacksonJsonView.java:59)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:525)

at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance_(Runtime.java:126)

at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance(Runtime.java:134)

at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)

... 48 more

.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:525)

at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance_(Runtime.java:126)

at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance(Runtime.java:134)

at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)

... 48 more

What could be the reason? It's really weird the application worked before and commited the codes to SVN then when I check-out and re-run everything I get this error...

解决方案

This looks almost certainly to be due to incompatible versions of 'core' and 'mapper' jars. You probably have incompatible versions in use via classpath.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值