{ "id": "78270", "key": "TIMOB-4936", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11362", "description": "Mobile 1.8.0 M09", "name": "Sprint 2011-30", "archived": true, "released": true, "releaseDate": "2011-08-01" }, { "id": "11971", "description": "iOS5 and select Android fixes", "name": "Release 1.7.3", "archived": true, "released": true, "releaseDate": "2011-10-18" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-12-01T09:09:43.000+0000", "created": "2011-07-27T01:26:12.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [ { "id": "12175", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "78269", "key": "TIMOB-4802", "fields": { "summary": "Android: Titanium.Filesystem.File read() does not work anymore in 1.7.2 on Android (generates Java exception)", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-12-01T09:09:43.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Another regression for Android (works on iOS), probably related to TIMOB-4802 (Ti.Filesystem issue).\r\n\r\n[KitchenSink commonjs.js example|https://github.com/appcelerator/KitchenSink/blob/master/Resources/examples/commonjs.js] fails at loading a CommonJS javascript module:\r\n\r\n{code:javascript}\r\nvar echo = require('echo');\r\nvar result = echo.echo('hello world');\r\n{code}\r\n\r\ngenerates:\r\n\r\n{code}\r\nD/KrollContext( 423): (kroll$5: app://examples/commonjs.js) [2315,14044] Running evaluated script: app://examples/commonjs.js\r\nD/TitaniumModule( 423): (kroll$5: app://examples/commonjs.js) [128,14172] Attempting to include native module: echo\r\nD/TiFastDev( 423): (kroll$5: app://examples/commonjs.js) [188,14360] sent tokens successfully\r\nE/TitaniumModule( 423): (kroll$5: app://examples/commonjs.js) [3,14363] Error loading module named: echo\r\nE/TitaniumModule( 423): java.lang.IllegalArgumentException: size < 0\r\nE/TitaniumModule( 423): \tat java.io.ByteArrayOutputStream.(ByteArrayOutputStream.java:65)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.util.TiStreamHelper.toByteArray(TiStreamHelper.java:106)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.TiBlob.getBytes(TiBlob.java:120)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.TiBlob.getText(TiBlob.java:216)\r\nE/TitaniumModule( 423): \tat ti.modules.titanium.TitaniumModule.require(TitaniumModule.java:431)\r\nE/TitaniumModule( 423): \tat ti.modules.titanium.TitaniumModuleBindingGen$23.invoke(TitaniumModuleBindingGen.java:875)\r\nE/TitaniumModule( 423): \tat org.appcelerator.kroll.KrollProxy$ThisMethod.invoke(KrollProxy.java:397)\r\nE/TitaniumModule( 423): \tat org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.Context.evaluateReader(Context.java:1142)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:105)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223)\r\nE/TitaniumModule( 423): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\nE/TitaniumModule( 423): \tat android.os.Looper.loop(Looper.java:130)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)\r\nE/KrollMethod( 423): (kroll$5: app://examples/commonjs.js) [33,14396] Exception calling kroll method require, invocation: null ]\r\nE/KrollMethod( 423): org.mozilla.javascript.WrappedException: Wrapped java.lang.IllegalArgumentException: size < 0 (app://examples/commonjs.js#28)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1786)\r\nE/KrollMethod( 423): \tat ti.modules.titanium.TitaniumModule.require(TitaniumModule.java:453)\r\nE/KrollMethod( 423): \tat ti.modules.titanium.TitaniumModuleBindingGen$23.invoke(TitaniumModuleBindingGen.java:875)\r\nE/KrollMethod( 423): \tat org.appcelerator.kroll.KrollProxy$ThisMethod.invoke(KrollProxy.java:397)\r\nE/KrollMethod( 423): \tat org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)\r\nE/KrollMethod( 423): \tat script(app://examples/commonjs.js:28)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.Context.evaluateReader(Context.java:1142)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:105)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223)\r\nE/KrollMethod( 423): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\nE/KrollMethod( 423): \tat android.os.Looper.loop(Looper.java:130)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)\r\nE/KrollMethod( 423): Caused by: java.lang.IllegalArgumentException: size < 0\r\nE/KrollMethod( 423): \tat java.io.ByteArrayOutputStream.(ByteArrayOutputStream.java:65)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.util.TiStreamHelper.toByteArray(TiStreamHelper.java:106)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.TiBlob.getBytes(TiBlob.java:120)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.TiBlob.getText(TiBlob.java:216)\r\nE/KrollMethod( 423): \tat ti.modules.titanium.TitaniumModule.require(TitaniumModule.java:431)\r\nE/KrollMethod( 423): \t... 18 more\r\nD/TitaniumModule( 423): (kroll$5: app://examples/commonjs.js) [199,14595] Attempting to include native module: echo\r\nE/TitaniumModule( 423): (kroll$5: app://examples/commonjs.js) [11,14606] Error loading module named: echo\r\nE/TitaniumModule( 423): java.lang.NullPointerException\r\nE/TitaniumModule( 423): \tat java.lang.String.(String.java:276)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.TiBlob.getText(TiBlob.java:216)\r\nE/TitaniumModule( 423): \tat ti.modules.titanium.TitaniumModule.require(TitaniumModule.java:431)\r\nE/TitaniumModule( 423): \tat ti.modules.titanium.TitaniumModuleBindingGen$23.invoke(TitaniumModuleBindingGen.java:875)\r\nE/TitaniumModule( 423): \tat org.appcelerator.kroll.KrollProxy$ThisMethod.invoke(KrollProxy.java:397)\r\nE/TitaniumModule( 423): \tat org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.Context.evaluateReader(Context.java:1142)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:105)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223)\r\nE/TitaniumModule( 423): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\nE/TitaniumModule( 423): \tat android.os.Looper.loop(Looper.java:130)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)\r\nE/KrollMethod( 423): (kroll$5: app://examples/commonjs.js) [13,14619] Exception calling kroll method require, invocation: null ]\r\nE/KrollMethod( 423): org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (app://examples/commonjs.js#39)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1786)\r\nE/KrollMethod( 423): \tat ti.modules.titanium.TitaniumModule.require(TitaniumModule.java:453)\r\nE/KrollMethod( 423): \tat ti.modules.titanium.TitaniumModuleBindingGen$23.invoke(TitaniumModuleBindingGen.java:875)\r\nE/KrollMethod( 423): \tat org.appcelerator.kroll.KrollProxy$ThisMethod.invoke(KrollProxy.java:397)\r\nE/KrollMethod( 423): \tat org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)\r\nE/KrollMethod( 423): \tat script(app://examples/commonjs.js:39)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.Context.evaluateReader(Context.java:1142)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:105)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223)\r\nE/KrollMethod( 423): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\nE/KrollMethod( 423): \tat android.os.Looper.loop(Looper.java:130)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)\r\nE/KrollMethod( 423): Caused by: java.lang.NullPointerException\r\nE/KrollMethod( 423): \tat java.lang.String.(String.java:276)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.TiBlob.getText(TiBlob.java:216)\r\nE/KrollMethod( 423): \tat ti.modules.titanium.TitaniumModule.require(TitaniumModule.java:431)\r\nE/KrollMethod( 423): \t... 18 more\r\nD/TitaniumModule( 423): (kroll$5: app://examples/commonjs.js) [85,14704] Attempting to include native module: __bad_module__\r\nE/TiFastDev( 423): (kroll$5: app://examples/commonjs.js) [28,14732] Broken pipe\r\nE/TiFastDev( 423): java.net.SocketException: Broken pipe\r\nE/TiFastDev( 423): \tat org.apache.harmony.luni.platform.OSNetworkSystem.write(Native Method)\r\nE/TiFastDev( 423): \tat dalvik.system.BlockGuard$WrappedNetworkSystem.write(BlockGuard.java:284)\r\nE/TiFastDev( 423): \tat org.apache.harmony.luni.net.PlainSocketImpl.write(PlainSocketImpl.java:472)\r\nE/TiFastDev( 423): \tat org.apache.harmony.luni.net.SocketOutputStream.write(SocketOutputStream.java:48)\r\nE/TiFastDev( 423): \tat org.appcelerator.titanium.TiFastDev$Session.sendTokens(TiFastDev.java:430)\r\nE/TiFastDev( 423): \tat org.appcelerator.titanium.TiFastDev.openInputStream(TiFastDev.java:169)\r\nE/TiFastDev( 423): \tat org.appcelerator.titanium.io.TiResourceFile.getInputStream(TiResourceFile.java:61)\r\nE/TiFastDev( 423): \tat org.appcelerator.titanium.TiBlob.getInputStream(TiBlob.java:157)\r\nE/TiFastDev( 423): \tat org.appcelerator.titanium.TiBlob.getBytes(TiBlob.java:117)\r\nE/TiFastDev( 423): \tat org.appcelerator.titanium.TiBlob.getText(TiBlob.java:216)\r\nE/TiFastDev( 423): \tat ti.modules.titanium.TitaniumModule.require(TitaniumModule.java:431)\r\nE/TiFastDev( 423): \tat ti.modules.titanium.TitaniumModuleBindingGen$23.invoke(TitaniumModuleBindingGen.java:875)\r\nE/TiFastDev( 423): \tat org.appcelerator.kroll.KrollProxy$ThisMethod.invoke(KrollProxy.java:397)\r\nE/TiFastDev( 423): \tat org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)\r\nE/TiFastDev( 423): \tat org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)\r\nE/TiFastDev( 423): \tat org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)\r\nE/TiFastDev( 423): \tat org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)\r\nE/TiFastDev( 423): \tat org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)\r\nE/TiFastDev( 423): \tat org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)\r\nE/TiFastDev( 423): \tat org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)\r\nE/TiFastDev( 423): \tat org.mozilla.javascript.Context.evaluateReader(Context.java:1142)\r\nE/TiFastDev( 423): \tat org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:105)\r\nE/TiFastDev( 423): \tat org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306)\r\nE/TiFastDev( 423): \tat org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318)\r\nE/TiFastDev( 423): \tat org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217)\r\nE/TiFastDev( 423): \tat org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223)\r\nE/TiFastDev( 423): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\nE/TiFastDev( 423): \tat android.os.Looper.loop(Looper.java:130)\r\nE/TiFastDev( 423): \tat org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)\r\nE/TitaniumModule( 423): (kroll$5: app://examples/commonjs.js) [17,14749] Error loading module named: __bad_module__\r\nE/TitaniumModule( 423): java.lang.NullPointerException\r\nE/TitaniumModule( 423): \tat java.lang.String.(String.java:276)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.TiBlob.getText(TiBlob.java:216)\r\nE/TitaniumModule( 423): \tat ti.modules.titanium.TitaniumModule.require(TitaniumModule.java:431)\r\nE/TitaniumModule( 423): \tat ti.modules.titanium.TitaniumModuleBindingGen$23.invoke(TitaniumModuleBindingGen.java:875)\r\nE/TitaniumModule( 423): \tat org.appcelerator.kroll.KrollProxy$ThisMethod.invoke(KrollProxy.java:397)\r\nE/TitaniumModule( 423): \tat org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)\r\nE/TitaniumModule( 423): \tat org.mozilla.javascript.Context.evaluateReader(Context.java:1142)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:105)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223)\r\nE/TitaniumModule( 423): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\nE/TitaniumModule( 423): \tat android.os.Looper.loop(Looper.java:130)\r\nE/TitaniumModule( 423): \tat org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)\r\nE/KrollMethod( 423): (kroll$5: app://examples/commonjs.js) [57,14806] Exception calling kroll method require, invocation: null ]\r\nE/KrollMethod( 423): org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (app://examples/commonjs.js#50)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1786)\r\nE/KrollMethod( 423): \tat ti.modules.titanium.TitaniumModule.require(TitaniumModule.java:453)\r\nE/KrollMethod( 423): \tat ti.modules.titanium.TitaniumModuleBindingGen$23.invoke(TitaniumModuleBindingGen.java:875)\r\nE/KrollMethod( 423): \tat org.appcelerator.kroll.KrollProxy$ThisMethod.invoke(KrollProxy.java:397)\r\nE/KrollMethod( 423): \tat org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)\r\nE/KrollMethod( 423): \tat script(app://examples/commonjs.js:50)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)\r\nE/KrollMethod( 423): \tat org.mozilla.javascript.Context.evaluateReader(Context.java:1142)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:105)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223)\r\nE/KrollMethod( 423): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\nE/KrollMethod( 423): \tat android.os.Looper.loop(Looper.java:130)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)\r\nE/KrollMethod( 423): Caused by: java.lang.NullPointerException\r\nE/KrollMethod( 423): \tat java.lang.String.(String.java:276)\r\nE/KrollMethod( 423): \tat org.appcelerator.titanium.TiBlob.getText(TiBlob.java:216)\r\nE/KrollMethod( 423): \tat ti.modules.titanium.TitaniumModule.require(TitaniumModule.java:431)\r\nE/KrollMethod( 423): \t... 18 more\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: require() raises an exception for JS module in 1.7.2", "creator": { "name": "federico.lox", "key": "federico.lox", "displayName": "Federico \"Lox\" Lucignano", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "federico.lox", "key": "federico.lox", "displayName": "Federico \"Lox\" Lucignano", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with official Titanium Mobile 1.7.2 release (downloaded through Titanium Studio 1.0.2.201107130739)\r\nBROKEN on Android Emulator Google APIs 2.3.3\r\nWORKS in iPhone Simulator 4.3", "comment": { "comments": [ { "id": "160726", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Federico\r\n\r\nThanks for raising this ticket. In order for it to be progressed, it must follow the guidelines described in [Jira Ticket Checklist|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist]. Hence:\r\n\r\n* edit the ticket to use the wiki formatting markup provided or, specifically, put the code and log inside code blocks\r\n* state the exact SDK version you have used, which is output to the log at application launch\r\n* state the Android version you have tested\r\n* state whether the issue can be reproduced on a device or emulator\r\n\r\nPlease see the checklist to see if you have omitted anything else.\r\n\r\nMany thanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-07-27T08:18:58.000+0000", "updated": "2011-07-27T08:18:58.000+0000" }, { "id": "161073", "author": { "name": "federico.lox", "key": "federico.lox", "displayName": "Federico \"Lox\" Lucignano", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixed the report following the guidelines, please fix it now :)", "updateAuthor": { "name": "federico.lox", "key": "federico.lox", "displayName": "Federico \"Lox\" Lucignano", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-29T01:27:44.000+0000", "updated": "2011-07-29T01:27:44.000+0000" }, { "id": "162138", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Federico\r\n\r\nThis is great! Of course, I will certainly move it across. :)\r\n\r\nOne thing, please note that the Titanium SDK build date and hash is displayed in the log when the application launches.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-08-08T08:31:29.000+0000", "updated": "2011-08-08T08:31:29.000+0000" }, { "id": "162176", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Federico\r\n\r\nYou can link to other tickets by simply entering their ticket number in plain text, rather than using jira linking markup, and the system will automatically interpret it as a link. If you do it this way, the number will be styled with a strike-through when it has been closed, to make it obvious that the bug has been fixed.\r\n\r\nThus, you are correct that ticket TIMOB-4802 relates to the issue you have described, and fortunately has now been fixed. I've tested commonjs.js and indeed it works without problems.\r\n\r\nHope this helps", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-08-08T14:01:26.000+0000", "updated": "2011-08-08T14:01:26.000+0000" }, { "id": "162177", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Was fixed by TIMOB-4802", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-08T14:05:00.000+0000", "updated": "2011-08-08T14:05:00.000+0000" }, { "id": "171644", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Standardizing summary and labels.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-05T14:31:54.000+0000", "updated": "2011-11-05T14:31:54.000+0000" }, { "id": "174436", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Forgot to close after reopened for standardization.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-01T09:09:43.000+0000", "updated": "2011-12-01T09:09:43.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }