Request fails with 500 error


Im developing an small twitter application with Twitter api and i deployed it in cloudbess, app is designed in JSP - Java.
it loads good in my local server and but if i used oauth to make request in short successive times it throws me expectiin saying my rate limit has reached how to overcome this and i like to get my followers ids who have more followers count. eg let say i have 5 followers and follower 4 has 100 followers and follower 3 have 4000 folowers to himself i like to get only those 2 followers. Im using twitter 4j api.