org.springframework.web.client.HttpClientErrorException: 400 Bad Request

  1. 0

    How to get pdf output from Jasper server REST_V2 API using Spring MVC

    Stack Overflow | 5 months ago | Lahiru Athukorala
    org.springframework.web.client.HttpClientErrorException: 400 Bad Request
  2. 0

    RestTemplate GET request throws 400 Bad Request

    Stack Overflow | 3 years ago | Vijay
    org.springframework.web.client.HttpClientErrorException: 400 Bad Request
  3. 0

    Using HttpEntity and HttpHeaders to connect to SaleForce

    Stack Overflow | 2 years ago
    org.springframework.web.client.HttpClientErrorException: 400 Bad Request
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Message body with HTTP GET - Spring Forum

    spring.io | 8 months ago
    org.springframework.web.client.HttpClientErrorException: 400 Bad Request

  1. tfr 34 times, last 4 months ago
  2. Malcshour 1 times, last 5 months ago
44 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. org.springframework.web.client.HttpClientErrorException

    400 Bad Request

    at org.springframework.web.client.DefaultResponseErrorHandler.handleError()
  2. Spring
    RestTemplate.exchange
    1. org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:76)[spring-web-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    2. org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:486)[spring-web-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    3. org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:443)[spring-web-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    4. org.springframework.web.client.RestTemplate.execute(RestTemplate.java:409)[spring-web-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    5. org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:384)[spring-web-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    5 frames
  3. com.loits.jasper
    ModuleController.runReport
    1. com.loits.jasper.rest.repo.ModuleDaoImpl.runReport(ModuleDaoImpl.java:334)[classes:]
    2. com.loits.jasper.rest.mvc.ModuleController.runReport(ModuleController.java:103)[classes:]
    2 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[rt.jar:1.6.0_17]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[rt.jar:1.6.0_17]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[rt.jar:1.6.0_17]
    4. java.lang.reflect.Method.invoke(Method.java:597)[rt.jar:1.6.0_17]
    4 frames
  5. Spring
    InvocableHandlerMethod.invokeForRequest
    1. org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)[spring-web-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    2. org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)[spring-web-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    2 frames
  6. Spring MVC
    FrameworkServlet.doGet
    1. org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)[spring-webmvc-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    2. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)[spring-webmvc-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    3. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)[spring-webmvc-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    4. org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)[spring-webmvc-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    5. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)[spring-webmvc-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    6. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)[spring-webmvc-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    7. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)[spring-webmvc-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    8. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)[spring-webmvc-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    8 frames
  7. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:734)[jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:847)[jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
    2 frames
  8. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)[jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)[jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    2 frames
  9. com.loits.jasper
    SessionFilter.doFilter
    1. com.loits.jasper.rest.mvc.SessionFilter.doFilter(SessionFilter.java:46)[classes:]
    1 frame
  10. Glassfish Core
    StandardContextValve.invoke
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)[jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)[jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)[jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)[jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    4 frames
  11. JPA
    WebNonTxEmCloserValve.invoke
    1. org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)[jboss-as-jpa-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
    2. org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)[jboss-as-jpa-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
    2 frames
  12. JBoss Web
    SecurityContextAssociationValve.invoke
    1. org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)[jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
    1 frame
  13. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)[jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    2. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)[jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    3. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)[jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    4. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)[jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    4 frames
  14. Grizzly HTTP
    JIoEndpoint$Worker.run
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)[jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)[jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)[jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
    3 frames
  15. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:619)[rt.jar:1.6.0_17]
    1 frame