Bad Authentication data error message in Java code



i’m getting this error while authenticating {“errors”:[{“code”:215,“message”:“Bad Authentication data.”}]} please anyone can help me


You’ll need to provide more information such as the endpoint you’re trying to use, language, setup etc.


thanque for reply.
task is to upload video or an image to twitter for that i need to authenticate.
while authenticating only I’m failing can you suggess me bast way and sample.,
jboss 6.2.

thanks in advance


There’s sample code in Java in the Twitter4J open source project, for example.