org.mozilla.javascript.WrappedException

Wrapped java.lang.IllegalArgumentException: size < 0

Solutions on the web211

  • via Appcelerator JIRA by Dawson Toth, 11 months ago
    Wrapped java.lang.IllegalArgumentException: size < 0
  • via Appcelerator JIRA by Dawson Toth, 1 year ago
    Wrapped java.lang.IllegalArgumentException: size < 0
  • via Appcelerator JIRA by Federico "Lox" Lucignano, 1 year ago
    Wrapped java.lang.IllegalArgumentException: size < 0 (app://examples/commonjs.js#28)
  • Stack trace

    • org.mozilla.javascript.WrappedException: Wrapped java.lang.IllegalArgumentException: size < 0 at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1786) at org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.handleException(KrollContext.java:148) at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:325) at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217) at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:130) at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86) Caused by: java.lang.IllegalArgumentException: size < 0 at java.io.ByteArrayOutputStream.<init>(ByteArrayOutputStream.java:65) at org.appcelerator.titanium.util.TiStreamHelper.toByteArray(TiStreamHelper.java:106) at org.appcelerator.titanium.TiBlob.getBytes(TiBlob.java:120) at org.appcelerator.titanium.TiBlob.getText(TiBlob.java:216) at org.appcelerator.titanium.TiBlob.toString(TiBlob.java:259) at org.appcelerator.kroll.KrollProxy.getDefaultValue(KrollProxy.java:708) at org.appcelerator.kroll.KrollObject.getDefaultValue(KrollObject.java:155) at org.mozilla.javascript.ScriptRuntime.add(ScriptRuntime.java:2668) at org.mozilla.javascript.Interpreter.do_add(Interpreter.java:3039) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1325) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177) at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175) at org.mozilla.javascript.Context.evaluateReader(Context.java:1142) at org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:105) at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306) at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318) ... 5 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago