Results 1 to 2 of 2

Thread: java.lang.NoSuchMethodException UnconfirmedAuthorizationCodeClientToken.<init>()

  1. #1
    Join Date
    Dec 2011
    Posts
    1

    Post 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. #2
    Join Date
    Jun 2005
    Posts
    4,231

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •