Announcement Announcement Module
Collapse
No announcement yet.
java.lang.NoSuchMethodException UnconfirmedAuthorizationCodeClientToken.<init>() Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • java.lang.NoSuchMethodException UnconfirmedAuthorizationCodeClientToken.<init>()

    run oauth2 sample on tomcat error.

    [DEBUG] InternalResourceView - Forwarding to resource [/oauth/confirm_access] in InternalResourceView 'null'
    [DEBUG] DispatcherServlet - DispatcherServlet with name 'spring' processing GET request for [/oauth2idp/oauth/confirm_access]
    [DEBUG] RequestMappingHandlerMapping - Looking up handler method for path /oauth/confirm_access
    [DEBUG] RequestMappingHandlerMapping - Returning handler method [public org.springframework.web.servlet.ModelAndView org.springframework.security.oauth.examples.sparkl r.mvc.AccessConfirmationController.getAccessConfir mation(org.springframework.security.oauth2.provide r.code.UnconfirmedAuthorizationCodeClientToken) throws java.lang.Exception]
    [DEBUG] DispatcherServlet - Last-Modified value for [/oauth2idp/oauth/confirm_access] is: -1
    [DEBUG] ExceptionHandlerExceptionResolver - Resolving exception from handler [public org.springframework.web.servlet.ModelAndView org.springframework.security.oauth.examples.sparkl r.mvc.AccessConfirmationController.getAccessConfir mation(org.springframework.security.oauth2.provide r.code.UnconfirmedAuthorizationCodeClientToken) throws java.lang.Exception]: org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.security.oauth2.provider.code. UnconfirmedAuthorizationCodeClientToken]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.security.oauth2.provider.code. UnconfirmedAuthorizationCodeClientToken.<init>()
    [DEBUG] ResponseStatusExceptionResolver - Resolving exception from handler [public org.springframework.web.servlet.ModelAndView org.springframework.security.oauth.examples.sparkl r.mvc.AccessConfirmationController.getAccessConfir mation(org.springframework.security.oauth2.provide r.code.UnconfirmedAuthorizationCodeClientToken) throws java.lang.Exception]: org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.security.oauth2.provider.code. UnconfirmedAuthorizationCodeClientToken]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.security.oauth2.provider.code. UnconfirmedAuthorizationCodeClientToken.<init>()
    [DEBUG] DefaultHandlerExceptionResolver - Resolving exception from handler [public org.springframework.web.servlet.ModelAndView org.springframework.security.oauth.examples.sparkl r.mvc.AccessConfirmationController.getAccessConfir mation(org.springframework.security.oauth2.provide r.code.UnconfirmedAuthorizationCodeClientToken) throws java.lang.Exception]: org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.security.oauth2.provider.code. UnconfirmedAuthorizationCodeClientToken]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.security.oauth2.provider.code. UnconfirmedAuthorizationCodeClientToken.<init>()
    [DEBUG] DispatcherServlet - Could not complete request <org.springframework.beans.BeanInstantiationExcept ion: Could not instantiate bean class [org.springframework.security.oauth2.provider.code. UnconfirmedAuthorizationCodeClientToken]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.security.oauth2.provider.code. UnconfirmedAuthorizationCodeClientToken.<init>()>o rg.springframework.beans.BeanInstantiationExceptio n: Could not instantiate bean class [org.springframework.security.oauth2.provider.code. UnconfirmedAuthorizationCodeClientToken]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.security.oauth2.provider.code. UnconfirmedAuthorizationCodeClientToken.<init>()
    at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:107)

  • #2
    Where did you get the code? How did you run it? It works for me.

    This looks like an error I might expect with an older snapshot of Spring Security OAuth and an upgrade to Spring 3.1, but if you get the newest everything it should work. Or if you are writing your own /confirm_access endpoint, be sure to add @ModelAttribute explicitly to the UnconfirmedAuthorizationCodeClientToken method param.

    Comment

    Working...
    X