{ "id": "140466", "key": "AC-1618", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2015-09-29T01:08:26.000+0000", "created": "2014-11-25T02:10:54.000+0000", "labels": [ "android", "line185", "longjohn.js" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:38:06.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Hello, Whenever I try to create an apk file it gives an error exception in longjohn.js line 185. I added console.log and printed the _error. Here it error thrown. I am using Titanium-CLI 3.2.1 and Titanium 3.2.2.GA and Node version is 0.10.25. App is running perfectly for iOS simulator.\r\n================== { [TypeError: Bad argument] cached_trace: [ { receiver: [Object], fun: [Function], pos: 24308 }, { receiver: [Object], fun: [Function], pos: 18821 }, { receiver: [Object], fun: [Function: run], pos: 1357 }, { receiver: [Object], fun: [Function], pos: 143210 }, { receiver: [Object], fun: [Function], pos: 6093 }, { receiver: [Object], fun: [Function], pos: 6747 }, { receiver: [Object], fun: [Function], pos: 3559 }, { receiver: [Object], fun: [Function], pos: 6535 }, { receiver: [Object], fun: [Function], pos: 6275 }, { receiver: [Object], fun: [Function], pos: 17055 }, {}, { receiver: [Object], fun: [Function: run], pos: 1563 }, { receiver: [Object], fun: [Function], pos: 142503 }, { receiver: [Object], fun: [Function], pos: 6093 }, { receiver: [Object], fun: [Function], pos: 6747 }, { receiver: [Object], fun: [Function], pos: 3559 }, { receiver: [Object], fun: [Function], pos: 6535 }, { receiver: [Object], fun: [Function], pos: 6275 }, { receiver: [Object], fun: [Function], pos: 17055 } ], previous: { [Error] id: 17027, location: 'run (/Users/syedjunaidyousuf/Library/Application Support/Titanium/mobilesdk/osx/3.2.2.GA/node_modules/node-appc/lib/subprocess.js:59)', location: 'EventEmitter.on', previous: null, trace_count: 1, cached_trace: [ [Object], [Object], [Object], [Object], [Object], [Object], [Object],\r\n[Object] ] } }\r\n================== { [TypeError: Bad argument] cached_trace: [ { receiver: [Object], fun: [Function], pos: 24308 }, { receiver: [Object], fun: [Function], pos: 18821 }, { receiver: [Object], fun: [Function: run], pos: 1357 }, { receiver: [Object], fun: [Function], pos: 143210 }, { receiver: [Object], fun: [Function], pos: 6093 }, { receiver: [Object], fun: [Function], pos: 6747 }, { receiver: [Object], fun: [Function], pos: 3559 }, { receiver: [Object], fun: [Function], pos: 6535 }, { receiver: [Object], fun: [Function], pos: 6275 }, { receiver: [Object], fun: [Function], pos: 17055 }, {}, { receiver: [Object], fun: [Function: run], pos: 1563 }, { receiver: [Object], fun: [Function], pos: 142503 }, { receiver: [Object], fun: [Function], pos: 6093 }, { receiver: [Object], fun: [Function], pos: 6747 }, { receiver: [Object], fun: [Function], pos: 3559 }, { receiver: [Object], fun: [Function], pos: 6535 }, { receiver: [Object], fun: [Function], pos: 6275 }, { receiver: [Object], fun: [Function], pos: 17055 } ], previous: { [Error] id: 17027, location: 'run (/Users/syedjunaidyousuf/Library/Application Support/Titanium/mobilesdk/osx/3.2.2.GA/node_modules/node-appc/lib/subprocess.js:59)', location: 'EventEmitter.on', previous: null, trace_count: 1, cached_trace: [ [Object], [Object], [Object], [Object], [Object], [Object], [Object],\r\n[Object] ] } }\r\n/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:188 throw e; ^ TypeError: Bad argument at ChildProcess.spawn (child_process.js:923:24) at exports.spawn (child_process.js:723:9) at Object.run (/Users/syedjunaidyousuf/Library/Application Support/Titanium/mobilesdk/osx/3.2.2.GA/node_modules/node-appc/lib/subprocess.js:47:14) at AndroidBuilder. (/Users/syedjunaidyousuf/Library/Application Support/Titanium/mobilesdk/osx/3.2.2.GA/android/cli/commands/_build.js:3954:20) at /usr/local/lib/node_modules/titanium/lib/hook.js:232:13 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:232:13 at async.eachSeries (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:130:20) at _asyncMap (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:226:9) at Object.mapSeries (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:216:23)\r\nat async.series (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:549:19)\r\nat Object.run (/Users/syedjunaidyousuf/Library/Application Support/Titanium/mobilesdk/osx/3.2.2.GA/node_modules/node-appc/lib/subprocess.js:59:8)\r\nat AndroidBuilder.<anonymous> (/Users/syedjunaidyousuf/Library/Application Support/Titanium/mobilesdk/osx/3.2.2.GA/android/cli/commands/_build.js:3930:21)\r\nat /usr/local/lib/node_modules/titanium/lib/hook.js:232:13\r\nat /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:232:13\r\nat async.eachSeries (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:130:20)\r\nat _asyncMap (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:226:9)\r\nat Object.mapSeries (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:216:23)\r\nat async.series (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:549:19)\r\n", "attachment": [], "flagged": false, "summary": "longjohn.js line 185 Exception", "creator": { "name": "junaid", "key": "junaid", "displayName": "Syed Junaid Yousuf", "active": true, "timeZone": "Australia/Melbourne" }, "subtasks": [], "reporter": { "name": "junaid", "key": "junaid", "displayName": "Syed Junaid Yousuf", "active": true, "timeZone": "Australia/Melbourne" }, "environment": "Mac OS X", "comment": { "comments": [ { "id": "333576", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nPlease try to run \"ti setup check\" in terminal, then provide us the output. That could be helpful to address the problem.\r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-11-25T07:23:41.000+0000", "updated": "2014-11-25T07:23:41.000+0000" }, { "id": "333746", "author": { "name": "junaid", "key": "junaid", "displayName": "Syed Junaid Yousuf", "active": true, "timeZone": "Australia/Melbourne" }, "body": "──────────────────┤ Check Environment ├───────────────────\r\n\r\nNode.js\r\n ★ node new version v0.10.26 available! (currently v0.10.25)\r\n ★ npm new version v1.4.3 available! (currently v1.3.24)\r\n \r\nTitanium CLI\r\n ★ cli new version v3.4.1-rc available (currently v3.2.1)\r\n \r\nTitanium CLI Dependencies\r\n ✓ async up-to-date (v0.2.10)\r\n ✓ colors up-to-date (v0.6.2)\r\n ✓ fields up-to-date (v0.1.22)\r\n ✓ humanize up-to-date (v0.0.9)\r\n ✓ jade up-to-date (v0.35.0)\r\n ✓ longjohn up-to-date (v0.2.4)\r\n ✓ moment up-to-date (v2.4.0)\r\n ✓ node-appc up-to-date (v0.2.0)\r\n ✓ optimist up-to-date (v0.6.1)\r\n ✓ request up-to-date (v2.27.0)\r\n ✓ semver up-to-date (v2.2.1)\r\n ✓ sprintf up-to-date (v0.1.4)\r\n ✓ temp up-to-date (v0.6.0)\r\n ✓ winston up-to-date (v0.6.2)\r\n ✓ wrench up-to-date (v1.5.8)\r\n \r\nTitanium SDK\r\n ✓ latest sdk installed (v3.4.1.GA)\r\n ! selected sdk latest Titanium SDK \"v3.4.1.GA\" is not the selected SDK (currently v3.2.2.GA)\r\n \r\nMac OS X Environment\r\n ✓ CLI Tools installed\r\n \r\niOS Environment\r\n ✓ Xcode installed (5.1.1)\r\n ✓ iOS SDK installed (7.1)\r\n ✓ WWDR cert installed\r\n ! developer cert not found\r\n ! distribution cert not found\r\n ! dev provisioning not found\r\n ! dist provisioning not found\r\n \r\nAndroid Environment\r\n ✓ sdk installed (/Users/syedjunaidyousuf/Downloads/android-sdk-macosx)\r\n ✕ tools unsupported version 23.0.5\r\n ✕ platform tools unsupported version 21\r\n ✓ build tools installed (v19.0.1)\r\n ✓ adb installed /Users/syedjunaidyousuf/Downloads/android-sdk-macosx/platform-tools/adb\r\n ✓ android installed /Users/syedjunaidyousuf/Downloads/android-sdk-macosx/tools/android\r\n ✓ emulator installed /Users/syedjunaidyousuf/Downloads/android-sdk-macosx/tools/emulator\r\n ✓ mksdcard installed /Users/syedjunaidyousuf/Downloads/android-sdk-macosx/tools/mksdcard\r\n ✕ zipalign \"zipalign\" executable not found; please reinstall Android SDK\r\n ✓ aapt installed /Users/syedjunaidyousuf/Downloads/android-sdk-macosx/build-tools/19.0.1/aapt\r\n ✓ aidl installed /Users/syedjunaidyousuf/Downloads/android-sdk-macosx/build-tools/19.0.1/aidl\r\n ✓ targets installed (25 found)\r\n ✓ avds installed (27 found)\r\n ! ndk Android NDK not found\r\n \r\nJava Development Kit\r\n ✓ jdk installed (v1.6.0)\r\n ✓ java installed /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java\r\n ✓ javac installed /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/javac\r\n ✓ keytool installed /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/keytool\r\n ✓ jarsigner installed /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/jarsigner\r\n \r\nIntel® Hardware Accelerated Execution Manager (HAXM)\r\n ✓ compatible \r\n ! installed not found; install HAXM to use Android x86 emulator\r\n \r\nNetwork\r\n ✓ online \r\n - no proxy server configured \r\n ✓ http request test \r\n ✓ https request test \r\n \r\nDirectory Permissions\r\n ✓ home directory \r\n ✓ titanium config directory \r\n ✓ titanium sdk install directory \r\n", "updateAuthor": { "name": "junaid", "key": "junaid", "displayName": "Syed Junaid Yousuf", "active": true, "timeZone": "Australia/Melbourne" }, "created": "2014-11-25T22:24:31.000+0000", "updated": "2014-11-25T22:24:31.000+0000" }, { "id": "333832", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-11-26T06:55:12.000+0000", "updated": "2014-11-26T06:55:12.000+0000" }, { "id": "362057", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nIs it still an issue for you? I recommend you upgrade your studio and SDK to the latest build then let us know if you get the same error again.\r\n\r\nThanks.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-02T11:05:00.000+0000", "updated": "2015-09-29T01:08:17.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }