org.mozilla.javascript.EvaluatorException: Cannot convert id to > java.lang.Integer (server_bootstrap_030.Database.js#163) > at > org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReport er.java:109)

Google Groups | Vinicius Isola | 7 years ago
  1. 0

    Problem with PreparedStatment

    Google Groups | 7 years ago | Vinicius Isola
    org.mozilla.javascript.EvaluatorException: Cannot convert id to > java.lang.Integer (server_bootstrap_030.Database.js#163) > at > org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReport er.java:109)
  2. 0

    Mozilla Rhino JavaScript Engine ()

    gmane.org | 6 months ago
    org.mozilla.javascript.EvaluatorException: Cannot convert id to java.lang.Integer (server_bootstrap_030.Database.js#163) at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)
  3. 0

    trying to run javascript program inside java generates EvaluatorException: Constructor for "ReferenceError" not found

    Stack Overflow | 2 years ago | BevynQ
    org.mozilla.javascript.EvaluatorException: Constructor for "ReferenceError" not found. (C:\Java\rhino1_7R4\rhino1_7R4\env.rhino.1.0.js#75)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Kaltura CE 10.13.0 released - DWH Trouble - Backend Server Support - Kaltura Community Forums

    kaltura.org | 2 months ago
    org.mozilla.javascript.EvaluatorException: The function call createFolder is not valid. (script#3) (script#3)
  6. 0

    h2. Problem The largest integer that can be saved without causing an exception is 2147483647, which is (2^31)-1. Note that large numbers can be successfully saved on: * iOS (according to reporter) * Android + Titanium 1.8.0.1 + v8 * Android + Titanium 1.8.0.1 + rhino h2. Test case {code:lang=javascript|title=app.js} Ti.App.Properties.setInt("lowInt", 2147483647); Ti.API.info("****** lowInt Saved ******"); Ti.App.Properties.setInt("highInt", 2147483648); Ti.API.info("****** highInt Saved ******"); Ti.App.Properties.setInt("veryHighInt", 1325269931753); Ti.API.info("****** veryHighInt Saved ******"); {code} h2. Logs {code:lang=none} 332 KrollContext D (kroll$1: app://app.js) [184,376] Running evaluated script: file:///android_asset/Resources/app.js 332 TiAPI I (kroll$1: app://app.js) [64,440] ****** lowInt Saved ****** 332 TiJSError E (kroll$1: app://app.js) [217,657] ----- Titanium Javascript Runtime Error ----- 332 TiJSError E (kroll$1: app://app.js) [1,658] - In file:///android_asset/Resources/app.js:110,0 332 TiJSError E (kroll$1: app://app.js) [3,661] - Message: Cannot convert 2147483648 to java.lang.Integer 332 TiJSError E (kroll$1: app://app.js) [1,662] - Source: null 332 KrollMethod E (kroll$1: app://app.js) [400,1062] Exception calling kroll method setInt, invocation: null ] 332 KrollMethod E org.mozilla.javascript.EvaluatorException: Cannot convert 2147483648 to java.lang.Integer (file:///andro id_asset/Resources/app.js#110) 332 KrollMethod E at org.appcelerator.titanium.TiContext.runtimeError(TiContext.java:304) 332 KrollMethod E at org.mozilla.javascript.Context.reportRuntimeError(Context.java:946) 332 KrollMethod E at org.mozilla.javascript.Context.reportRuntimeError(Context.java:1001) 332 KrollMethod E at org.mozilla.javascript.Context.reportRuntimeError2(Context.java:971) 332 KrollMethod E at org.mozilla.javascript.NativeJavaObject.reportConversionError(NativeJavaObject.java:896) 332 KrollMethod E at org.mozilla.javascript.NativeJavaObject.toInteger(NativeJavaObject.java:887) 332 KrollMethod E at org.mozilla.javascript.NativeJavaObject.coerceToNumber(NativeJavaObject.java:766) 332 KrollMethod E at org.mozilla.javascript.NativeJavaObject.coerceTypeImpl(NativeJavaObject.java:553) 332 KrollMethod E at org.mozilla.javascript.Context.jsToJava(Context.java:1729) 332 KrollMethod E at org.appcelerator.kroll.KrollConverter.convertJavascript(KrollConverter.java:329) 332 KrollMethod E at ti.modules.titanium.app.properties.PropertiesModuleBindingGen$11.invoke(PropertiesModuleBindingGen.j ava:563) 332 KrollMethod E at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51) 332 KrollMethod E at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701) 332 KrollMethod E at script(file:///android_asset/Resources/app.js:110) 332 KrollMethod E at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854) 332 KrollMethod E at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164) 332 KrollMethod E at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426) 332 KrollMethod E at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177) 332 KrollMethod E at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175) 332 KrollMethod E at org.mozilla.javascript.Context.evaluateReader(Context.java:1142) 332 KrollMethod E at org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:106) 332 KrollMethod E at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:353) 332 KrollMethod E at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:382) 332 KrollMethod E at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:218) 332 KrollMethod E at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223) 332 KrollMethod E at android.os.Handler.dispatchMessage(Handler.java:95) 332 KrollMethod E at android.os.Looper.loop(Looper.java:123) 332 KrollMethod E at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86) 332 KrollContext E (kroll$1: app://app.js) [15,1077] Error evaluating source: Cannot convert 2147483648 to java.lang.Intege r (file:///android_asset/Resources/app.js#110) 332 KrollContext E org.mozilla.javascript.EvaluatorException: Cannot convert 2147483648 to java.lang.Integer (file:///andro id_asset/Resources/app.js#110) 332 KrollContext E at org.appcelerator.titanium.TiContext.runtimeError(TiContext.java:304) 332 KrollContext E at org.mozilla.javascript.Context.reportRuntimeError(Context.java:946) 332 KrollContext E at org.mozilla.javascript.Context.reportRuntimeError(Context.java:1001) 332 KrollContext E at org.mozilla.javascript.Context.reportRuntimeError2(Context.java:971) 332 KrollContext E at org.mozilla.javascript.NativeJavaObject.reportConversionError(NativeJavaObject.java:896) 332 KrollContext E at org.mozilla.javascript.NativeJavaObject.toInteger(NativeJavaObject.java:887) 332 KrollContext E at org.mozilla.javascript.NativeJavaObject.coerceToNumber(NativeJavaObject.java:766) 332 KrollContext E at org.mozilla.javascript.NativeJavaObject.coerceTypeImpl(NativeJavaObject.java:553) 332 KrollContext E at org.mozilla.javascript.Context.jsToJava(Context.java:1729) 332 KrollContext E at org.appcelerator.kroll.KrollConverter.convertJavascript(KrollConverter.java:329) 332 KrollContext E at ti.modules.titanium.app.properties.PropertiesModuleBindingGen$11.invoke(PropertiesModuleBindingGen.j ava:563) 332 KrollContext E at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51) 332 KrollContext E at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701) 332 KrollContext E at script(file:///android_asset/Resources/app.js:110) 332 KrollContext E at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854) 332 KrollContext E at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164) 332 KrollContext E at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426) 332 KrollContext E at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177) 332 KrollContext E at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175) 332 KrollContext E at org.mozilla.javascript.Context.evaluateReader(Context.java:1142) 332 KrollContext E at org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:106) 332 KrollContext E at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:353) 332 KrollContext E at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:382) 332 KrollContext E at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:218) 332 KrollContext E at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223) 332 KrollContext E at android.os.Handler.dispatchMessage(Handler.java:95) 332 KrollContext E at android.os.Looper.loop(Looper.java:123) 332 KrollContext E at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86) 332 TiJSError E (kroll$1: app://app.js) [9,1086] ----- Titanium Javascript Runtime Error ----- 332 TiJSError E (kroll$1: app://app.js) [5,1091] - In file:///android_asset/Resources/app.js:110,0 332 TiJSError E (kroll$1: app://app.js) [0,1091] - Message: Cannot convert 2147483648 to java.lang.Integer (file:///andr oid_asset/Resources/app.js#110) 332 TiJSError E (kroll$1: app://app.js) [1,1092] - Source: null 332 TiRootActivity I (main) [0,0] checkpoint, on root activity resume. context = org.appcelerator.titanium.TiContext@44f20810 {code} h2. Workaround Use {{Ti.App.Properties.\[g|s\]etDouble()}}: {code:lang=javascript|title=app.js} Ti.App.Properties.setDouble("veryHighInt", 1325269931753); Ti.API.info("****** veryHighInt Saved ******"); Ti.App.Properties.setDouble("veryHighIntPlusOneThousand", Ti.App.Properties.getDouble("veryHighInt") + 1000); Ti.API.info("****** veryHighIntPlusOneThousand Saved ******"); Ti.API.info("----> veryHighIntPlusOneThousand = " + Ti.App.Properties.getDouble("veryHighIntPlusOneThousand")); {code} {code:lang=javascript|title=output} 576 KrollContext D (kroll$1: app://app.js) [46,701] Running evaluated script: file:///android_asset/Resources/app.js 576 TiAPI I (kroll$1: app://app.js) [38,739] ****** veryHighInt Saved ****** 576 TiAPI I (kroll$1: app://app.js) [11,750] ****** veryHighIntPlusOneThousand Saved ****** 576 TiAPI I (kroll$1: app://app.js) [3,753] ----> veryHighIntPlusOneThousand = 1325269932753 {code}

    Appcelerator JIRA | 5 years ago | Keith Gable
    org.mozilla.javascript.EvaluatorException: Cannot convert 2147483648 to java.lang.Integer (file:///andro id_asset/Resources/app.js#110)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.mozilla.javascript.EvaluatorException

      Cannot convert id to > java.lang.Integer (server_bootstrap_030.Database.js#163) > at > org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReport er.java:109)

      at org.mozilla.javascript.Context.reportRuntimeError()
    2. Rhino
      Context.reportRuntimeError
      1. org.mozilla.javascript.Context.reportRuntimeError(Context.java:938)
      2. org.mozilla.javascript.Context.reportRuntimeError(Context.java:994)
      2 frames