camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-6822) camel-facebook - Error when calling endpoint with options from header and configuration bean
Date Sat, 04 Jan 2014 13:37:50 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-6822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-6822.
--------------------------------

    Resolution: Fixed
      Assignee: Claus Ibsen

Thanks for reporting. I spotted the NPE mistake in the facebook component.

> camel-facebook - Error when calling endpoint with options from header and configuration
bean
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-6822
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6822
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-facebook
>    Affects Versions: 2.12.1
>            Reporter: Emilien
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.12.3, 2.13.0
>
>         Attachments: camel.patch
>
>
> When the camel-facebook endpoint is called with a set of options from headers and configuration
bean, an NPE is throwed.
> Here an example route :
> <bean id="facebook" class="org.apache.camel.component.facebook.config.FacebookConfiguration">
>   <property name="oAuthAppId" value="**********"/>
>   <property name="oAuthAppSecret" value="******************"/>
> </bean>
> <route id="consumeFacebookPage">
>          <from uri="direct:consumeFacebookPage"/>
>          <setHeader headerName="CamelFacebook.query">
>           <simple>SELECT page_id FROM page WHERE name='Apache Camel'</simple>
>          </setHeader>
>                  
>          <to uri="facebook://executeFQL"/>
> </route>



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message