Announcement Announcement Module
No announcement yet.
greenhouse broken? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • greenhouse broken?

    running the android client yields the following error after username/password credentials are entered. It looks like the MembersController.profile method expects an Account parameter but a UsernamePasswordAuthenticationToken (in which an Account is buried inside a Principal) is being passed by the interceptor stack. Any help on this is appreciated! BTW i also see this with the EventsController as well...

    SEVERE: Servlet.service() for servlet [appServlet] in context with path [/greenhouse] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: argument type mismatch
    HandlerMethod details:
    Controller [com.springsource.greenhouse.members.MembersControl ler]
    Method [public com.springsource.greenhouse.members.Profile com.springsource.greenhouse.members.MembersControl ler.profile(com.springsource.greenhouse.account.Ac count)]
    Resolved arguments:
    [0] [ sernamePasswordAuthenticationToken] [ UsernamePasswordAuthenticationToken@fe9203ec: Principal: com.springsource.greenhouse.account.Account@16d695 6; Credentials: [PROTECTED]; Authenticated: true; Details: uthenticationDetails@957e: RemoteIpAddress:; SessionId: null; Not granted any authorities]
    ] with root cause
    java.lang.IllegalArgumentException: argument type mismatch
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De
    at java.lang.reflect.Method.invoke(
    at ndlerMethod.invoke( )
    at ndlerMethod.invokeForRequest(InvocableHandlerMetho
    at org.springframework.web.servlet.mvc.method.annotat ion.ServletInvocableHandlerMethod.invokeAndHandle(
    at org.springframework.web.servlet.mvc.method.annotat ion.RequestMappingHandlerAdapter.invokeHandlerMeth od(
    at org.springframework.web.servlet.mvc.method.annotat ion.RequestMappingHandlerAdapter.handleInternal(Re
    at org.springframework.web.servlet.mvc.method.Abstrac tHandlerMethodAdapter.handle(AbstractHandlerMethod
    at org.springframework.web.servlet.DispatcherServlet. doDispatch(
    at org.springframework.web.servlet.DispatcherServlet. doService(
    at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(
    at org.springframework.web.servlet.FrameworkServlet.d oGet(
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:621)

  • #2
    Yes, this popped due to a bug that was recently introduced in Spring Framework. I've worked around the problem as part of the upgrade to Spring Framework 3.1 RC1. The bug that caused this is minor and should be fixed in RC2.



    • #3
      thanks for the attention to this, Keith. One thing i did notice was that the Account parameter in GroupsController.eventView is never referenced/used. Is this intentional. My quick workaround was to just remove it.