java.lang.NoSuchMethodError: spray.json.StandardFormats$class.optionFormat(Lspray/json/StandardFormats;Lspray/json/JsonFormat;)Lspray/json/StandardFormats$OptionFormat;

Stack Overflow | Liam Haworth | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    New dependency causing java.lang.NoSuchMethodError exception

    Stack Overflow | 8 months ago | Liam Haworth
    java.lang.NoSuchMethodError: spray.json.StandardFormats$class.optionFormat(Lspray/json/StandardFormats;Lspray/json/JsonFormat;)Lspray/json/StandardFormats$OptionFormat;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      spray.json.StandardFormats$class.optionFormat(Lspray/json/StandardFormats;Lspray/json/JsonFormat;)Lspray/json/StandardFormats$OptionFormat;

      at net.nikore.etcd.EtcdJsonProtocol$.optionFormat()
    2. net.nikore.etcd
      EtcdClient$.apply
      1. net.nikore.etcd.EtcdJsonProtocol$.optionFormat(EtcdJsonProtocol.scala:5)
      2. net.nikore.etcd.EtcdJsonProtocol$.<init>(EtcdJsonProtocol.scala:18)
      3. net.nikore.etcd.EtcdJsonProtocol$.<clinit>(EtcdJsonProtocol.scala)
      4. net.nikore.etcd.EtcdClient.<init>(EtcdClient.scala:76)
      5. net.nikore.etcd.EtcdClient$.apply(EtcdClient.scala:20)
      5 frames
    3. au.com.someproject
      ServiceMain.main
      1. au.com.someproject.helpers.SomeProjectService$class.main(SomeProjectService.scala:116)
      2. au.com.someproject.some_agent.ServiceMain$.main(ServiceMain.scala:17)
      3. au.com.someproject.some_agent.ServiceMain.main(ServiceMain.scala)
      3 frames