skip to Main Content

java.lang.NoSuchMethodError when using spring-social-twitter – Twitter API

I try using Twitter API via Spring library spring-social-twitter. However I'm when calling sendDirectMessage(String toScreenName, String text) function I get the following exception: java.lang.NoSuchMethodError: 'org.springframework.http.HttpStatus org.springframework.http.client.ClientHttpResponse.getStatusCode()' at org.springframework.social.twitter.api.impl.TwitterErrorHandler.handleError(TwitterErrorHandler.java:56) ~[spring-social-twitter-1.1.0.RELEASE.jar:1.1.0.RELEASE] at org.springframework.web.client.ResponseErrorHandler.handleError(ResponseErrorHandler.java:63) ~[spring-web-6.0.4.jar:6.0.4] at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:915) ~[spring-web-6.0.4.jar:6.0.4] at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:864) ~[spring-web-6.0.4.jar:6.0.4] at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:804)…

VIEW QUESTION

Getting exception while trying to build SsmClient from aws-sdk-java version 2 – Amazon Web Sevices

The exception I am getting -- java.lang.NoClassDefFoundError: org/apache/http/impl/client/DefaultClientConnectionReuseStrategy at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:76) at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:212) at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:166) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:393) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:200) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) The code block where exception is occurring -- //The region value being…

VIEW QUESTION

Spring Boot application build failed – Ubuntu

I am trying to build locally this repository https://github.com/spring-projects/spring-petclinic I followed the steps from the repo but the build result looks like this: [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.757 s [INFO] Finished at: 2023-01-23T15:27:08+02:00 [INFO] ------------------------------------------------------------------------ [ERROR]…

VIEW QUESTION

Cannot resolve method 'getJSONObject' in 'JSONObject'

Would be nice if someone could help me solve this problem. I try to load an image from TMDB with the folowing code: imports: import javafx.collections.FXCollections; import javafx.collections.ObservableList; import java.awt.image.BufferedImage; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.net.URL;…

VIEW QUESTION
Back To Top
Search