thanks matt.. I think this is related to firewall/blocked website kind
of problem.. will check it out.
On Apr 28, 7:52 pm, Matt Sanford m...@twitter.com wrote:
Hi there,
I don't know anything about the winterwell.jtwitter.* classes but
the null in your error message would indicate a
NullPointerException. I can access the same URL as in the error
message so it seems to be something library specific. You might want
to try and contact whoever wrote winterwell.jtwitter.* for help.
Thanks;
– Matt Sanford / @mzsanford
Twitter Dev
On Apr 28, 2009, at 6:44 AM, guru wrote:
I have just started learning use of API's. so I wrote a program and
got an exception.
I am using netbeans 6.1, java 1.6
Program: (am I suppose to write any thing else apart from this???
import winterwell.jtwitter.*;
public class MyClass {
public static void main(String[] args) {
Twitter twitter = new Twitter(MyUserName,MyPassword);
System.out.println((twitter.getStatus(Omkaaraa)).toString
());
twitter.updateStatus(Trying to put this message at twitter
using my application);
}
}
Error which I got:
Exception in thread main winterwell.jtwitter.TwitterException: Error
rehttp://twitter.com/statuses/user_timeline.json?
id=Omkaaraacount=1:
null
at winterwell.jtwitter.Twitter.fetchWebPage(Twitter.java:748)
at winterwell.jtwitter.Twitter.getStatus(Twitter.java:987)
at javaapplication1.Main.main(Main.java:21)
Java Result: 1
can you help me which stupid mistake I have made??
Guru