You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Dhiraj Bokde (JIRA)" <ji...@apache.org> on 2015/06/25 08:57:04 UTC

[jira] [Resolved] (CAMEL-8902) Camel Facebook - Endpoint URI must contain a parameter

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

Dhiraj Bokde resolved CAMEL-8902.
---------------------------------
    Resolution: Fixed

Fix merged into master, camel-2.15.x and camel-2.14.x branches

> Camel Facebook - Endpoint URI must contain a parameter
> ------------------------------------------------------
>
>                 Key: CAMEL-8902
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8902
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-facebook
>    Affects Versions: 2.14.3, 2.15.2
>            Reporter: Dhiraj Bokde
>            Assignee: Dhiraj Bokde
>             Fix For: 2.16.0, 2.15.3, 2.14.4
>
>
> Endpoint URI must contain a parametr otherwise method [FacebookEndpoint#initState|https://github.com/jboss-fuse/camel/blob/camel-2.15.1.redhat-620123/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/FacebookEndpoint.java#L119] will not be called. This results in the following exception:
> {code}
> Caused by: java.lang.NullPointerException
> 	at java.util.Collections$UnmodifiableCollection.<init>(Collections.java:1026)[:1.8.0_45]
> 	at java.util.Collections$UnmodifiableList.<init>(Collections.java:1302)[:1.8.0_45]
> 	at java.util.Collections.unmodifiableList(Collections.java:1287)[:1.8.0_45]
> 	at org.apache.camel.component.facebook.FacebookEndpoint.getCandidates(FacebookEndpoint.java:186)
> {code}
> This behaviour is not correct because it is not possible easily change endpoint parameter values.
> *We should support the following usecase:*
> header: {{CamelFacebook.userId = xxxxx}} 
> {code:xml}
> <to uri="facebook://user"/>
> {code}
> and not only:
> {code:xml}
> <to uri="facebook://user?userId=xxxxx"/>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)