On Sep 1, 8:22 am, virg <[email protected]> wrote: > Hi, > We are using JS Engine 1.6 for executing Java script functions which > is embedded in our applicaiton. While loading external java script > file, JS execution is throwing following exception. > > WARNING: Unable to evaluate Javascript code > org.mozilla.javascript.EvaluatorException: missing ) after argument > list (http://test/javascripts/view.js) > at org.mozilla.javascript.DefaultErrorReporter.runtimeError > (DefaultErrorReporter.java:98) > at org.mozilla.javascript.DefaultErrorReporter.error > (DefaultErrorReporter.java:85) > at org.mozilla.javascript.Parser.addError(Parser.java:126) > at org.mozilla.javascript.Parser.reportError(Parser.java:132) > at org.mozilla.javascript.Parser.mustMatchToken(Parser.java:218) > at org.mozilla.javascript.Parser.argumentList(Parser.java:1599) > at org.mozilla.javascript.Parser.memberExprTail(Parser.java:1729) > at org.mozilla.javascript.Parser.memberExpr(Parser.java:1644) > at org.mozilla.javascript.Parser.unaryExpr(Parser.java:1507) > at org.mozilla.javascript.Parser.mulExpr(Parser.java:1436) > at org.mozilla.javascript.Parser.addExpr(Parser.java:1417) > at org.mozilla.javascript.Parser.shiftExpr(Parser.java:1397) > at org.mozilla.javascript.Parser.relExpr(Parser.java:1371) > at org.mozilla.javascript.Parser.eqExpr(Parser.java:1327) > at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:1316) > at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:1305) > at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:1294) > at org.mozilla.javascript.Parser.andExpr(Parser.java:1282) > at org.mozilla.javascript.Parser.orExpr(Parser.java:1270) > at org.mozilla.javascript.Parser.condExpr(Parser.java:1253) > at org.mozilla.javascript.Parser.assignExpr(Parser.java:1235) > at org.mozilla.javascript.Parser.expr(Parser.java:1224) > at org.mozilla.javascript.Parser.statementHelper(Parser.java:1046) > at org.mozilla.javascript.Parser.statement(Parser.java:623) > at org.mozilla.javascript.Parser.statements(Parser.java:576) > at org.mozilla.javascript.Parser.statementHelper(Parser.java:1057) > at org.mozilla.javascript.Parser.statement(Parser.java:623) > at org.mozilla.javascript.Parser.statementHelper(Parser.java:673) > at org.mozilla.javascript.Parser.statement(Parser.java:623) > at org.mozilla.javascript.Parser.parseFunctionBody(Parser.java:417) > at org.mozilla.javascript.Parser.function(Parser.java:523) > at org.mozilla.javascript.Parser.primaryExpr(Parser.java:1837) > at org.mozilla.javascript.Parser.memberExpr(Parser.java:1641) > at org.mozilla.javascript.Parser.unaryExpr(Parser.java:1507) > at org.mozilla.javascript.Parser.mulExpr(Parser.java:1436) > at org.mozilla.javascript.Parser.addExpr(Parser.java:1417) > at org.mozilla.javascript.Parser.shiftExpr(Parser.java:1397) > at org.mozilla.javascript.Parser.relExpr(Parser.java:1371) > at org.mozilla.javascript.Parser.eqExpr(Parser.java:1327) > at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:1316) > at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:1305) > at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:1294) > at org.mozilla.javascript.Parser.andExpr(Parser.java:1282) > at org.mozilla.javascript.Parser.orExpr(Parser.java:1270) > at org.mozilla.javascript.Parser.condExpr(Parser.java:1253) > at org.mozilla.javascript.Parser.assignExpr(Parser.java:1235) > at org.mozilla.javascript.Parser.assignExpr(Parser.java:1241) > at org.mozilla.javascript.Parser.expr(Parser.java:1224) > at org.mozilla.javascript.Parser.statementHelper(Parser.java:1111) > at org.mozilla.javascript.Parser.statement(Parser.java:623) > at org.mozilla.javascript.Parser.parse(Parser.java:355) > at org.mozilla.javascript.Parser.parse(Parser.java:293) > at org.mozilla.javascript.Context.compileImpl(Context.java:2238) > at org.mozilla.javascript.Context.compileString(Context.java:1284) > at org.mozilla.javascript.Context.compileString(Context.java:1273) > at org.mozilla.javascript.Context.evaluateString(Context.java:1129) > > and it is exiting from that java script file. Because of this error it > is unable to locate the javascript function which is being called from > our application. How can we fix this problem? Any solution or work > around please help me. > > Thanks in advance > > virg
Looks like there is a syntax error in the file you're attempting to load. Can you fix that, or are you asking a more subtle question? --N _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
