java.lang.reflect.InvocationTargetException

This exception has no message.

Samebug tips1

Check if you didn't set RequestProperty Content-Type to the wrong type or if you're trying to send the wrong file to the server.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web23840

  • via Terracotta by johannr, 11 months ago
    This exception has no message.
  • via Terracotta by pgovindraj, 11 months ago
    This exception has no message.
  • via Terracotta by bradleyw, 11 months ago
    This exception has no message.
  • Stack trace

    • java.lang.reflect.InvocationTargetException 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) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560) at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:317) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:204) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:182) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:311) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: org.springframework.web.client.ResourceAccessException: I/O error: Server returned HTTP response code: 400 for URL: https://graph.facebook.com/100001545091818_180072978720871/likes; nested exception is java.io.IOException: Server returned HTTP response code: 400 for URL: https://graph.facebook.com/100001545091818_180072978720871/likes at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:453) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:415) at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:294) at org.springframework.social.facebook.api.impl.FacebookTemplate.post(FacebookTemplate.java:216) at org.springframework.social.facebook.api.impl.LikeTemplate.like(LikeTemplate.java:38) at com.social.controller.FacebookConnectController.getPost(FacebookConnectController.java:128) ... 30 more Caused by: java.io.IOException: Server returned HTTP response code: 400 for URL: https://graph.facebook.com/100001545091818_180072978720871/likes at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234) at org.springframework.http.client.SimpleClientHttpResponse.getBody(SimpleClientHttpResponse.java:77) at org.springframework.social.support.BufferingClientHttpResponse.getBody(BufferingClientHttpResponse.java:58) at org.springframework.social.facebook.api.impl.FacebookErrorHandler.hasError(FacebookErrorHandler.java:65) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:439) ... 35 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 10 months ago
    35 times, 10 months ago
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    69 more bugmates