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

Camel Facebook - Endpoint URI must contain a parameter

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.14.3, 2.15.2
    • Fix Version/s: 2.15.3, 2.16.0, 2.14.4
    • Component/s: camel-facebook
    • Labels:
      None
    • Estimated Complexity:
      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

            • Assignee:
              dhirajsb Dhiraj Bokde
              Reporter:
              dhirajsb Dhiraj Bokde
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: