Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8902

Camel Facebook - Endpoint URI must contain a parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.14.3, 2.15.2
    • 2.15.3, 2.16.0, 2.14.4
    • camel-facebook
    • None
    • Unknown

    Description

      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>(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)
      
      

      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

      <to uri="facebook://user"/>
      

      and not only:

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

      Attachments

        Activity

          People

            dhirajsb Dhiraj Sureshkumar Bokde
            dhirajsb Dhiraj Sureshkumar Bokde
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: