You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2013/01/21 06:10:12 UTC

[jira] [Commented] (CAMEL-5985) ClassCastException on SearchConsumer

    [ https://issues.apache.org/jira/browse/CAMEL-5985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13558538#comment-13558538 ] 

Willem Jiang commented on CAMEL-5985:
-------------------------------------

Hi, 
I guess you are using some kind of old version of twitter4j lib, as the twitter4j 3.0 getTweets() returns a List<Status>.
Can you double check the version of the twitter4j-core? 
Please make sure you are using the twitter4j 3.0.

Willem
                
> ClassCastException on SearchConsumer 
> -------------------------------------
>
>                 Key: CAMEL-5985
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5985
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-twitter
>            Reporter: Luca Foppiano
>            Assignee: Willem Jiang
>
> Using the last SNAPSHOT from SVN, when I try to test the SearchConsumer of the camel-twitter component I get a ClassCastException on the line 
> List<Status> tweets = qr.getTweets();
> because the qr.getTweets() return a List<Tweet> and not a List<Status>.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira