camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dhiraj Bokde (JIRA)" <>
Subject [jira] [Created] (CAMEL-8902) Camel Facebook - Endpoint URI must contain a parameter
Date Thu, 25 Jun 2015 04:02:05 GMT
Dhiraj Bokde created CAMEL-8902:

             Summary: Camel Facebook - Endpoint URI must contain a parameter
                 Key: CAMEL-8902
             Project: Camel
          Issue Type: Bug
          Components: camel-facebook
    Affects Versions: 2.15.2, 2.14.3
            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|]
will not be called. This results in the following exception:

Caused by: java.lang.NullPointerException
	at java.util.Collections$UnmodifiableCollection.<init>([:1.8.0_45]
	at java.util.Collections$UnmodifiableList.<init>([:1.8.0_45]
	at java.util.Collections.unmodifiableList([:1.8.0_45]
	at org.apache.camel.component.facebook.FacebookEndpoint.getCandidates(

This behaviour is not correct because it is not possible easily change endpoint parameter

*We should support the following usecase:*
header: {{CamelFacebook.userId = xxxxx}} 
<to uri="facebook://user"/>

and not only:
<to uri="facebook://user?userId=xxxxx"/>

This message was sent by Atlassian JIRA

View raw message