{ "id": "127581", "key": "TIMOB-16618", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-03-24T20:25:06.000+0000", "created": "2014-03-12T19:09:19.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "supportTeam" ], "versions": [ { "id": "15857", "description": "Release 3.2.2", "name": "Release 3.2.2", "archived": false, "released": true, "releaseDate": "2014-03-09" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T21:15:47.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": [], "description": "h3. Issue\r\n\r\nAfter upgrading to SDK 3.2.2 customer is not able to build the app receiving compiler errors related to AssetCryptImpl.java (cannot find symbol and uses unchecked or unsafe operations). During the call we try with different versions from the JDK (1.7 and 1.6) that throw the same error logs.\r\n\r\nOther apps are being correctly builded with 3.2.1 and failing with 3.2.2, but one app created after the SDK update is not building neither in 3.2.2 or 3.2.1. \r\n\r\n\r\nh3. Log\r\n\r\n{code}\r\n[ERROR] : Failed to compile Java source files:\r\n[ERROR] : \r\n[ERROR] : /Users/vamsi.vidala/Documents/Titanium_Studio_Workspace/FRC_Rentals_App/build/android/gen/com/forrent/frmobile/AssetCryptImpl.java:28: cannot find symbol\r\n[ERROR] : symbol : variable assets\r\n[ERROR] : location: class com.forrent.frmobile.AssetCryptImpl\r\n[ERROR] : Range range = assets.get(path);\r\n[ERROR] : /Users/vamsi.vidala/Documents/Titanium_Studio_Workspace/FRC_Rentals_App/build/android/gen/com/forrent/frmobile/AssetCryptImpl.java:32: cannot find symbol\r\n[ERROR] : symbol : variable assetsBytes\r\n[ERROR] : location: class com.forrent.frmobile.AssetCryptImpl\r\n[ERROR] : return new String(filterDataInRange(assetsBytes, range.offset, range.length));\r\n[ERROR] : Note: /Users/vamsi.vidala/Documents/Titanium_Studio_Workspace/FRC_Rentals_App/build/android/gen/com/forrent/frmobile/AssetCryptImpl.java uses unchecked or unsafe operations.\r\n[ERROR] : Note: Recompile with -Xlint:unchecked for details.\r\n[ERROR] : 2 errors\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n{code}\r\n\r\n", "attachment": [ { "id": "46637", "filename": "AssetCryptImpl.java", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-13T21:42:54.000+0000", "size": 1225, "mimeType": "text/plain" }, { "id": "46585", "filename": "Build.log", "author": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-12T19:09:19.000+0000", "size": 51512, "mimeType": "text/plain" }, { "id": "46586", "filename": "Diag.log", "author": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-12T19:09:19.000+0000", "size": 27782, "mimeType": "text/plain" }, { "id": "46666", "filename": "Screen Shot 2014-03-14 at 12.59.58 PM.png", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2014-03-14T19:02:44.000+0000", "size": 910644, "mimeType": "image/png" }, { "id": "46587", "filename": "TiConfig.txt", "author": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-12T19:09:19.000+0000", "size": 1801, "mimeType": "text/plain" }, { "id": "46588", "filename": "TiInfo.txt", "author": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-12T19:09:19.000+0000", "size": 20164, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: Unable to build app after update to SDK 3.2.2", "creator": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Product: Titanium SDK\r\nTitanium SDK: Mobile 3.2GA\r\nPlatform OS: Android\r\nPlatform OS Version: 4.4.2", "comment": { "comments": [ { "id": "297081", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also, can you attach AssetCryptImpl.java?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-13T19:16:09.000+0000", "updated": "2014-03-13T19:16:09.000+0000" }, { "id": "297164", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "[~ingo] they can not build with any SDK so far, we are waiting the customer to confirm if they have the same issue in different computers, meanwhile, [~egomez] attached the AssetCryptImpl.java file to the ticket.", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2014-03-14T00:13:20.000+0000", "updated": "2014-03-14T00:13:20.000+0000" }, { "id": "297165", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "So, it looks like they are missing the encrypted resources. See https://github.com/appcelerator/titanium_mobile/blob/f624269bd378d919c464021c06d37e6b3adc66c9/android/templates/build/AssetCryptImpl.java#L26 where they don't have anything there.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-14T00:23:06.000+0000", "updated": "2014-03-14T00:23:06.000+0000" }, { "id": "297166", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "[~ingo] it's ok if we just copy the entire file in the customer's filesystem? ", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2014-03-14T00:33:02.000+0000", "updated": "2014-03-14T00:33:02.000+0000" }, { "id": "297313", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "[~ingo] After a fresh install the issue is still there, I'm attaching a screenshot, the only SDK installed it's 3.2.2.GA, any thoughts? we are live now with the customer", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2014-03-14T19:02:44.000+0000", "updated": "2014-03-14T19:02:44.000+0000" }, { "id": "297378", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We tried to reproduce the issue but was unable to. The logs in the ticket seem to have been captured when trying to reproduce with different versions of java since the ti.info shows java 1.7.0_51 while studio diagnostic logs shows java 1.6.0 jdk. \n\nIn the past, we've seen that encryption failures have occurred when the java environment is non-standard. \nWe recommend trying to remove your environment variable for \"JAVA_HOME\"\n\nEnvironment:\nAppc Studio : 3.2.1.201402061120\nTi SDK : 3.2.2.GA\nMac OSX : 10.8.5\nAlloy : 1.3.1\t\nCLI - 3.2.1\nAndroid 4.4.2 - Nexus 5\nAndroid 4.2.2 - Samsung galaxy S4", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-14T22:04:13.000+0000", "updated": "2014-03-14T22:04:13.000+0000" }, { "id": "298475", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Sounds like the problem was caused by LiveView. Removing LiveView from the path.hooks appears to have solved the problem.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-03-24T20:25:06.000+0000", "updated": "2014-03-24T20:25:06.000+0000" }, { "id": "414976", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T21:15:47.000+0000", "updated": "2017-03-22T21:15:47.000+0000" } ], "maxResults": 18, "total": 18, "startAt": 0 } } }