{ "id": "124131", "key": "TIMOB-16073", "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": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-12-28T00:18:40.000+0000", "created": "2013-12-22T14:11:11.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "Alloy", "Android", "Encrypt", "Windows", "module_build", "qe-testadded", "triage" ], "versions": [], "issuelinks": [ { "id": "33983", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "124151", "key": "TIMOB-16093", "fields": { "summary": "Android: Failed to encrypt JavaScript files (OS X)", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "33992", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "124178", "key": "TIMOB-16077", "fields": { "summary": "Android: Large amounts of JavaScript breaks encryption process", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-23T13:19:42.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": "h3. Steps to reproduce\r\n\r\n# Upgraded Titanium Studio to 3.2.0 GA from 3.1.3 GA, including upgrade for Alloy to 1.3.0.\r\n# Created new Mobile App Project - Default Alloy Project.\r\n# Attempted to Run the project on an Android device. Received the following error during project build:\r\n\r\n{code}\r\n[INFO] : Alloy compiler completed successfully\r\n[INFO] : Processing JavaScript files\r\n[INFO] : Encrypting JavaScript files: C:\\Users\\rsam\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.2.0.GA\\android\\titanium_prep.win32.exe \"com.smartkom.test2\" \"C:\\Android\\appcelerator\\Test2\\build\\android\\assets\" \"app.js\" \"alloy/backbone.js\" \"alloy/CFG.js\" \"alloy/constants.js\" \"alloy/controllers/BaseController.js\" \"alloy/controllers/index.js\" \"alloy/styles/index.js\" \"alloy/sync/localStorage.js\" \"alloy/sync/properties.js\" \"alloy/sync/sql.js\" \"alloy/underscore.js\" \"alloy/widget.js\" \"alloy.js\" \"_app_props_.json\"\r\n[INFO] : Encrypting JavaScript files: C:\\Users\\rsam\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.2.0.GA\\android\\titanium_prep.win64.exe \"com.smartkom.test2\" \"C:\\Android\\appcelerator\\Test2\\build\\android\\assets\" \"app.js\" \"alloy/backbone.js\" \"alloy/CFG.js\" \"alloy/constants.js\" \"alloy/controllers/BaseController.js\" \"alloy/controllers/index.js\" \"alloy/styles/index.js\" \"alloy/sync/localStorage.js\" \"alloy/sync/properties.js\" \"alloy/sync/sql.js\" \"alloy/underscore.js\" \"alloy/widget.js\" \"alloy.js\" \"_app_props_.json\"\r\n[ERROR] : Failed to encrypt JavaScript files\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n{code}\r\n\r\nNote: this procedure worked fine on my system prior to upgrading Titanium/Alloy. Also my previously developed apps, which worked fine, are demonstrating the same behavior now on the new Titanium/Alloy.\r\n\r\nh3. Workaround\r\n\r\nPlease try downloading the .zip file attached to the ticket (titanium_prep-mt.zip) and unzipping it into:\r\n\r\nC:\\path\\to\\Titanium\\mobilesdk\\win32\\3.2.0.GA\\android", "attachment": [ { "id": "44776", "filename": ".log", "author": { "name": "wadders704", "key": "wadders704", "displayName": "Sam Robertson", "active": true, "timeZone": "America/New_York" }, "created": "2013-12-22T14:11:11.000+0000", "size": 2746, "mimeType": "text/plain" }, { "id": "44789", "filename": "mrahman_logs", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2013-12-23T04:48:24.000+0000", "size": 21928, "mimeType": "application/octet-stream" }, { "id": "44826", "filename": "titanium_prep-mt.zip", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-26T22:51:51.000+0000", "size": 68307, "mimeType": "application/zip" }, { "id": "44777", "filename": "Titanium 3.2.0 diagnostic log.txt", "author": { "name": "wadders704", "key": "wadders704", "displayName": "Sam Robertson", "active": true, "timeZone": "America/New_York" }, "created": "2013-12-22T14:11:11.000+0000", "size": 15226, "mimeType": "text/plain" }, { "id": "44788", "filename": "trace.txt", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2013-12-23T04:48:24.000+0000", "size": 13085, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: Failed to encrypt JavaScript files (Windows)", "creator": { "name": "wadders704", "key": "wadders704", "displayName": "Sam Robertson", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "wadders704", "key": "wadders704", "displayName": "Sam Robertson", "active": true, "timeZone": "America/New_York" }, "environment": "Host OS: Windows 7\r\nOS Version: 6.1\r\nOS Arch: x86\r\nJRE Version: 1.7.0_45\r\nJRE Vendor: Oracle Corporation\r\nJRE Home: C:\\Program Files (x86)\\Java\\jre7\r\nTitanium Studio Version: 3.2.0.201312191547", "comment": { "comments": [ { "id": "285571", "author": { "name": "wadders704", "key": "wadders704", "displayName": "Sam Robertson", "active": true, "timeZone": "America/New_York" }, "updateAuthor": { "name": "wadders704", "key": "wadders704", "displayName": "Sam Robertson", "active": true, "timeZone": "America/New_York" }, "created": "2013-12-22T14:19:47.000+0000", "updated": "2013-12-23T21:17:11.000+0000" }, { "id": "285642", "author": { "name": "vbullinger", "key": "vbullinger", "displayName": "Vince Bullinger", "active": true, "timeZone": "America/Chicago" }, "body": "Just upgraded this morning. Exact same issue here. Restarted Titanium Studio, my machine, etc. to no avail. I also have the same response from ti info -t jdk as Sam. This is big. Please figure this out immediately.\r\n\r\nEDIT: I'm using Windows 7, SP1. Java version is 1.7.0_45. I have the same error message.\r\n\r\nOops? http://docs.appcelerator.com/titanium/3.0/#!/guide/Installing_Oracle_JDK", "updateAuthor": { "name": "vbullinger", "key": "vbullinger", "displayName": "Vince Bullinger", "active": true, "timeZone": "America/Chicago" }, "created": "2013-12-23T16:31:37.000+0000", "updated": "2013-12-23T20:58:23.000+0000" }, { "id": "285658", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi All,\r\n\r\nIf you are experiencing this issue, please make very clear:\r\n\r\n# Which version of Windows (version, 32-bit or 64-bit)\r\n# Which version of Java (version, 32-bit or 64-bit)", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-23T19:04:51.000+0000", "updated": "2013-12-23T19:05:02.000+0000" }, { "id": "285662", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "+1 to Ingo's comment above. We need to know EXACTLY which version AND architecture of Java AND Windows we're dealing with.\r\n\r\nAlso suspect is the last few lines of the log file:\r\n\r\n{code}\r\n[INFO] : Encrypting JavaScript files: C:\\Users\\LasComp\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.2.0.GA\\android\\titanium_prep.win32.exe \"com.bd.test\" \"D:\\Titanium\\Titanium_Studio_Workspace\\test\\build\\android\\assets\" \"app.js\" \"ui/common/Array_table_ViewRow.js\" \"ui/common/cursorPosition.js\" \"ui/common/DataListView.js\" \"ui/common/facebook.js\" \"ui/common/facebook1.js\" \"ui/common/ListScrolView.js\" \"ui/common/ListView.js\" \"ui/common/List_textArea.js\" \"ui/common/ScrolAndScrolableView.js\" \"ui/common/ScrolView.js\" \"ui/common/ScrolViewAddImage.js\" \"ui/common/ScrolViewTable.js\" \"ui/common/Table.Row.js\" \"ui/common/TableView.js\" \"ui/common/Table_textArea.js\" \"ui/handheld/android/ApplicationWindow.js\" \"ui/handheld/android/cameraOpen.js\" \"ui/handheld/android/MediaSound.js\" \"ui/handheld/android/modalWindow.js\" \"ui/handheld/android/rowIndecator.js\" \"ui/handheld/android/ScrolableView.js\" \"ui/handheld/android/searchBar.js\" \"ui/handheld/android/View_ScrolView.js\" \"ui/handheld/android/XHRtest.js/XHR.js\" \"ui/handheld/ApplicationWindow.js\" \"ui/tablet/ApplicationWindow.js\" \"_app_props_.json\"\r\n[INFO] : Encrypting JavaScript files: C:\\Users\\LasComp\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.2.0.GA\\android\\titanium_prep.win64.exe \"com.bd.test\" \"D:\\Titanium\\Titanium_Studio_Workspace\\test\\build\\android\\assets\" \"app.js\" \"ui/common/Array_table_ViewRow.js\" \"ui/common/cursorPosition.js\" \"ui/common/DataListView.js\" \"ui/common/facebook.js\" \"ui/common/facebook1.js\" \"ui/common/ListScrolView.js\" \"ui/common/ListView.js\" \"ui/common/List_textArea.js\" \"ui/common/ScrolAndScrolableView.js\" \"ui/common/ScrolView.js\" \"ui/common/ScrolViewAddImage.js\" \"ui/common/ScrolViewTable.js\" \"ui/common/Table.Row.js\" \"ui/common/TableView.js\" \"ui/common/Table_textArea.js\" \"ui/handheld/android/ApplicationWindow.js\" \"ui/handheld/android/cameraOpen.js\" \"ui/handheld/android/MediaSound.js\" \"ui/handheld/android/modalWindow.js\" \"ui/handheld/android/rowIndecator.js\" \"ui/handheld/android/ScrolableView.js\" \"ui/handheld/android/searchBar.js\" \"ui/handheld/android/View_ScrolView.js\" \"ui/handheld/android/XHRtest.js/XHR.js\" \"ui/handheld/ApplicationWindow.js\" \"ui/tablet/ApplicationWindow.js\" \"_app_props_.json\"\r\n[DEBUG] : 32-bit titanium prep failed, trying again using 64-bit\r\n[ERROR] : Failed to encrypt JavaScript files\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n{code}\r\n\r\nIt should say encrypting using the 32-bit version, then say 32-bit failed, trying 64-bit. In other words, the [DEBUG] 32-bit titanium prep failed, trying again using 64-bit should be printed out above the 64-bit call. Is Studio doing this?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-12-23T19:10:06.000+0000", "updated": "2013-12-23T20:05:51.000+0000" }, { "id": "285671", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~vbullinger] Which version of 64-bit windows, and which version of Java?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-23T20:17:51.000+0000", "updated": "2013-12-23T20:17:51.000+0000" }, { "id": "285675", "author": { "name": "vbullinger", "key": "vbullinger", "displayName": "Vince Bullinger", "active": true, "timeZone": "America/Chicago" }, "body": "Ingo Muschenetz Does the version matter? The JDK guide here http://docs.appcelerator.com/titanium/3.0/#!/guide/Installing_Oracle_JDK says to use 1.6. I have 1.7. Is this necessary? Is this my problem?", "updateAuthor": { "name": "vbullinger", "key": "vbullinger", "displayName": "Vince Bullinger", "active": true, "timeZone": "America/Chicago" }, "created": "2013-12-23T21:15:57.000+0000", "updated": "2013-12-23T21:22:29.000+0000" }, { "id": "285676", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "1.7 should actually work now. You could _try_ 1.6 to see if that helps.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-23T21:19:29.000+0000", "updated": "2013-12-23T21:19:29.000+0000" }, { "id": "285678", "author": { "name": "vbullinger", "key": "vbullinger", "displayName": "Vince Bullinger", "active": true, "timeZone": "America/Chicago" }, "body": "Neither 1.6 or 1.7 worked. They gave me the exact same error message:\r\n\r\n[ERROR] : Failed to encrypt JavaScript files\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n\r\nThe 1.6 version was 32-bit, as the guide says to use. The 1.7 version was 64-bit.", "updateAuthor": { "name": "vbullinger", "key": "vbullinger", "displayName": "Vince Bullinger", "active": true, "timeZone": "America/Chicago" }, "created": "2013-12-23T21:42:12.000+0000", "updated": "2013-12-23T21:49:37.000+0000" }, { "id": "285679", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Vince, you don't happen to have another machine around with a different version of Windows, do you? We're wondering if it's Windows 7.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-23T21:52:59.000+0000", "updated": "2013-12-23T21:52:59.000+0000" }, { "id": "285681", "author": { "name": "vbullinger", "key": "vbullinger", "displayName": "Vince Bullinger", "active": true, "timeZone": "America/Chicago" }, "body": "I'll try on my personal machine instead of my work laptop. I can tell you that it works just fine on a Mac, though. I'll edit this when it's finished.\r\n\r\nEDIT: on my personal Windows 8 machine, I was able to get a brand new app to deploy to the emulator but not to my phone. I tried upgrading one app, but it won't deploy to either the emulator or my phone. But it says it failed to package the app, nothing about encrypting JavaScript files. The emulator acts like it's about to run, but it never does load up the app.", "updateAuthor": { "name": "vbullinger", "key": "vbullinger", "displayName": "Vince Bullinger", "active": true, "timeZone": "America/Chicago" }, "created": "2013-12-23T22:23:29.000+0000", "updated": "2013-12-23T23:03:42.000+0000" }, { "id": "285682", "author": { "name": "keylo e.", "key": "keylo e.", "displayName": "Keylo E.", "active": true, "timeZone": "America/New_York" }, "updateAuthor": { "name": "keylo e.", "key": "keylo e.", "displayName": "Keylo E.", "active": true, "timeZone": "America/New_York" }, "created": "2013-12-23T22:43:59.000+0000", "updated": "2013-12-23T22:43:59.000+0000" }, { "id": "285706", "author": { "name": "kam", "key": "kam", "displayName": "Kam", "active": true, "timeZone": "Pacific/Pitcairn" }, "body": "Same issue:\r\n\r\n[INFO] : Encrypting JavaScript files: \r\n[ERROR] : Failed to encrypt JavaScript files\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1", "updateAuthor": { "name": "kam", "key": "kam", "displayName": "Kam", "active": true, "timeZone": "Pacific/Pitcairn" }, "created": "2013-12-24T03:34:32.000+0000", "updated": "2013-12-24T03:34:32.000+0000" }, { "id": "285708", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi All,\n\nWe've had real trouble reproducing this. it must be something we're missing in a configuration.\n\nThere are four variables:\n\n# Version of Windows\n# 32 vs. 64-bit Windows\n# 32 vs. 64-bit version of Java\n# Java 1.6 vs 1.7\n\nTo make this scientific, when commenting on this ticket, please tell us the following\n\n# Version of Windows\n# Which line from the list below applies to you:\n\nConfigurations:\n# 32-bit Windows, 32-bit Java, Java 1.6\n# 32-bit Windows, 32-bit Java, Java 1.7\n# 64-bit Windows, 32-bit Java, Java 1.6\n# 64-bit Windows, 64-bit Java, Java 1.6\n# 64-bit Windows, 32-bit Java, Java 1.7\n# 64-bit Windows, 64-bit Java, Java 1.7\n\nAn example response might be:\n\nWindows 7, configuration #2\n\nWe'll use this to generate a matrix", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-24T03:50:46.000+0000", "updated": "2013-12-24T03:50:46.000+0000" }, { "id": "285709", "author": { "name": "novadean", "key": "novadean", "displayName": "Daniel Lim C H", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am having the same issue with:\r\nWindow 7 Professional SP1, configuration #4", "updateAuthor": { "name": "novadean", "key": "novadean", "displayName": "Daniel Lim C H", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-24T04:00:24.000+0000", "updated": "2013-12-24T04:00:24.000+0000" }, { "id": "285742", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "One question to the group: If you create a brand-new Android project, does this happen as well? Or is it only with existing projects?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-24T15:03:25.000+0000", "updated": "2013-12-24T15:03:25.000+0000" }, { "id": "285743", "author": { "name": "senchi", "key": "senchi", "displayName": "Senad Biser", "active": true, "timeZone": "Europe/Berlin" }, "body": "I'm not sure if my issue applies here..\r\n\r\nI've updated Titanium yesterday and created new workspace and new project \"TestApp\" (Default Alloy App)\r\n\r\nWindows 8.1 Enterprise N, configuration #5\r\n\r\nTitanium Studio Console Log when building from the \"run on device\" feature:\r\n\r\n[INFO] : Alloy compiler completed successfully\r\n[INFO] : Processing JavaScript files\r\n[INFO] : Encrypting JavaScript files: C:\\Users\\Senad\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.2.0.GA\\android\\titanium_prep.win32.exe \"ba.genijalno.testapp\" \"C:\\Users\\Senad\\repos\\test\\TestApp\\build\\android\\assets\" \"app.js\" \"alloy/backbone.js\" \"alloy/CFG.js\" \"alloy/constants.js\" \"alloy/controllers/BaseController.js\" \"alloy/controllers/index.js\" \"alloy/styles/index.js\" \"alloy/sync/localStorage.js\" \"alloy/sync/properties.js\" \"alloy/sync/sql.js\" \"alloy/underscore.js\" \"alloy/widget.js\" \"alloy.js\" \"_app_props_.json\"\r\n[INFO] : Encrypting JavaScript files: C:\\Users\\Senad\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.2.0.GA\\android\\titanium_prep.win64.exe \"ba.genijalno.testapp\" \"C:\\Users\\Senad\\repos\\test\\TestApp\\build\\android\\assets\" \"app.js\" \"alloy/backbone.js\" \"alloy/CFG.js\" \"alloy/constants.js\" \"alloy/controllers/BaseController.js\" \"alloy/controllers/index.js\" \"alloy/styles/index.js\" \"alloy/sync/localStorage.js\" \"alloy/sync/properties.js\" \"alloy/sync/sql.js\" \"alloy/underscore.js\" \"alloy/widget.js\" \"alloy.js\" \"_app_props_.json\"\r\n[ERROR] : Failed to encrypt JavaScript files\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n\r\n\r\n\r\nThese are the result when building from CLI (titanium build --platform android -T device):\r\n\r\n[INFO] Encrypting JavaScript files: C:\\Users\\Senad\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.2.0.GA\\android\\titanium_prep.win32.exe \"ba.genijalno.testapp\" \"C:\\Users\\Senad\\repo\r\np.js\" \"alloy/backbone.js\" \"alloy/CFG.js\" \"alloy/constants.js\" \"alloy/controllers/BaseController.js\" \"alloy/controllers/index.js\" \"alloy/styles/index.js\" \"alloy/sync/localStorage\r\nync/sql.js\" \"alloy/underscore.js\" \"alloy/widget.js\" \"alloy.js\" \"_app_props_.json\"\r\n[DEBUG] 32-bit titanium prep failed, trying again using 64-bit\r\n[INFO] Encrypting JavaScript files: C:\\Users\\Senad\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.2.0.GA\\android\\titanium_prep.win64.exe \"ba.genijalno.testapp\" \"C:\\Users\\Senad\\repo\r\np.js\" \"alloy/backbone.js\" \"alloy/CFG.js\" \"alloy/constants.js\" \"alloy/controllers/BaseController.js\" \"alloy/controllers/index.js\" \"alloy/styles/index.js\" \"alloy/sync/localStorage\r\nync/sql.js\" \"alloy/underscore.js\" \"alloy/widget.js\" \"alloy.js\" \"_app_props_.json\"\r\n[ERROR] Failed to encrypt JavaScript files\r\n[ERROR] Unable to locate a valid libjvm.dll.\r\n\r\n\r\nThanks,", "updateAuthor": { "name": "senchi", "key": "senchi", "displayName": "Senad Biser", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-12-24T15:16:39.000+0000", "updated": "2013-12-24T15:17:14.000+0000" }, { "id": "285744", "author": { "name": "senchi", "key": "senchi", "displayName": "Senad Biser", "active": true, "timeZone": "Europe/Berlin" }, "body": "PS.\r\nThe new TestApp and my other existing app deploy fine on the Android Emulator (Intel Atom x86, API 18, WVGA800)\r\n\r\nThanks", "updateAuthor": { "name": "senchi", "key": "senchi", "displayName": "Senad Biser", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-12-24T15:34:25.000+0000", "updated": "2013-12-24T15:34:25.000+0000" }, { "id": "285751", "author": { "name": "wadders704", "key": "wadders704", "displayName": "Sam Robertson", "active": true, "timeZone": "America/New_York" }, "body": "@Ingo: The same error exists for both new and old projects.", "updateAuthor": { "name": "wadders704", "key": "wadders704", "displayName": "Sam Robertson", "active": true, "timeZone": "America/New_York" }, "created": "2013-12-24T16:11:01.000+0000", "updated": "2013-12-24T16:11:01.000+0000" }, { "id": "285752", "author": { "name": "anysome", "key": "anysome", "displayName": "anysome", "active": true, "timeZone": "Asia/Shanghai" }, "body": "same error.\r\nenv: 64-bit Windows, 32-bit Java, Java 1.6", "updateAuthor": { "name": "anysome", "key": "anysome", "displayName": "anysome", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2013-12-24T16:22:41.000+0000", "updated": "2013-12-24T16:22:41.000+0000" }, { "id": "285757", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi All,\n\nIf you _can_ create a new project and then deploy it to device, then you have a different error, or TIMOB-16077. Please follow along there. This ticket will be reserved for only those people who can't get a new project to compile.\n\nIf you have an issue like \"libjvm.dll can't be found\", please try setting your java path on the command line:\n\n{code}\nti config java.home c:\\path\\to\\jdk\n{code}\n\nwith the path being the root of the JDK directory.\n\nThen re-run your build.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-24T22:52:10.000+0000", "updated": "2013-12-24T22:52:10.000+0000" }, { "id": "285759", "author": { "name": "senchi", "key": "senchi", "displayName": "Senad Biser", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi Ingo,\r\n\r\nTIMOB-16077 doesn't apply to me because I'm getting this error on a newly created project as well.\r\n\r\nI've tried setting the java.home via CLI to my 32b Java and I still got the same problem.\r\nHowever, once I've set the ti config java.home to my 64b Java I was able to deploy the new app and my existing app as well.\r\n\r\nSolution (for my case at least):\r\n\r\n- Windows 8.1 Enterprise N, config #5 (32b Java) doesn't compile/deploy for device\r\n- Windows 8.1 Enterprise N, config #6 (64b Java) compiles and deploys\r\n\r\n\r\nThanks for the tip, maybe it helps someone else too!", "updateAuthor": { "name": "senchi", "key": "senchi", "displayName": "Senad Biser", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-12-24T23:41:32.000+0000", "updated": "2013-12-24T23:41:32.000+0000" }, { "id": "285785", "author": { "name": "pingge", "key": "pingge", "displayName": "pingge", "active": true, "timeZone": "America/Los_Angeles" }, "body": "64-bit Windows ,32-bit or 64-bit java , 1.6 or 1.7\r\n", "updateAuthor": { "name": "pingge", "key": "pingge", "displayName": "pingge", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-25T07:15:27.000+0000", "updated": "2013-12-25T07:15:27.000+0000" }, { "id": "285787", "author": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Colleagues,\r\nI got the same issue, a simple workaround, to enable testing on device is to modify\r\nc:\\Users\\vladi\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.2.0.GA\\android\\cli\\commands\\_build.js\r\n\r\nline 905, and set encryptJS to false\r\n\t\tcase 'test':\r\n\t\t\tthis.minifyJS = true;\r\n>>>> \t this.encryptJS = false;\r\n\t\t\tthis.allowDebugging = true;\r\n\t\t\tthis.allowProfiling = true;\r\n\t\t\tthis.includeAllTiModules = false;\r\n\t\t\tthis.proguard = false;\r\n\r\n", "updateAuthor": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-25T16:52:11.000+0000", "updated": "2013-12-25T16:52:11.000+0000" }, { "id": "285788", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "A reminder:\n\n# If you create a new project and run into this issue, this ticket (TIMOB-16073) is for you\n# If you create a new project and it works, but an existing project fails, then your ticket is TIMOB-16077\n# If you get the error \"libjvm.dll can't be found\" (or similar), try setting the path on the command line: 'ti config java.home c:\\path\\to\\jdk'", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-25T18:20:26.000+0000", "updated": "2013-12-25T18:20:26.000+0000" }, { "id": "285789", "author": { "name": "kam", "key": "kam", "displayName": "Kam", "active": true, "timeZone": "Pacific/Pitcairn" }, "body": "Hi Vladimir S, \r\nThanks for your simple workaround. It is working for me now. \r\n", "updateAuthor": { "name": "kam", "key": "kam", "displayName": "Kam", "active": true, "timeZone": "Pacific/Pitcairn" }, "created": "2013-12-26T02:59:19.000+0000", "updated": "2013-12-26T02:59:19.000+0000" }, { "id": "285792", "author": { "name": "vbullinger", "key": "vbullinger", "displayName": "Vince Bullinger", "active": true, "timeZone": "America/Chicago" }, "body": "Following up: a new app won't work, an old app won't work. Won't work on Windows 8 or 7 - both 64-bit, with JDK 32-bit 1.6 or 64-bit 1.7. Mac works just fine. It's not my Mac, however. I'm going to go with Vladimir's work around. I'll demand a Mac of my own at work. I'm supremely disappointed in not only what's happened since the upgrade - which I had no clue would be major - but the response. All the responses are \"HEY THIS IS SUPER IMPORTANT!!! WHAT'S YOUR OS, JDK, ETC?\" and \"GO TO THIS OTHER THREAD!\" And no actual ideas whatsoever. Vladimir took it upon himself to give us a temporary workaround. I might try a complete uninstall, install and code port, which is ridiculous.", "updateAuthor": { "name": "vbullinger", "key": "vbullinger", "displayName": "Vince Bullinger", "active": true, "timeZone": "America/Chicago" }, "created": "2013-12-26T03:43:00.000+0000", "updated": "2013-12-26T03:48:18.000+0000" }, { "id": "285793", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Vince, I am sorry that you have been unhappy with the response. Not only have we been unable to reproduce this yet ourselves, we don't yet understand which set of configurations reliably cause the issue. If you take three versions of Windows x 6 possible configurations, that gives at least 18 different versions of windows to try. Needless to say, we've had multiple people test on Windows 7, Windows 8 and 8.1, with 32 bit and 64-bit configurations, and using Java 1.6 and 1.7. No luck as of yet.\n\nThere are multiple issues here, and my first job is to try and figure out who is having what. It can be challenging with a number of people all on the same ticket. My goal is the figure out who is experiencing what issue, which (if any) workarounds work, and make sure people know which ticket to watch depending on their symptoms.\n\nModifying the SDK code is our last resort, and is only the most temporary of workarounds. I would be curious to know if 'ti config java.home c:\\path\\to\\jdk' works for people.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-26T04:18:07.000+0000", "updated": "2013-12-26T04:18:07.000+0000" }, { "id": "285816", "author": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi, i played a bit more with procmon, to see what the tool was searching for. Finally there is a REAL Solution :)\r\n\r\nThe problems I found was\r\n1. Missing \"msvcr110.dll\". Symptom - titanium fails with \"Failed to encrypt JavaScript files\", but does not mention libjvm.dll. Workaround: Install Visual C++ Redistributable for Visual Studio 2012 from - here http://www.microsoft.com/en-us/download/details.aspx?id=30679#. You can install 32 or 64 bit, depending on the JVM you are using (i installed both)\r\n2. Incorrect JAVA_HOME - Symptom - Encryption fails with \"Unable to locate a valid libjvm.dll.\", Solution/Workaround? - seems like ti config java.home does not work - at least not in my environment, and at least not for titanium_prep.win*.exe. It searches the Environment Var JAVA_HOME. When i set it to the correct location it works. titanium_prep.win32.exe works if javA_home points to 32 bit jdk, and titanium_prep.win64.exe works if it points to 64 bit jvm. Titanium build tries both, so in case the java_home is correctly set - it works\r\n\r\n@Ingo - i hope this hints will help you to make it running in all environments. I also appreciate your efforts for solving this during the holidays :)", "updateAuthor": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-26T06:12:43.000+0000", "updated": "2013-12-26T06:12:43.000+0000" }, { "id": "285845", "author": { "name": "wadders704", "key": "wadders704", "displayName": "Sam Robertson", "active": true, "timeZone": "America/New_York" }, "body": "@Ingo: I ran further testing and wanted to report my results:\r\n\r\n1. Uninstalled Titanium Studio (The installer did not work, but that is another issue).\r\n2. Removed all installations of Java on my system.\r\n3. Installed Titanium Studio 3.2.0. The installer informed me that Java was needed and it would install it for me.\r\n4. After Titanium Studio successfully installed, I tried deploying to several Android devices, and I received the same \"encryption\" error.\r\n5. Looking at what was installed by the Titanium Studio installation, I see that Java SE Development Kit 7 Update 40 (32-bit) was installed in C:\\Program Files (x86)\\Java\\jdk1.7.0_40 by the installer. That makes me now configuration # 5 from above.\r\n\r\nI commented out the encryption line per Vladimir S suggestion above, and I am now able to deploy to Android devices. Thanks Vladimir!!! I am able to continue with my development, and I will monitor this thread for the official fix.\r\n\r\nThanks again all of you for working on this issue.\r\n\r\nSam", "updateAuthor": { "name": "wadders704", "key": "wadders704", "displayName": "Sam Robertson", "active": true, "timeZone": "America/New_York" }, "created": "2013-12-26T13:21:14.000+0000", "updated": "2013-12-26T13:21:14.000+0000" }, { "id": "285847", "author": { "name": "vbullinger", "key": "vbullinger", "displayName": "Vince Bullinger", "active": true, "timeZone": "America/Chicago" }, "body": "Great job, Vladimir! I had looked at the source code myself, but saw several instances of \"Failed to encrypt JavaScript files,\" so I decided not to go down that rabbit hole. But amazing job on your point for finding it and fleshing out a solution that worked for me. I wonder what piece of that install Appcelerator truly needs and what should be done about it as far as an update is concerned...", "updateAuthor": { "name": "vbullinger", "key": "vbullinger", "displayName": "Vince Bullinger", "active": true, "timeZone": "America/Chicago" }, "created": "2013-12-26T14:02:19.000+0000", "updated": "2013-12-26T14:02:19.000+0000" }, { "id": "285900", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "If you have the following symptoms:\r\n\r\n# A new project fails with the encryption error (same as an existing project)\r\n# Setting either your JAVA_HOME or java.home configuration variables don't work\r\n\r\nPlease try downloading the .zip file attached to the ticket (titanium_prep-mt.zip) and unzipping it into:\r\n\r\nC:\\path\\to\\Titanium\\mobilesdk\\win32\\3.2.0.GA\\android\r\n\r\nIf you previously installed a separate runtime from Microsoft, see if you can uninstall that before testing out this new version to make sure that we've actually addressed the issue.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-26T22:51:51.000+0000", "updated": "2013-12-26T22:51:51.000+0000" }, { "id": "285926", "author": { "name": "novadean", "key": "novadean", "displayName": "Daniel Lim C H", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Ingo, thank you for ur effort and fast respond on this ticket.\r\nI am able to run on device successfully after i replace the file according to the instruction.", "updateAuthor": { "name": "novadean", "key": "novadean", "displayName": "Daniel Lim C H", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-27T02:25:45.000+0000", "updated": "2013-12-27T02:26:02.000+0000" }, { "id": "285941", "author": { "name": "mcvendrell", "key": "mcvendrell", "displayName": "Manuel Conde Vendrell", "active": true, "timeZone": "Europe/Madrid" }, "body": "Same for me, thanks. Seems to be solved with that (titanium_prep-mt.zip).", "updateAuthor": { "name": "mcvendrell", "key": "mcvendrell", "displayName": "Manuel Conde Vendrell", "active": true, "timeZone": "Europe/Madrid" }, "created": "2013-12-27T12:49:12.000+0000", "updated": "2013-12-27T12:49:12.000+0000" }, { "id": "286004", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR to update this on master: https://github.com/appcelerator/titanium_mobile/pull/5167\n3_2_X: https://github.com/appcelerator/titanium_mobile/pull/5168", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-27T20:51:22.000+0000", "updated": "2013-12-27T20:51:22.000+0000" }, { "id": "286945", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue seems to be fixed \nTested with environment:\n\nAppc-Studio: 3.2.1.201401061716\nacs:1.0.11\nalloy:1.3.1-beta\nnpm:1.3.2\ntitanium:3.2.0\ntitanium-code-processor:1.1.0\nOsx: Windows 8\nDevice:Galaxy Note(v2.3.6)\n\nusing both sdk build:3.2.1.v20140106195644 and 3.3.0.v20140106195650\nTried with both classic and alloy default project and was able to build and deploy successfully on the device.\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-07T11:34:16.000+0000", "updated": "2014-01-07T11:34:16.000+0000" }, { "id": "287715", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix. We do not see any failures related to javascript & the alloy/classic app builds & runs fine on device.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 3.2.1.201401081616\r\nTitanium studio : 3.2.1.201401081514\r\nTi SDK : 3.2.1.v20140109163246 , 3.3.0.v20140110133250\r\nWindows 7 ,8 & 8.1 (32-bit & 64-bit)\r\nJava : 1.6.0_45 & 1.7.0_45 (32-bit & 64-bit where ever applicable)\r\nAlloy : 1.3.1-beta2 \t\r\nCLI - 3.2.1-beta\r\nSamsung Galaxy S4 running android 4.2.2", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-10T22:05:39.000+0000", "updated": "2014-01-10T22:05:39.000+0000" }, { "id": "310426", "author": { "name": "c3k", "key": "c3k", "displayName": "carlo", "active": true, "timeZone": "Europe/Berlin" }, "body": "I got the same error, in my case the problem was a file with a very long line (100.000+ columuns)", "updateAuthor": { "name": "c3k", "key": "c3k", "displayName": "carlo", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-06-23T13:19:42.000+0000", "updated": "2014-06-23T13:19:42.000+0000" } ], "maxResults": 45, "total": 45, "startAt": 0 } } }