Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    Thrown to indicate that a method has been passed an illegal or inappropriate argument. Check that you don't have more than one method existing with the same name.

Solutions on the web

via Spring JIRA by Marco Fago, 1 year ago
via Spring JIRA by Marco Fago, 2 years ago
via Spring JIRA by Johannes Hiemer, 2 years ago
via Spring JIRA by Johannes Hiemer, 1 year ago
via Coderanch by Troy Harvey, 1 year ago
java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0_40] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[na:1.7.0_40] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_40] at java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_40] at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191)[spring-core-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.data.mapping.model.BeanWrapper.setProperty(BeanWrapper.java:97)[spring-data-commons-1.7.0.BUILD-SNAPSHOT.jar:na] at org.springframework.data.rest.webmvc.json.PersistentEntityJackson2Module$ResourceDeserializer.deserialize(PersistentEntityJackson2Module.java:226)[spring-data-rest-webmvc-2.0.0.BUILD-SNAPSHOT.jar:na] at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2888)[jackson-databind-2.2.2.jar:2.2.2] at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2094)[jackson-databind-2.2.2.jar:2.2.2] at org.springframework.http.converter.json.MappingJackson2HttpMessageConverter.readJavaType(MappingJackson2HttpMessageConverter.java:178)[spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.http.converter.json.MappingJackson2HttpMessageConverter.readInternal(MappingJackson2HttpMessageConverter.java:166)[spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.http.converter.AbstractHttpMessageConverter.read(AbstractHttpMessageConverter.java:153)[spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.data.rest.webmvc.PersistentEntityResourceHandlerMethodArgumentResolver.resolveArgument(PersistentEntityResourceHandlerMethodArgumentResolver.java:48)[spring-data-rest-webmvc-2.0.0.BUILD-SNAPSHOT.jar:na] at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:77)[spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:162)[spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:123)[spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)[spring-webmvc-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)[spring-webmvc-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)