{"action":"created","issue":{"url":"https://api.github.com/repos/mesos/storm/issues/119","repository_url":"https://api.github.com/repos/mesos/storm","labels_url":"https://api.github.com/repos/mesos/storm/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/mesos/storm/issues/119/comments","events_url":"https://api.github.com/repos/mesos/storm/issues/119/events","html_url":"https://github.com/mesos/storm/issues/119","id":144425351,"number":119,"title":"ConcurrentHashMap serialization/type issue","user":{"login":"drewrobb","id":140935,"avatar_url":"https://avatars.githubusercontent.com/u/140935?v=3","gravatar_id":"","url":"https://api.github.com/users/drewrobb","html_url":"https://github.com/drewrobb","followers_url":"https://api.github.com/users/drewrobb/followers","following_url":"https://api.github.com/users/drewrobb/following{/other_user}","gists_url":"https://api.github.com/users/drewrobb/gists{/gist_id}","starred_url":"https://api.github.com/users/drewrobb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewrobb/subscriptions","organizations_url":"https://api.github.com/users/drewrobb/orgs","repos_url":"https://api.github.com/users/drewrobb/repos","events_url":"https://api.github.com/users/drewrobb/events{/privacy}","received_events_url":"https://api.github.com/users/drewrobb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mesos/storm/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"erikdw","id":1111441,"avatar_url":"https://avatars.githubusercontent.com/u/1111441?v=3","gravatar_id":"","url":"https://api.github.com/users/erikdw","html_url":"https://github.com/erikdw","followers_url":"https://api.github.com/users/erikdw/followers","following_url":"https://api.github.com/users/erikdw/following{/other_user}","gists_url":"https://api.github.com/users/erikdw/gists{/gist_id}","starred_url":"https://api.github.com/users/erikdw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikdw/subscriptions","organizations_url":"https://api.github.com/users/erikdw/orgs","repos_url":"https://api.github.com/users/erikdw/repos","events_url":"https://api.github.com/users/erikdw/events{/privacy}","received_events_url":"https://api.github.com/users/erikdw/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2016-03-30T00:22:46Z","updated_at":"2016-04-02T07:22:14Z","closed_at":null,"body":"Building against current master I'm getting an exception. \r\n@erikdw the exception is in mk-supervisor and I think is introduced by https://github.com/mesos/storm/pull/106 from using ConcurrentHashMap. I don't know if java 8 is officially supported, but internally we are using it. What I believe to be the issue is described a bit here: https://gist.github.com/AlainODea/1375759b8720a3f9f094\r\n\r\n```\r\n2016-03-29 23:39:03.006 b.s.d.supervisor [ERROR] Error on initialization of server mk-supervisor\r\njava.lang.ClassCastException: java.util.concurrent.ConcurrentHashMap$KeySetView cannot be cast to java.lang.Number\r\n\tat clojure.lang.RT.longCast(RT.java:1151) ~[clojure-1.6.0.jar:?]\r\n\tat clojure.core$long.invoke(core.clj:3195) ~[clojure-1.6.0.jar:?]\r\n\tat clojure.core$map$fn__4245.invoke(core.clj:2557) ~[clojure-1.6.0.jar:?]\r\n\tat clojure.lang.LazySeq.sval(LazySeq.java:40) ~[clojure-1.6.0.jar:?]\r\n\tat clojure.lang.LazySeq.seq(LazySeq.java:49) ~[clojure-1.6.0.jar:?]\r\n\tat clojure.lang.LazySeq.count(LazySeq.java:65) ~[clojure-1.6.0.jar:?]\r\n\tat clojure.lang.LazySeq.size(LazySeq.java:167) ~[clojure-1.6.0.jar:?]\r\n\tat backtype.storm.generated.SupervisorInfo$SupervisorInfoStandardScheme.write(SupervisorInfo.java:1108) ~[storm-core-0.10.0.jar:0.10.0]\r\n\tat backtype.storm.generated.SupervisorInfo$SupervisorInfoStandardScheme.write(SupervisorInfo.java:954) ~[storm-core-0.10.0.jar:0.10.0]\r\n\tat backtype.storm.generated.SupervisorInfo.write(SupervisorInfo.java:838) ~[storm-core-0.10.0.jar:0.10.0]\r\n\tat org.apache.thrift7.TSerializer.serialize(TSerializer.java:79) ~[storm-core-0.10.0.jar:0.10.0]\r\n\tat backtype.storm.serialization.GzipThriftSerializationDelegate.serialize(GzipThriftSerializationDelegate.java:41) ~[storm-core-0.10.0.jar:0.10.0]\r\n\tat backtype.storm.utils.Utils.serialize(Utils.java:76) ~[storm-core-0.10.0.jar:0.10.0]\r\n\tat backtype.storm.cluster$mk_storm_cluster_state$reify__5120.supervisor_heartbeat_BANG_(cluster.clj:403) ~[storm-core-0.10.0.jar:0.10.0]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66-internal]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_66-internal]\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_66-internal]\r\n\tat java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_66-internal]\r\n\tat clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93) ~[clojure-1.6.0.jar:?]\r\n\tat clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28) ~[clojure-1.6.0.jar:?]\r\n\tat backtype.storm.daemon.supervisor$fn__7682$exec_fn__1236__auto____7683$heartbeat_fn__7685.invoke(supervisor.clj:514) ~[storm-core-0.10.0.jar:0.10.0]\r\n\tat backtype.storm.daemon.supervisor$fn__7682$exec_fn__1236__auto____7683.invoke(supervisor.clj:515) ~[storm-core-0.10.0.jar:0.10.0]\r\n\tat clojure.lang.AFn.applyToHelper(AFn.java:160) ~[clojure-1.6.0.jar:?]\r\n\tat clojure.lang.AFn.applyTo(AFn.java:144) ~[clojure-1.6.0.jar:?]\r\n\tat clojure.core$apply.invoke(core.clj:624) ~[clojure-1.6.0.jar:?]\r\n\tat backtype.storm.daemon.supervisor$fn__7682$mk_supervisor__7709.doInvoke(supervisor.clj:495) [storm-core-0.10.0.jar:0.10.0]\r\n\tat clojure.lang.RestFn.invoke(RestFn.java:436) [clojure-1.6.0.jar:?]\r\n\tat backtype.storm.daemon.supervisor$_launch.invoke(supervisor.clj:785) [storm-core-0.10.0.jar:0.10.0]\r\n\tat backtype.storm.daemon.supervisor.launch(Unknown Source) [storm-core-0.10.0.jar:0.10.0]\r\n\tat storm.mesos.MesosSupervisor.main(MesosSupervisor.java:65) [storm-mesos-0.1.0-SNAPSHOT-storm0.10.0-mesos0.27.1.jar:?]\r\n2016-03-29 23:39:03.015 b.s.util [ERROR] Halting process: (\"Error on initialization\")\r\n```"},"comment":{"url":"https://api.github.com/repos/mesos/storm/issues/comments/204665636","html_url":"https://github.com/mesos/storm/issues/119#issuecomment-204665636","issue_url":"https://api.github.com/repos/mesos/storm/issues/119","id":204665636,"user":{"login":"erikdw","id":1111441,"avatar_url":"https://avatars.githubusercontent.com/u/1111441?v=3","gravatar_id":"","url":"https://api.github.com/users/erikdw","html_url":"https://github.com/erikdw","followers_url":"https://api.github.com/users/erikdw/followers","following_url":"https://api.github.com/users/erikdw/following{/other_user}","gists_url":"https://api.github.com/users/erikdw/gists{/gist_id}","starred_url":"https://api.github.com/users/erikdw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikdw/subscriptions","organizations_url":"https://api.github.com/users/erikdw/orgs","repos_url":"https://api.github.com/users/erikdw/repos","events_url":"https://api.github.com/users/erikdw/events{/privacy}","received_events_url":"https://api.github.com/users/erikdw/received_events","type":"User","site_admin":false},"created_at":"2016-04-02T07:22:14Z","updated_at":"2016-04-02T07:22:14Z","body":"@lfundaro : thanks for the extra info.  I haven't been able to reproduce these issues with storm-0.9.6, despite compiling with jdk 1.8 and running on jre 1.8.  Similarly, I compiled with jdk 1.7 and ran on jre 1.8 and had no issues.  Maybe if I used jre 1.7 it would reproduce for me. Or maybe if I tried storm-0.10.0. Sigh.\r\n\r\nSo... after looking further into the Clojure docs, I believe the problem is *really* misuse of `PersistentVector.create()`.  I have proposed a change in #121 which I hope will fix these issues for you and @drewrobb .\r\n\r\nCan you please test and verify that with the change in #121 that your problems are gone?\r\n\r\nThanks!!"}}