Twitter インスタンスを取得できません。どの間違いを犯したか教えてください
コード :
String consumerKey = "************************";
//Your Twitter App's Consumer Secret
String consumerSecret = "********************";
//Your Twitter Access Token
String accessToken = "**********************************";
//Your Twitter Access Token Secret
String accessTokenSecret = "*****************************";
//Instantiate a re-usable and thread-safe factory
TwitterFactory twitterFactory = new TwitterFactory();
//Instantiate a new Twitter instance
Twitter twitter = twitterFactory.getInstance(); /// **problem comes over here**
twitter.setOAuthConsumer(consumerKey, consumerSecret);
twitter.setOAuthAccessToken(new AccessToken(accessToken, accessTokenSecret));
Twitter v1 から v1.1 への移行中
java.lang.NoSuchMethodError: twitter4j.TwitterFactory.getInstance(Ltwitter4j/auth/AccessToken;)Ltwitter4j/Twitter; com.verve.meetin.twitter.twitterAuthenticationServlet.doGet(twitterAuthenticationServlet.java:151) で javax.servlet.http.HttpServlet.service(HttpServlet.java:690) で javax.servlet.http.HttpServlet.service(HttpServlet.java) :803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) で org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) で org.tuckey.web.filters. org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145) の urlrewrite.RuleChain.handleRewrite(RuleChain.java:176) org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter. java:92) org.tuckey.web.filters.