vergnes/spring-social-weibo — Issue #3: java.lang.NoSuchFieldError: BEARER_DRAFT_2
Author: benxiong
Created: 2012-03-05 11:32:13+00:00
State: open

/connect/weibo?code=62f1a60a1ec662014bd8405b0e57cc3f

When the auth is completed and redirected to the above URL, the exception below is thrown:

java.lang.NoSuchFieldError: BEARER_DRAFT_2
org.springframework.social.weibo.api.impl.WeiboTemplate.getOAuth2Version(WeiboTemplate.java:129)
org.springframework.social.oauth2.AbstractOAuth2ApiBinding.(AbstractOAuth2ApiBinding.java:60)
org.springframework.social.weibo.api.impl.WeiboTemplate.(WeiboTemplate.java:57)
org.springframework.social.weibo.connect.WeiboServiceProvider.getApi(WeiboServiceProvider.java:37)
org.springframework.social.weibo.connect.WeiboServiceProvider.getApi(WeiboServiceProvider.java:1)
org.springframework.social.connect.support.OAuth2Connection.initApi(OAuth2Connection.java:132)
org.springframework.social.connect.support.OAuth2Connection.(OAuth2Connection.java:71)
org.springframework.social.connect.support.OAuth2ConnectionFactory.createConnection(OAuth2ConnectionFactory.java:58)
org.springframework.social.connect.web.ConnectSupport.completeConnection(ConnectSupport.java:125)
org.springframework.social.connect.web.ConnectController.oauth2Callback(ConnectController.java:181)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)