Twiter4j in proxy not working



I m trying to use this flume command to ingest data from twitter but its not working it just hangs , doesn’t do anything or throw any errors . If I don’t use the proxy qualifiers then I get "connect timed out "
I even tried putting the proxy parameters in the file but no luck.

flume-ng agent --conf-file --name agent1 --conf $FLUME_HOME/conf -Dflume.root.logger=WARN,console -Dtwitter4j.http.proxyPort=8080

I found this post on web but its also giving me new errors

Exception in thread “Twitter4J Async Dispatcher[0]” java.lang.NoSuchMethodError: twitter4j.Status.getRetweetCount()J
at org.apache.flume.source.twitter.TwitterSource.extractRecord(
at org.apache.flume.source.twitter.TwitterSource.onStatus(
at twitter4j.StatusStreamImpl.onStatus(
at twitter4j.StatusStreamBase$