Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mod rhino failing on javascript error #22

Open
steowens opened this issue Feb 12, 2014 · 6 comments
Open

mod rhino failing on javascript error #22

steowens opened this issue Feb 12, 2014 · 6 comments

Comments

@steowens
Copy link

I am using the distro for vert.x-2.1M5, which includes
io.vertxlang-rhino2.0.0-final

At any rate any app I write dies with this error:

Failed in deploying verticle
org.mozilla.javascript.EvaluatorException: missing name after . operator (file:/usr/local/vert.x-2.1M5/sys-mods/io.vertxlang-rhino2.0.0-final/vertx/http.js#1029)
at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)
at org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:96)
at org.mozilla.javascript.Parser.addError(Parser.java:146)
at org.mozilla.javascript.Parser.reportError(Parser.java:160)
at org.mozilla.javascript.Parser.memberExprTail(Parser.java:2015)
at org.mozilla.javascript.Parser.memberExpr(Parser.java:1953)
at org.mozilla.javascript.Parser.unaryExpr(Parser.java:1808)
at org.mozilla.javascript.Parser.mulExpr(Parser.java:1737)
at org.mozilla.javascript.Parser.addExpr(Parser.java:1718)
at org.mozilla.javascript.Parser.shiftExpr(Parser.java:1698)
at org.mozilla.javascript.Parser.relExpr(Parser.java:1672)
at org.mozilla.javascript.Parser.eqExpr(Parser.java:1628)
at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:1617)
at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:1606)
at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:1595)
at org.mozilla.javascript.Parser.andExpr(Parser.java:1583)
at org.mozilla.javascript.Parser.orExpr(Parser.java:1571)
at org.mozilla.javascript.Parser.condExpr(Parser.java:1554)
at org.mozilla.javascript.Parser.assignExpr(Parser.java:1539)
at org.mozilla.javascript.Parser.expr(Parser.java:1518)
at org.mozilla.javascript.Parser.statementHelper(Parser.java:1245)
at org.mozilla.javascript.Parser.statement(Parser.java:708)
at org.mozilla.javascript.Parser.parseFunctionBody(Parser.java:463)
at org.mozilla.javascript.Parser.function(Parser.java:592)
at org.mozilla.javascript.Parser.primaryExpr(Parser.java:2231)
at org.mozilla.javascript.Parser.memberExpr(Parser.java:1950)
at org.mozilla.javascript.Parser.unaryExpr(Parser.java:1808)
at org.mozilla.javascript.Parser.mulExpr(Parser.java:1737)
at org.mozilla.javascript.Parser.addExpr(Parser.java:1718)
at org.mozilla.javascript.Parser.shiftExpr(Parser.java:1698)
at org.mozilla.javascript.Parser.relExpr(Parser.java:1672)
at org.mozilla.javascript.Parser.eqExpr(Parser.java:1628)
at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:1617)
at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:1606)
at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:1595)
at org.mozilla.javascript.Parser.andExpr(Parser.java:1583)
at org.mozilla.javascript.Parser.orExpr(Parser.java:1571)
at org.mozilla.javascript.Parser.condExpr(Parser.java:1554)
at org.mozilla.javascript.Parser.assignExpr(Parser.java:1539)
at org.mozilla.javascript.Parser.assignExpr(Parser.java:1545)
at org.mozilla.javascript.Parser.expr(Parser.java:1518)
at org.mozilla.javascript.Parser.statementHelper(Parser.java:1201)
at org.mozilla.javascript.Parser.statement(Parser.java:708)
at org.mozilla.javascript.Parser.parse(Parser.java:401)
at org.mozilla.javascript.Parser.parse(Parser.java:359)
at org.mozilla.javascript.Context.compileImpl(Context.java:2254)
at org.mozilla.javascript.Context.compileReader(Context.java:1202)
at org.mozilla.javascript.commonjs.module.provider.CachingModuleScriptProviderBase.getModuleScript(CachingModuleScriptProviderBase.java:89)
at org.mozilla.javascript.commonjs.module.provider.SoftCachingModuleScriptProvider.getModuleScript(SoftCachingModuleScriptProvider.java:67)
at org.vertx.java.platform.impl.RhinoVerticleFactory$1.getModuleScript(RhinoVerticleFactory.java:153)
at org.mozilla.javascript.commonjs.module.Require.getModule(Require.java:363)
at org.mozilla.javascript.commonjs.module.Require.getExportedModuleInterface(Require.java:264)
at org.mozilla.javascript.commonjs.module.Require.call(Require.java:218)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
at org.mozilla.javascript.gen.c2._c0(file:/usr/local/vert.x-2.1M5/sys-mods/io.vertxlang-rhino2.0.0-final/vertx.js:67)
at org.mozilla.javascript.gen.c2.call(file:/usr/local/vert.x-2.1M5/sys-mods/io.vertxlang-rhino2.0.0-final/vertx.js)
at org.mozilla.javascript.gen.c2.exec(file:/usr/local/vert.x-2.1M5/sys-mods/io.vertxlang-rhino2.0.0-final/vertx.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.call(Require.java:218)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
at org.mozilla.javascript.gen.c1._c0(file:/Users/sowens/Documents/workspace/SessionService/app.js:1)
at org.mozilla.javascript.gen.c1.call(file:/Users/sowens/Documents/workspace/SessionService/app.js)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003)
at org.mozilla.javascript.gen.c1.call(file:/Users/sowens/Documents/workspace/SessionService/app.js)
at org.mozilla.javascript.gen.c1.exec(file:/Users/sowens/Documents/workspace/SessionService/app.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.platform.impl.RhinoVerticleFactory$RhinoVerticle.start(RhinoVerticleFactory.java:229)
at org.vertx.java.platform.Verticle.start(Verticle.java:82)
at org.vertx.java.platform.impl.DefaultPlatformManager$21.run(DefaultPlatformManager.java:1708)
at org.vertx.java.core.impl.DefaultContext$3.run(DefaultContext.java:176)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:353)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
at java.lang.Thread.run(Thread.java:744)

@lance
Copy link
Contributor

lance commented Feb 12, 2014

Hmm. I am not able to reproduce this. Do you have any more information you can give me to go on?

~ ❯❯❯ vertx version
2.1M5 (built 2014-01-30 08:25:08)
~ ❯❯❯ cat server.js
var http = require('vertx/http');

http.createHttpServer().requestHandler(function(req) {
  var file = req.path() === '/' ? 'index.html' : req.path();
  req.response.chunked(true);
  req.response.write('Hello world');
  req.response.end();
}).listen(8080);
~ ❯❯❯ vertx run server.js
Module io.vertx~lang-rhino~2.0.0-final successfully installed
Succeeded in deploying verticle

It's clear that you're getting an error where HttpClientRequest.delete() is defined, which makes me think you are perhaps running a different version of the rhino jar somehow since delete is a keyword in javascript, and I can imagine a non-compliant parser not being happy about it being a property name. Just a shot in the dark, but could there be anything different about your environment?

@steowens
Copy link
Author

Below is a repro and I am including the vertx version I am using.SE-STEOWENS-MB1:SessionService sowens$ vertx version2.1M5 (built 2014-01-30 08:25:08) SE-STEOWENS-MB1:SessionService sowens$ cat Server.jsvar http = require('vertx/http');http.createHttpServer().requestHandler(function(req) {  var file = req.path() === '/' ? 'index.html' : req.path();  req.response.chunked(true);  req.response.write('Hello world');  req.response.end();}).listen(8080);SE-STEOWENS-MB1:SessionService sowens$ vertx run Server.jsUsing java.util.logging as the default logging framework -Dio.netty.leakDetectionLevel: simple -Dio.netty.eventLoopThreads: 16 java.nio.ByteBuffer.cleaner: available java.nio.Buffer.address: available sun.misc.Unsafe.theUnsafe: available sun.misc.Unsafe.copyMemory: available java.nio.Bits.unaligned: true -Dio.netty.noKeySetOptimization: false -Dio.netty.selectorAutoRebuildThreshold: 512 Failed in deploying verticle org.mozilla.javascript.EvaluatorException: missing name after . operator (file:/usr/local/vert.x-2.1M5/sys-mods/io.vertxlang-rhino2.0.0-final/vertx/http.js#1029)    at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)    at org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:96)    at org.mozilla.javascript.Parser.addError(Parser.java:146)    at org.mozilla.javascript.Parser.reportError(Parser.java:160)    at org.mozilla.javascript.Parser.memberExprTail(Parser.java:2015)    at org.mozilla.javascript.Parser.memberExpr(Parser.java:1953)    at org.mozilla.javascript.Parser.unaryExpr(Parser.java:1808)    at org.mozilla.javascript.Parser.mulExpr(Parser.java:1737)    at org.mozilla.javascript.Parser.addExpr(Parser.java:1718)    at org.mozilla.javascript.Parser.shiftExpr(Parser.java:1698)    at org.mozilla.javascript.Parser.relExpr(Parser.java:1672)    at org.mozilla.javascript.Parser.eqExpr(Parser.java:1628)    at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:1617)    at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:1606)    at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:1595)    at org.mozilla.javascript.Parser.andExpr(Parser.java:1583)    at org.mozilla.javascript.Parser.orExpr(Parser.java:1571)    at org.mozilla.javascript.Parser.condExpr(Parser.java:1554)    at org.mozilla.javascript.Parser.assignExpr(Parser.java:1539)    at org.mozilla.javascript.Parser.expr(Parser.java:1518)    at org.mozilla.javascript.Parser.statementHelper(Parser.java:1245)    at org.mozilla.javascript.Parser.statement(Parser.java:708)    at org.mozilla.javascript.Parser.parseFunctionBody(Parser.java:463)    at org.mozilla.javascript.Parser.function(Parser.java:592)    at org.mozilla.javascript.Parser.primaryExpr(Parser.java:2231)    at org.mozilla.javascript.Parser.memberExpr(Parser.java:1950)    at org.mozilla.javascript.Parser.unaryExpr(Parser.java:1808)    at org.mozilla.javascript.Parser.mulExpr(Parser.java:1737)    at org.mozilla.javascript.Parser.addExpr(Parser.java:1718)    at org.mozilla.javascript.Parser.shiftExpr(Parser.java:1698)    at org.mozilla.javascript.Parser.relExpr(Parser.java:1672)    at org.mozilla.javascript.Parser.eqExpr(Parser.java:1628)    at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:1617)    at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:1606)    at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:1595)    at org.mozilla.javascript.Parser.andExpr(Parser.java:1583)    at org.mozilla.javascript.Parser.orExpr(Parser.java:1571)    at org.mozilla.javascript.Parser.condExpr(Parser.java:1554)    at org.mozilla.javascript.Parser.assignExpr(Parser.java:1539)    at org.mozilla.javascript.Parser.assignExpr(Parser.java:1545)    at org.mozilla.javascript.Parser.expr(Parser.java:1518)    at org.mozilla.javascript.Parser.statementHelper(Parser.java:1201)    at org.mozilla.javascript.Parser.statement(Parser.java:708)    at org.mozilla.javascript.Parser.parse(Parser.java:401)    at org.mozilla.javascript.Parser.parse(Parser.java:359)    at org.mozilla.javascript.Context.compileImpl(Context.java:2254)    at org.mozilla.javascript.Context.compileReader(Context.java:1202)    at org.mozilla.javascript.commonjs.module.provider.CachingModuleScriptProviderBase.getModuleScript(CachingModuleScriptProviderBase.java:89)    at org.mozilla.javascript.commonjs.module.provider.SoftCachingModuleScriptProvider.getModuleScript(SoftCachingModuleScriptProvider.java:67)    at org.vertx.java.platform.impl.RhinoVerticleFactory$1.getModuleScript(RhinoVerticleFactory.java:153)    at org.mozilla.javascript.commonjs.module.Require.getModule(Require.java:363)    at org.mozilla.javascript.commonjs.module.Require.getExportedModuleInterface(Require.java:264)    at org.mozilla.javascript.commonjs.module.Require.call(Require.java:218)    at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)    at org.mozilla.javascript.gen.c1._c0(file:/Users/sowens/Documents/workspace/SessionService/Server.js:1)    at org.mozilla.javascript.gen.c1.call(file:/Users/sowens/Documents/workspace/SessionService/Server.js)    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401)    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003)    at org.mozilla.javascript.gen.c1.call(file:/Users/sowens/Documents/workspace/SessionService/Server.js)    at org.mozilla.javascript.gen.c1.exec(file:/Users/sowens/Documents/workspace/SessionService/Server.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.platform.impl.RhinoVerticleFactory$RhinoVerticle.start(RhinoVerticleFactory.java:229)    at org.vertx.java.platform.Verticle.start(Verticle.java:82)    at org.vertx.java.platform.impl.DefaultPlatformManager$21.run(DefaultPlatformManager.java:1708)    at org.vertx.java.core.impl.DefaultContext$3.run(DefaultContext.java:176)    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354)    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:353)    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)    at java.lang.Thread.run(Thread.java:744)Failed in deploying verticle org.mozilla.javascript.EvaluatorException: missing name after . operator (file:/usr/local/vert.x-2.1M5/sys-mods/io.vertxlang-rhino2.0.0-final/vertx/http.js#1029)    at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)    at org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:96)    at org.mozilla.javascript.Parser.addError(Parser.java:146)    at org.mozilla.javascript.Parser.reportError(Parser.java:160)    at org.mozilla.javascript.Parser.memberExprTail(Parser.java:2015)    at org.mozilla.javascript.Parser.memberExpr(Parser.java:1953)    at org.mozilla.javascript.Parser.unaryExpr(Parser.java:1808)    at org.mozilla.javascript.Parser.mulExpr(Parser.java:1737)    at org.mozilla.javascript.Parser.addExpr(Parser.java:1718)    at org.mozilla.javascript.Parser.shiftExpr(Parser.java:1698)    at org.mozilla.javascript.Parser.relExpr(Parser.java:1672)    at org.mozilla.javascript.Parser.eqExpr(Parser.java:1628)    at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:1617)    at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:1606)    at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:1595)    at org.mozilla.javascript.Parser.andExpr(Parser.java:1583)    at org.mozilla.javascript.Parser.orExpr(Parser.java:1571)    at org.mozilla.javascript.Parser.condExpr(Parser.java:1554)    at org.mozilla.javascript.Parser.assignExpr(Parser.java:1539)    at org.mozilla.javascript.Parser.expr(Parser.java:1518)    at org.mozilla.javascript.Parser.statementHelper(Parser.java:1245)    at org.mozilla.javascript.Parser.statement(Parser.java:708)    at org.mozilla.javascript.Parser.parseFunctionBody(Parser.java:463)    at org.mozilla.javascript.Parser.function(Parser.java:592)    at org.mozilla.javascript.Parser.primaryExpr(Parser.java:2231)    at org.mozilla.javascript.Parser.memberExpr(Parser.java:1950)    at org.mozilla.javascript.Parser.unaryExpr(Parser.java:1808)    at org.mozilla.javascript.Parser.mulExpr(Parser.java:1737)    at org.mozilla.javascript.Parser.addExpr(Parser.java:1718)    at org.mozilla.javascript.Parser.shiftExpr(Parser.java:1698)    at org.mozilla.javascript.Parser.relExpr(Parser.java:1672)    at org.mozilla.javascript.Parser.eqExpr(Parser.java:1628)    at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:1617)    at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:1606)    at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:1595)    at org.mozilla.javascript.Parser.andExpr(Parser.java:1583)    at org.mozilla.javascript.Parser.orExpr(Parser.java:1571)    at org.mozilla.javascript.Parser.condExpr(Parser.java:1554)    at org.mozilla.javascript.Parser.assignExpr(Parser.java:1539)    at org.mozilla.javascript.Parser.assignExpr(Parser.java:1545)    at org.mozilla.javascript.Parser.expr(Parser.java:1518)    at org.mozilla.javascript.Parser.statementHelper(Parser.java:1201)    at org.mozilla.javascript.Parser.statement(Parser.java:708)    at org.mozilla.javascript.Parser.parse(Parser.java:401)    at org.mozilla.javascript.Parser.parse(Parser.java:359)    at org.mozilla.javascript.Context.compileImpl(Context.java:2254)    at org.mozilla.javascript.Context.compileReader(Context.java:1202)    at org.mozilla.javascript.commonjs.module.provider.CachingModuleScriptProviderBase.getModuleScript(CachingModuleScriptProviderBase.java:89)    at org.mozilla.javascript.commonjs.module.provider.SoftCachingModuleScriptProvider.getModuleScript(SoftCachingModuleScriptProvider.java:67)    at org.vertx.java.platform.impl.RhinoVerticleFactory$1.getModuleScript(RhinoVerticleFactory.java:153)    at org.mozilla.javascript.commonjs.module.Require.getModule(Require.java:363)    at org.mozilla.javascript.commonjs.module.Require.getExportedModuleInterface(Require.java:264)    at org.mozilla.javascript.commonjs.module.Require.call(Require.java:218)    at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)    at org.mozilla.javascript.gen.c1._c0(file:/Users/sowens/Documents/workspace/SessionService/Server.js:1)    at org.mozilla.javascript.gen.c1.call(file:/Users/sowens/Documents/workspace/SessionService/Server.js)    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401)    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003)    at org.mozilla.javascript.gen.c1.call(file:/Users/sowens/Documents/workspace/SessionService/Server.js)    at org.mozilla.javascript.gen.c1.exec(file:/Users/sowens/Documents/workspace/SessionService/Server.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.platform.impl.RhinoVerticleFactory$RhinoVerticle.start(RhinoVerticleFactory.java:229)    at org.vertx.java.platform.Verticle.start(Verticle.java:82)    at org.vertx.java.platform.impl.DefaultPlatformManager$21.run(DefaultPlatformManager.java:1708)    at org.vertx.java.core.impl.DefaultContext$3.run(DefaultContext.java:176)    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354)    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:353)    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)    at java.lang.Thread.run(Thread.java:744)

-------- Original Message --------
Subject: Re: [mod-lang-rhino] mod rhino failing on javascript error
(#22)
From: Lance Ball notifications@github.com
Date: Wed, February 12, 2014 8:59 am
To: vert-x/mod-lang-rhino mod-lang-rhino@noreply.github.com
Cc: Steve Owens steve@doitnext.comHmm. I am not able to reproduce this. Do you have any more information you can give me to go on? ~ ❯❯❯ vertx version
2.1M5 (built 2014-01-30 08:25:08)
~ ❯❯❯ cat server.js
var http = require('vertx/http');

http.createHttpServer().requestHandler(function(req) {
var file = req.path() === '/' ? 'index.html' : req.path();
req.response.chunked(true);
req.response.write('Hello world');
req.response.end();
}).listen(8080);
~ ❯❯❯ vertx run server.js
Module io.vertxlang-rhino2.0.0-final successfully installed
Succeeded in deploying verticle
It's clear that you're getting an error where HttpClientRequest.delete() is defined, which makes me think you are perhaps running a different version of the rhino jar somehow since delete is a keyword in javascript, and I can imagine a non-compliant parser not being happy about it being a property name. Just a shot in the dark, but could there be anything different about your environment? —Reply to this email directly or view it on GitHub.

@steowens
Copy link
Author

How would we identify a discrepancy between Rhino Jar's. I am using the same version you are of vertx. Is vertx self contained or is it possible that it is pulling in other Jar files from elsewhere?

Also, just why would you use a keyword as a property name anyhow? It plays havoc with my syntax checker in the IDE.

@steowens
Copy link
Author

"Also, just why would you use a keyword as a property name anyhow? It plays havoc with my syntax checker in the IDE." - NVM This question should properly be directed to the Mongoose team who likes to define schemas with property names and values that correspond to javascript keywords, when simply placing "" marks around them would fix the syntax checking.

@lance
Copy link
Contributor

lance commented Feb 12, 2014

Well, yes the Rhino jar is shipped with mod-lang-rhino in version 2.0.0-final. If you look in $VERTX_HOME/sys-mods/io.vertx~lang-rhino~2.0.0-final/lib you should see rhino-1.7R4.jar in there. If that's the case, then maybe you've got a rhino jar somewhere in your classpath that is interfering. What version of Java are you using?

As for using delete as a property name, I'm not sure I want to defend it vehemently, but it is legal Javascript syntax, so there's technically nothing wrong with it. The intent is to model the HTTP methods, one of which is DELETE. So, that's the historical reason.

@steowens
Copy link
Author

Ok so when I look in the directory:se-steowens-mb1:lib sowens$ ls /usr/local/vert.x/sys-mods/io.vertxlang-rhino2.0.0-final/lib/rhino-1.7R4.jarDo we have a way to turn on some sort of logging to identify what jars are being loaded on vert.x startup?

-------- Original Message --------
Subject: Re: [mod-lang-rhino] mod rhino failing on javascript error
(#22)
From: Lance Ball notifications@github.com
Date: Wed, February 12, 2014 2:21 pm
To: vert-x/mod-lang-rhino mod-lang-rhino@noreply.github.com
Cc: Steve Owens steve@doitnext.comWell, yes the Rhino jar is shipped with mod-lang-rhino in version 2.0.0-final. If you look in $VERTX_HOME/sys-mods/io.vertxlang-rhino2.0.0-final/lib you should see rhino-1.7R4.jar in there. If that's the case, then maybe you've got a rhino jar somewhere in your classpath that is interfering. What version of Java are you using? As for using delete as a property name, I'm not sure I want to defend it vehemently, but it is legal Javascript syntax, so there's technically nothing wrong with it. The intent is to model the HTTP methods, one of which is DELETE. So, that's the historical reason. —Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants