Skip to content

Instantly share code, notes, and snippets.

@webdevwilson
Created December 20, 2012 02:46
Show Gist options
  • Save webdevwilson/4342546 to your computer and use it in GitHub Desktop.
Save webdevwilson/4342546 to your computer and use it in GitHub Desktop.
bug report
load('vertx.js');
vertx.fileSystem.mkDir('a/b/c/d', true, function(err, res) {
if (!err) {
vertx.logger.info('Directory created ok');
} else {
vertx.logger.info(err);
}
});
// vert.x version: vert.x-1.3.0.final
// os: OSX 10.7.4
// jvm:
// java version "1.7.0_05"
// Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
// Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
//
// workaround: add null perms argument
//
// yields:
// org.mozilla.javascript.EvaluatorException: Can't find method org.vertx.java.core.file.impl.DefaultFileSystem.mkdir(string,null,function,function). (core/filesystem.js#203)
// at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:77)
// at org.mozilla.javascript.Context.reportRuntimeError(Context.java:913)
// at org.mozilla.javascript.Context.reportRuntimeError(Context.java:969)
// at org.mozilla.javascript.Context.reportRuntimeError1(Context.java:932)
// at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:144)
// at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
// at org.mozilla.javascript.gen.core_filesystem_js_13._c_anonymous_29(core/filesystem.js:203)
// at org.mozilla.javascript.gen.core_filesystem_js_13.call(core/filesystem.js)
// at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
// at org.mozilla.javascript.gen.file__Users_kwilson_Documents_Projects_frn_longjump_build_testbug_js_1._c_script_0(file:/Users/kwilson/Documents/Projects/frn/longjump/build/testbug.js:2)
// at org.mozilla.javascript.gen.file__Users_kwilson_Documents_Projects_frn_longjump_build_testbug_js_1.call(file:/Users/kwilson/Documents/Projects/frn/longjump/build/testbug.js)
// at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
// at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
// at org.mozilla.javascript.gen.file__Users_kwilson_Documents_Projects_frn_longjump_build_testbug_js_1.call(file:/Users/kwilson/Documents/Projects/frn/longjump/build/testbug.js)
// at org.mozilla.javascript.gen.file__Users_kwilson_Documents_Projects_frn_longjump_build_testbug_js_1.exec(file:/Users/kwilson/Documents/Projects/frn/longjump/build/testbug.js)
// at org.mozilla.javascript.commonjs.module.Require.executeModuleScript(Require.java:340)
// at org.mozilla.javascript.commonjs.module.Require.getExportedModuleInterface(Require.java:288)
// at org.mozilla.javascript.commonjs.module.Require.requireMain(Require.java:137)
// at org.vertx.java.deploy.impl.rhino.RhinoVerticle.start(RhinoVerticle.java:230)
// at org.vertx.java.deploy.impl.VerticleManager$10.run(VerticleManager.java:745)
// at org.vertx.java.core.impl.Context$2.run(Context.java:122)
// at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processEventQueue(AbstractNioWorker.java:453)
// at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:330)
// at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35)
// at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:102)
// at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
// at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
// at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
// at java.lang.Thread.run(Thread.java:722)
//Exception in JavaScript verticle:
//Can't find method org.vertx.java.core.file.impl.DefaultFileSystem.mkdir(string,null,function,function).
// at core/filesystem.js:203 (anonymous)
// at file:/Users/kwilson/Documents/Projects/frn/longjump/build/testbug.js:2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment