java.lang.IllegalStateException: The mapped controller method class 'com.artsquare.gallery.web.html.WorkHtmlController' is not an instance of the actual controller bean instance 'com.sun.proxy.$Proxy135'. If the controller requires proxying (e.g. due to @Transactional), please use class-based proxying. HandlerMethod details: Controller [com.artsquare.gallery.web.html.WorkHtmlController] Method [public java.lang.Object com.artsquare.gallery.web.html.WorkHtmlController.createForm()] Resolved arguments:

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

Solutions on the web

via Spring JIRA by Christopher Smith, 1 year ago
The mapped controller method class 'com.artsquare.gallery.web.html.WorkHtmlController' is not an instance of the actual controller bean instance 'com.sun.proxy.$Proxy135'. If the controller requires proxying (e.g. due to @Transactional), please use
via Spring JIRA by Christopher Smith, 1 year ago
The mapped controller method class 'com.artsquare.gallery.web.html.WorkHtmlController' is not an instance of the actual controller bean instance 'com.sun.proxy.$Proxy135'. If the controller requires proxying (e.g. due to @Transactional), please use
java.lang.IllegalStateException: The mapped controller method class 'com.artsquare.gallery.web.html.WorkHtmlController' is not an instance of the actual controller bean instance 'com.sun.proxy.$Proxy135'. If the controller requires proxying (e.g. due to @Transactional), please use class-based proxying. HandlerMethod details: Controller [com.artsquare.gallery.web.html.WorkHtmlController] Method [public java.lang.Object com.artsquare.gallery.web.html.WorkHtmlController.createForm()] Resolved arguments:
at org.springframework.web.method.support.InvocableHandlerMethod.assertTargetBean(InvocableHandlerMethod.java:261)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:224)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:111)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:799)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:728)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
8 times, 3 weeks ago
4 times, 3 days ago
Once, 1 week ago
4 times, 1 year ago
2 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.