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

camel-cassandraql: cannot use a custom resultSetConversionStrategy

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.4.1, 3.5.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      According to the documentation, it should be possible to use a custom ResultSetConversionStrategy on the camel-cassandraql component.

      However, it seems it is not accepted in all cases and ends up failing to create the custom conversion. For example, using #bean:org.my.package.MyStrategy causes a failure similar to this:

      Caused by: java.lang.IllegalArgumentException: Unknown conversion strategy #bean:org.apache.camel.kafkaconnector.cassandra.clients.dao.TestResultSetConversionStrategy
      at org.apache.camel.component.cassandra.ResultSetConversionStrategies.fromName(ResultSetConversionStrategies.java:112) ~[camel-cassandraql-3.3.0.jar:3.3.0]
      at org.apache.camel.component.cassandra.CassandraComponent.createEndpoint(CassandraComponent.java:82) ~[camel-cassandraql-3.3.0.jar:3.3.0]
      at org.apache.camel.support.DefaultComponent.createEndpoint(DefaultComponent.java:237) ~[camel-support-3.3.0.jar:3.3.0]

      Looking at the current code on master, this does seem to be that the code on
      CassandraComponent.java and, more importantly, ResultSetConversionStrategies.java do not behave like stated on the documentation (ie.: "... Anything else, if resultSetConversionStrategy is a custom implementation of the ResultSetConversionStrategy ...").

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              orpiske Otavio Rodolfo Piske
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: