Just FYI, John Corwin should be also aware of this issue. He gave me a pull request which workarounds it. https://github.com/yusuke/twitter4j/pull/10
Thanks, -- Yusuke Yamamoto [email protected] this email is: [x] bloggable/tweetable [ ] private follow me on : http://twitter.com/yusukeyamamoto subscribe me at : http://samuraism.jp/ On Dec 15, 2010, at 10:10 , Taylor Singletary wrote: > Thanks! This is being looked into. I'll update when I have news. > > Taylor > > On Tuesday, December 14, 2010, Dan Checkoway <[email protected]> wrote: >> Yeah, you bet. Twitter4j isn't logging a timestamp when it happens, but >> here are a handful of timestamps for unrelated stuff that got logged no more >> than 10 seconds *prior* to the 4294967295 error popping out...so they're >> fairly close: >> >> Dec 14, 2010 12:34:11 PM PST >> Dec 14, 2010 1:13:07 PM PST >> Dec 14, 2010 1:22:48 PM PST >> Dec 14, 2010 1:27:22 PM PST >> Dec 14, 2010 1:29:48 PM PST >> Dec 14, 2010 1:33:36 PM PST >> >> Based on the twitter4j stack trace, I can tell you that it was *always* >> user.listed_count that had the funky value: >> >> Exception in thread "Twitter Stream Handling Thread[Receiving stream]" >> java.lang >> .NumberFormatException: For input string: "4294967295" >> at >> java.lang.NumberFormatException.forInputString(NumberFormatException. >> java:48) >> at java.lang.Integer.parseInt(Integer.java:459) >> at java.lang.Integer.valueOf(Integer.java:553) >> at twitter4j.internal.util.ParseUtil.getInt(ParseUtil.java:120) >> at twitter4j.UserJSONImpl.init(UserJSONImpl.java:103) >> >> Thanks, >> Dan >> >> On Tue, Dec 14, 2010 at 6:42 PM, Taylor Singletary >> <[email protected]> wrote: >> Understandable, Dan. >> >> Can you tell me the last time an event like this happened? >> >> Taylor >> >> On Tue, Dec 14, 2010 at 3:41 PM, Dan Checkoway <[email protected]> wrote: >>> I know this is the weenie answer, but I haven't been able to track a >>> specific offending JSON object down yet, since it only seems to happen on >>> the firehose, and we're using twitter4j to process that. >>> >>> If we were able to connect to the firehose more than once at a time, I could >>> easily write a tool to detect and highlight the issue. Short of that, I'll >>> try watching the sample stream for a while to see if the same issue pops up >>> there. Will report any findings... >>> >>> Thanks, >>> Dan >>> >>> On Tue, Dec 14, 2010 at 6:19 PM, Taylor Singletary >>> <[email protected]> wrote: >>>> >>>> Hi Dan, >>>> >>>> Do you continue to see events like this happening? Can you provide a >>>> recent example in as-provided JSON or XML? >>>> >>>> Thanks, >>>> Taylor >>>> >>>> On Tue, Dec 14, 2010 at 2:13 PM, Dan Checkoway <[email protected]> >>>> wrote: >>>>> Anybody else seeing user.listed_count occasionally coming back as >>>>> 4294967295? That value just happens to equate to: 1 + (2 * >>>>> Integer.MAX_VALUE) Sure looks like an unsigned version of -1 to me... >>>>> >>>>> Anyway, it's breaking twitter4j.TwitterStream stuff. I've mentioned >>>>> that >>>>> separately on the twitter4j list, but I wanted to raise the issue here >>>>> since >>>>> the root cause is twitter sending the weird value. >>>>> >>>>> Thanks, >>>>> Dan >>>>> >>>>> -- >>>>> Twitter developer documentation and resources: >>>>> http://dev.twitter.com/doc >>>>> API updates via Twitter: http://twitter.com/twitterapi >>>>> Issues/Enhancements Tracker: >>>>> http://code.google.com/p/twitter-api/issues/list >>>>> Change your membership to this group: >>>>> http://groups.google.com/group/twitter-development-talk >>>>> >>>> >>>> -- >>>> Twitter developer documentation and resources: http://dev.twitter.com/doc >>>> API updates via Twitter: http://twitter.com/twitterapi >>>> Issues/Enhancements Tracker: >>>> http://code.google.com/p/twitter-api/issues/list >>>> Change your membership to this group: >>>> http://groups.google.com/group/twitter-development-talk >>> >>> -- >>> Twitter developer documentation and resources: http://dev.twitter.com/doc >>> API updates via Twitter: http://twitter.com/twitterapi >>> Issues/Enhancements Tracker: >>> http://code.google.com/p/twitter-api/issues/list >>> Change your membership to this group: >>> http://groups.google.com/group/twitter-development-talk >>> >> >> -- >> Twitter developer documentation and resources: http://dev.twitter.com/doc >> API updates via Twitter: http://twitter.com/twitterapi >> Issues/Enhancements Tracker: >> <http://code.google.com/p/twitter-api/issues/list> > > -- > Twitter developer documentation and resources: http://dev.twitter.com/doc > API updates via Twitter: http://twitter.com/twitterapi > Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list > Change your membership to this group: > http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
