Research Log of Web Science Students

Computer Science is not simply programming

Throwing an exception when no exception should be thrown

leave a comment »

Again another Twitter4J bug. I am tweeting via hardwire.It’s throwing an exception but the tweet goes through anyway.

<table border="0">
<tbody>
<tr>
<td>Uncaught exception from servlet</td>
</tr>
<tr>
<td></td>
<td>java.lang.NullPointerException</td>
</tr>
<tr>
<td></td>
<td>at java.net.URLEncoder.encode(Unknown Source)</td>
</tr>
<tr>
<td></td>
<td>at twitter4j.http.OAuth.encode(OAuth.java:249)</td>
</tr>
<tr>
<td></td>
<td>at twitter4j.http.OAuth.encodeParameters(OAuth.java:228)</td>
</tr>
<tr>
<td></td>
<td>at twitter4j.http.OAuth.encodeParameters(OAuth.java:212)</td>
</tr>
<tr>
<td></td>
<td>at twitter4j.http.OAuth.normalizeRequestParameters(OAuth.java:191)</td>
</tr>
<tr>
<td></td>
<td>at twitter4j.http.OAuth.generateAuthorizationHeader(OAuth.java:80)</td>
</tr>
<tr>
<td></td>
<td>at twitter4j.http.OAuth.generateAuthorizationHeader(OAuth.java:124)</td>
</tr>
<tr>
<td></td>
<td>at twitter4j.http.HttpClient.setHeaders(HttpClient.java:544)</td>
</tr>
<tr>
<td></td>
<td>at twitter4j.http.HttpClient.httpRequest(HttpClient.java:440)</td>
</tr>
<tr>
<td></td>
<td>at twitter4j.http.HttpClient.post(HttpClient.java:401)</td>
</tr>
<tr>
<td></td>
<td>at twitter4j.Twitter.updateStatus(Twitter.java:1145)</td>
</tr>
<tr>
<td></td>
<td>at com.hardwire.oauth.impl.TwitterOAuthClient.tweet(TwitterOAuthClient.java:70)</td>
</tr>
<tr>
<td></td>
<td>at com.hardwire.controller.TwitterController.tweet(TwitterController.java:32)</td>
</tr>
</tbody></table>
Advertisements

Written by Jose Asuncion

October 10, 2009 at 7:33 am

Posted in Hardwire

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: