java.lang.ClassNotFoundException: org.springframework.http.client.AbstractBufferingClientHttpRequest

Spring JIRA | Ryan Slobojan | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When attempting to use Spring Social to implement OAuth connectivity using Spring 3.0.5.RELEASE, I encountered a NoClassDef error when receiving the token back from the OAuth provider: java.lang.ClassNotFoundException: org.springframework.http.client.AbstractBufferingClientHttpRequest at java.lang.ClassLoader.findClass(ClassLoader.java:359) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:352) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:354) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:366) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337) at org.springframework.social.support.HttpComponentsClientHttpRequestFactory.createRequest(HttpComponentsClientHttpRequestFactory.java:142) at org.springframework.http.client.support.HttpAccessor.createRequest(HttpAccessor.java:76) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:434) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:401) at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:279) at org.springframework.social.oauth2.OAuth2Template.postForAccessGrant(OAuth2Template.java:120) at org.springframework.social.oauth2.OAuth2Template.exchangeForAccess(OAuth2Template.java:89) at org.springframework.social.connect.web.ConnectController.oauth2Callback(ConnectController.java:168) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176) Note that this class is a Spring 3.1.M1 class (although the page says "since 3.0.6", which is not yet released): http://static.springsource.org/spring/docs/3.1.0.M1/javadoc-api/org/springframework/http/client/AbstractBufferingClientHttpRequest.html Calling this a blocker because at this point it appears impossible to use the Spring Social connect controller with a released GA version of Spring.

    Spring JIRA | 6 years ago | Ryan Slobojan
    java.lang.ClassNotFoundException: org.springframework.http.client.AbstractBufferingClientHttpRequest
  2. 0

    When attempting to use Spring Social to implement OAuth connectivity using Spring 3.0.5.RELEASE, I encountered a NoClassDef error when receiving the token back from the OAuth provider: java.lang.ClassNotFoundException: org.springframework.http.client.AbstractBufferingClientHttpRequest at java.lang.ClassLoader.findClass(ClassLoader.java:359) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:352) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:354) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:366) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337) at org.springframework.social.support.HttpComponentsClientHttpRequestFactory.createRequest(HttpComponentsClientHttpRequestFactory.java:142) at org.springframework.http.client.support.HttpAccessor.createRequest(HttpAccessor.java:76) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:434) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:401) at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:279) at org.springframework.social.oauth2.OAuth2Template.postForAccessGrant(OAuth2Template.java:120) at org.springframework.social.oauth2.OAuth2Template.exchangeForAccess(OAuth2Template.java:89) at org.springframework.social.connect.web.ConnectController.oauth2Callback(ConnectController.java:168) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176) Note that this class is a Spring 3.1.M1 class (although the page says "since 3.0.6", which is not yet released): http://static.springsource.org/spring/docs/3.1.0.M1/javadoc-api/org/springframework/http/client/AbstractBufferingClientHttpRequest.html Calling this a blocker because at this point it appears impossible to use the Spring Social connect controller with a released GA version of Spring.

    Spring JIRA | 6 years ago | Ryan Slobojan
    java.lang.ClassNotFoundException: org.springframework.http.client.AbstractBufferingClientHttpRequest
  3. 0

    HTTP ERROR 500

    Google Groups | 5 years ago | Sanx
    java.lang.ClassNotFoundException: scala.runtime.AbstractFunction0$mcL $sp
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate 3.6 Final requesting

    Stack Overflow | 6 years ago | Noor
    java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/ReflectionManager at com.BiddingSystem.server.ServiceImpl.<init>(ServiceImpl.java:63)
  6. 0

    jaas authentication using jetty and gwt

    Stack Overflow | 7 years ago | dubreakkk
    java.lang.ClassNotFoundException: org.mortbay.jetty.plus.jaas.JAASUserRealm

  1. osvzs 4 times, last 1 week ago
  2. olle.hallin 3 times, last 4 days ago
  3. rp 1 times, last 2 weeks ago
  4. Dunmer 1 times, last 2 weeks ago
  5. poroszd 1 times, last 3 weeks ago
78 more registered users
17 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    org.springframework.http.client.AbstractBufferingClientHttpRequest

    at java.lang.ClassLoader.findClass()
  2. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.findClass(ClassLoader.java:359)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    3. java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    3 frames
  3. Jetty Server
    WebAppClassLoader.loadClass
    1. org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:352)
    2. org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
    2 frames
  4. Java RT
    URLClassLoader.findClass
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
    3. java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    4. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    5. java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    6. java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    7. java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    8. java.security.AccessController.doPrivileged(Native Method)
    9. java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    9 frames
  5. GWT dev
    JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass
    1. com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:354)
    1 frame
  6. Jetty Server
    WebAppClassLoader.loadClass
    1. org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:366)
    2. org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
    2 frames
  7. Foundational module containing the ServiceProvider Connect Framework and Service API invocation support.
    HttpComponentsClientHttpRequestFactory.createRequest
    1. org.springframework.social.support.HttpComponentsClientHttpRequestFactory.createRequest(HttpComponentsClientHttpRequestFactory.java:142)
    1 frame
  8. Spring
    RestTemplate.postForObject
    1. org.springframework.http.client.support.HttpAccessor.createRequest(HttpAccessor.java:76)
    2. org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:434)
    3. org.springframework.web.client.RestTemplate.execute(RestTemplate.java:401)
    4. org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:279)
    4 frames
  9. Foundational module containing the ServiceProvider Connect Framework and Service API invocation support.
    OAuth2Template.exchangeForAccess
    1. org.springframework.social.oauth2.OAuth2Template.postForAccessGrant(OAuth2Template.java:120)
    2. org.springframework.social.oauth2.OAuth2Template.exchangeForAccess(OAuth2Template.java:89)
    2 frames
  10. Spring Web Integration
    ConnectController.oauth2Callback
    1. org.springframework.social.connect.web.ConnectController.oauth2Callback(ConnectController.java:168)
    1 frame
  11. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  12. Spring
    HandlerMethodInvoker.invokeHandlerMethod
    1. org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
    1 frame