Hi. Unfortunately, Storm adds all jars in <storm root>/lib directory to classpath first. Recently Storm relocates some libraries to reduce dependency conflict (please see http://storm.apache.org/2014/11/25/storm093-released.html) but json-simple is not in.
You can try replacing json-simple-1.1.jar to json-simple-1.1.1.jar in your storm cluster's lib directory and restart cluster / submit your topology, but please note that it should be backward compatible to let Storm runs without issue. Bests. Jungtaek Lim (HeartSaVioR) 2015-05-06 18:30 GMT+09:00 Ferran Muñoz <[email protected]>: > Hi, > > I am using a library in a bolt of my topology that depends on json-simple > v1.1.1 because it uses the JSONObject constructor that accepts a > java.util.Map parameter. > > I have a conflict because Storm depends on json-simple v1.1. So, when I > run my topology I get the exception: > > java.lang.NoSuchMethodError: org.json.simple.JSONObject: method > <init>(Ljava/util/Map;)V not found > > How can I tackle with this? > > Thanks in advance and best regards, > > Ferran > -- Name : 임 정택 Blog : http://www.heartsavior.net / http://dev.heartsavior.net Twitter : http://twitter.com/heartsavior LinkedIn : http://www.linkedin.com/in/heartsavior
