sun.org.mozilla.javascript.EvaluatorException: Encountered code
generation error while compiling function "test_stuff": generated
bytecode for method exceeds 64K limit. (cljs/core.cljs#2743)
at sun.org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)
at sun.org.mozilla.javascript.Context.reportRuntimeError(Context.java:938)
at sun.org.mozilla.javascript.optimizer.Codegen.reportClassFileFormatException(Codegen.java:196)
at sun.org.mozilla.javascript.optimizer.Codegen.generateCode(Codegen.java:329)
at sun.org.mozilla.javascript.optimizer.Codegen.compileToClassFile(Codegen.java:182)
at sun.org.mozilla.javascript.optimizer.Codegen.compile(Codegen.java:91)
at sun.org.mozilla.javascript.Context.compileImpl(Context.java:2391)
at sun.org.mozilla.javascript.Context.compileString(Context.java:1359)
at sun.org.mozilla.javascript.Context.compileString(Context.java:1348)
at sun.org.mozilla.javascript.Context.evaluateString(Context.java:1101)
at cljs.compiler$eval1.invoke(compiler.clj:921)
at cljs.compiler$load_stream.invoke(compiler.clj:944)
at cljs.compiler$goog_require$fn__804.invoke(compiler.clj:966)
at cljs.compiler$goog_require.invoke(compiler.clj:965)
at clojure.lang.Var.invoke(Var.java:405)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at sun.org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
at sun.org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
at sun.org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
at sun.org.mozilla.javascript.gen.c7._c1(goog/base.js:11)
at sun.org.mozilla.javascript.gen.c7.call(goog/base.js)
at sun.org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
at sun.org.mozilla.javascript.gen.c1710._c0(cljs/core.cljs:1003)
at sun.org.mozilla.javascript.gen.c1710.call(cljs/core.cljs)
at sun.org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
at sun.org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
at sun.org.mozilla.javascript.gen.c1710.call(cljs/core.cljs)
at sun.org.mozilla.javascript.gen.c1710.exec(cljs/core.cljs)
at sun.org.mozilla.javascript.Context.evaluateString(Context.java:1104)
at cljs.compiler$eval1.invoke(compiler.clj:921)
at cljs.compiler$repl.doInvoke(compiler.clj:1001)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at user$eval842.invoke(NO_SOURCE_FILE:10)
at clojure.lang.Compiler.eval(Compiler.java:6406)
at clojure.lang.Compiler.eval(Compiler.java:6372)
at clojure.core$eval.invoke(core.clj:2745)
at clojure.main$repl$read_eval_print__6016.invoke(main.clj:244)
at clojure.main$repl$fn__6021.invoke(main.clj:265)
at clojure.main$repl.doInvoke(main.clj:265)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.main$repl_opt.invoke(main.clj:331)
at clojure.main$main.doInvoke(main.clj:427)
at clojure.lang.RestFn.invoke(RestFn.java:397)
at clojure.lang.Var.invoke(Var.java:397)
at clojure.lang.AFn.applyToHelper(AFn.java:159)
at clojure.lang.Var.applyTo(Var.java:518)
at clojure.main.main(main.java:37)
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com
> Note that posts from new members are moderated - please be patient with your first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://www.getrailo.com/
"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)
cljsc nodehello.cljs {:optimizations :advanced :target :nodejs} > nodehello.js
sun.org.mozilla.javascript.EvaluatorException: Encountered code
generation error while compiling function "test_stuff": generated
bytecode for method exceeds 64K limit. (cljs/core.cljs#2743)
at sun.org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)
at sun.org.mozilla.javascript.Context.reportRuntimeError(Context.java:938)
at sun.org.mozilla.javascript.optimizer.Codegen.reportClassFileFormatException(Codegen.java:196)
at sun.org.mozilla.javascript.optimizer.Codegen.generateCode(Codegen.java:329)
at sun.org.mozilla.javascript.optimizer.Codegen.compileToClassFile(Codegen.java:182)
at sun.org.mozilla.javascript.optimizer.Codegen.compile(Codegen.java:91)
at sun.org.mozilla.javascript.Context.compileImpl(Context.java:2391)
at sun.org.mozilla.javascript.Context.compileString(Context.java:1359)
at sun.org.mozilla.javascript.Context.compileString(Context.java:1348)
at sun.org.mozilla.javascript.Context.evaluateString(Context.java:1101)
at cljs.compiler$eval1.invoke(compiler.clj:921)
at cljs.compiler$load_stream.invoke(compiler.clj:944)
at cljs.compiler$load_file.invoke(compiler.clj:954)
at cljs.closure$compile_form_seq.invoke(closure.clj:206)
at cljs.closure$compile_file.invoke(closure.clj:228)
at cljs.closure$eval1120$fn__1121.invoke(closure.clj:266)
at cljs.closure$eval1056$fn__1057$G__1047__1064.invoke(closure.clj:187)
at cljs.closure$eval1107$fn__1108.invoke(closure.clj:280)
at cljs.closure$eval1056$fn__1057$G__1047__1064.invoke(closure.clj:187)
at cljs.closure$build.invoke(closure.clj:695)
at user$eval1246.invoke(cljsc.clj:21)
at clojure.lang.Compiler.eval(Compiler.java:6406)
at clojure.lang.Compiler.load(Compiler.java:6843)
at clojure.lang.Compiler.loadFile(Compiler.java:6804)
at clojure.main$load_script.invoke(main.clj:282)
at clojure.main$script_opt.invoke(main.clj:342)
at clojure.main$main.doInvoke(main.clj:426)
at clojure.lang.RestFn.invoke(RestFn.java:512)
at clojure.lang.Var.invoke(Var.java:421)
at clojure.lang.AFn.applyToHelper(AFn.java:185)
at clojure.lang.Var.applyTo(Var.java:518)
at clojure.main.main(main.java:37)
sean@sean-netbook:~/node$ node nodehello.js
/home/sean/node/nodehello.js:1
(defn test-stuff
^^^^
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
SyntaxError: Unexpected identifier
at Module._compile (module.js:397:25)
at Object..js (module.js:408:10)
at Module.load (module.js:334:31)
at Function._load (module.js:293:12)
at Array.<anonymous> (module.js:421:10)
at EventEmitter._tickCallback (node.js:126:26)
Thanx Donald!
I may just switch to the Sun, er, Oracle JVM since I've a feeling one
of my other projects (not yet migrated to my netbook) will require
that JVM anyway...
Just an update: I installed Oracle's JDK and everything is working
perfectly on my Ubuntu netbook :)