Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-5917

NoSuchMethodError when calling YamlConfigurationLoader.loadConfig()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.0.0
    • Legacy/CQL
    • None
    • Linux

    • Low

    Description

      Hi, when this method is called, I see this:

      java.lang.NoSuchMethodError: org.yaml.snakeyaml.Yaml.<init>(Lorg/yaml/snakeyaml/constructor/BaseConstructor;)V
      at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:86)
      at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:125)
      at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:101)
      ......

      I believe it's because of an enhancement made in ticket CASSANDRA-5606. The version of snakeyaml that 2.0.0-rc1 depends on is 1.6, but this constructor doesn't exist in that version but it does in version 1.12.

      Coincidentally CASSANDRA-5317 speaks of upgrading the snakeyaml dependency, but I'm not sure what was upgraded.

      Attachments

        Activity

          People

            dbrosius David Brosius
            pookieman Jinder Aujla
            David Brosius
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: