You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by "James Xu (JIRA)" <ji...@apache.org> on 2013/12/15 07:56:06 UTC

[jira] [Created] (STORM-156) Compiling Storm 0.9.0 results in java.lang.ClassNotFoundException: backtype.storm.LocalDRPC

James Xu created STORM-156:
------------------------------

             Summary: Compiling Storm 0.9.0 results in java.lang.ClassNotFoundException: backtype.storm.LocalDRPC
                 Key: STORM-156
                 URL: https://issues.apache.org/jira/browse/STORM-156
             Project: Apache Storm (Incubating)
          Issue Type: Bug
            Reporter: James Xu
            Priority: Minor


https://github.com/nathanmarz/storm/issues/495

In reference to pull request #460 I was able to reproduce the error
and gather log files. I am using the bin/build_release.sh to compile
Storm. Storm compiles on Mac OS X 10.8.2 using Lein 2.0.0 and Java JDK
1.7. On Ubuntu 12.04 using Lein 2.0.0 and Java JDK 1.7 it fails with
the following error:

Compiling storm.trident.testing Exception in thread "main"
java.lang.ClassNotFoundException: backtype.storm.LocalDRPC,
compiling:(testing.clj:1) at
clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3387) at
clojure.lang.Compiler.compile1(Compiler.java:7035) at
clojure.lang.Compiler.compile1(Compiler.java:7025) at
clojure.lang.Compiler.compile(Compiler.java:7097) at
clojure.lang.RT.compile(RT.java:387) at
clojure.lang.RT.load(RT.java:427) at clojure.lang.RT.load(RT.java:400)
at clojure.core$load$fn__4890.invoke(core.clj:5415) at
clojure.core$load.doInvoke(core.clj:5414) at
clojure.lang.RestFn.invoke(RestFn.java:408) at
clojure.core$load_one.invoke(core.clj:5227) at
clojure.core$compile$fn__4895.invoke(core.clj:5426) at
clojure.core$compile.invoke(core.clj:5425) at
user$eval7.invoke(NO_SOURCE_FILE:1) at
clojure.lang.Compiler.eval(Compiler.java:6511) at
clojure.lang.Compiler.eval(Compiler.java:6501) at
clojure.lang.Compiler.eval(Compiler.java:6477) at
clojure.core$eval.invoke(core.clj:2797) at
clojure.main$eval_opt.invoke(main.clj:297) at
clojure.main$initialize.invoke(main.clj:316) at
clojure.main$null_opt.invoke(main.clj:349) at
clojure.main$main.doInvoke(main.clj:427) at
clojure.lang.RestFn.invoke(RestFn.java:421) at
clojure.lang.Var.invoke(Var.java:419) at
clojure.lang.AFn.applyToHelper(AFn.java:163) at
clojure.lang.Var.applyTo(Var.java:532) at
clojure.main.main(main.java:37)

I have contacted leiningen on IRC and they suggested that it might be
Storm. I am attaching the logs that I generated with: export
DEBUG=true lein with-profile release jar > system_jar.txt 2>&1

Mac OS X Log: http://pastebin.com/YvBRisSH Ubuntu 12.04 Log:
http://pastebin.com/6KMKF63e

---------- d2r: I had to add :require LocalDRPC before the :import.

The cause might have to do with build order...

--------- alexcpsec: I had the same issue and fixed it the same
way. Is there a pull request for this yet

---------- alchemist0: I am running into this error too. I am not very
strong with the clojure syntax. Could someone either give me the code
which needs to be inserted verbatim, or share their working
testing4j.clj file with me?

---------- d2r: I have the following:

  1 (ns backtype.storm.testing4j 
  2 (:import [java.util Map List Collection ArrayList]) 
  3 (:require [backtype.storm LocalCluster]) 
  4 (:import [backtype.storm Config ILocalCluster LocalCluster])

---------- ypf412: In my environment, I have the following: 1 (ns
backtype.storm.testing4j 2 (:import [java.util Map List Collection
ArrayList]) 3 (:require [backtype.storm.LocalCluster :as
LocalCluster]) and 1 (ns storm.trident.testing 2 (:require
[backtype.storm.LocalDRPC :as LocalDRPC])



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)