Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0

想利用新浪微博提供的接口下载一些微博数据,在使用Oauth2授权的时候,运行提示这个错误?请问是什么原因?
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at weibo4j.examples.oauth2.OAuth4Code.main(OAuth4Code.java:14)
另外,redirect_URI = 回调地址应该怎么填写,就是想搜集一些微博数据。
如果解答清楚,还会追加分数

第1个回答  2013-05-28
这个是数组为空的标识,首先你在去数组值的时候,要先判断是否为空,再者你不能取出超过数组大小的部分,
第2个回答  2013-05-28
这个异常是索引越界,你的代码都是封装的,也看不到什么东西,2370004546
第3个回答  2013-05-28
打印一下args这个数组内容
大家正在搜