Can we use twitter4j.FilterQuery and twitter4j.RateLimitStatus in a same project


While doing a small application with Twitter Stream API and Twitter user search I have to use twitter4j.FilterQuery and twitter4j.RateLimitStatus classes.

These two classes are found in two different jar: twitter4j-core-2.2.6.jar and twitter4j-core-3.0.3.jar.

When I add these two classed into my class path i am getting the below exception:

Exception in thread “Twitter4J Async Dispatcher[0]” java.lang.NoSuchMethodError: twitter4j.json.JSONObjectType.determine(Ltwitter4j/internal/org/json/JSONObject;)Ltwitter4j/json/JSONObjectType; at twitter4j.AbstractStreamImplementation$ at

Please help me how to run this sample program.


I’m too facing the same issue. Waiting for the reply.


twitter inr jar



I’m getting the same error , pls let me know how you have resolved the issue . Here I am using Flume to stream twitter data …