org.springframework.web.bind.annotation.support.HandlerMethodInvocationException

Failed to invoke handler method [public void cz.instance.transl.portlet.customers.AjaxUploadFormController.handleMultipartRequest(org.springframework.web.portlet.multipart.DefaultMultipartActionRequest,javax.portlet.ActionResponse) throws com.liferay.portal.kernel.exception.PortalException,com.liferay.portal.kernel.exception.SystemException]; nested exception is java.lang.IllegalStateException: Current request is not of type [org.springframework.web.portlet.multipart.DefaultMultipartActionRequest]: org.springframework.mock.web.portlet.MockMultipartActionRequest@b35fb1c

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

  • via Unknown by Josef Vychtrle,
  • via Unknown by Josef Vychtrle,
  • Stack trace

    • org.springframework.web.bind.annotation.support.HandlerMethodInvocationException: Failed to invoke handler method [public void cz.instance.transl.portlet.customers.AjaxUploadFormController.handleMultipartRequest(org.springframework.web.portlet.multipart.DefaultMultipartActionRequest,javax.portlet.ActionResponse) throws com.liferay.portal.kernel.exception.PortalException,com.liferay.portal.kernel.exception.SystemException]; nested exception is java.lang.IllegalStateException: Current request is not of type [org.springframework.web.portlet.multipart.DefaultMultipartActionRequest]: org.springframework.mock.web.portlet.MockMultipartActionRequest@b35fb1c at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:181) at org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:358) at org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter.doHandle(AnnotationMethodHandlerAdapter.java:345) at org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter.handleAction(AnnotationMethodHandlerAdapter.java:280) at ControllerTest.handleActionRequest(ControllerTest.java:249) Caused by: java.lang.IllegalStateException: Current request is not of type [org.springframework.web.portlet.multipart.DefaultMultipartActionRequest]: org.springframework.mock.web.portlet.MockMultipartActionRequest@b35fb1c at org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter$PortletHandlerMethodInvoker.resolveStandardArgument(AnnotationMethodHandlerAdapter.java:611) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveCommonArgument(HandlerMethodInvoker.java:857) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveHandlerArguments(HandlerMethodInvoker.java:308) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:171) ... 5 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,