{ "id": "116238", "key": "TIMOB-14322", "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": "15699", "description": "2013 Sprint 21", "name": "2013 Sprint 21", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "15701", "description": "2013 Sprint 21 Core", "name": "2013 Sprint 21 Core", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-10-19T01:24:06.000+0000", "created": "2013-06-20T07:29:07.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "androidbuild", "ay-verified", "cb-verified", "qe-closed-3.2.0" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [ { "id": "30781", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "91507", "key": "TIMOB-9028", "fields": { "summary": "CLI: \"build\" command for Android apps", "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": "6", "description": "gh.issue.epic.desc", "name": "Epic", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-06-19T12:43:22.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" }, { "id": "10207", "name": "Tooling" } ], "description": "h2. Problem\r\nI have option _JAVA_OPTIONS set to -Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel to make all java apps looks like GTK apps\r\n\r\nThat gives some grave probems when trying to build any android (or probably any java related project).\r\n\r\nAfter that variable set any java app would give this info message:\r\n\r\nPicked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel\r\n\r\nwhich breaks python parser inside android/avd.py. (See logs)\r\n\r\nUsetting _JAVA_OPTIONS fixes problem.\r\n\r\nThat's pretty infamous \" AttributeError: 'NoneType' object has no attribute 'split' \" problem, that show weakness of python parsers written\r\n\r\nh2. Logs\r\n\r\n{code:lang=none|title=console}\r\n[ERROR] Exception occured while building Android project:\r\n[ERROR] Traceback (most recent call last):\r\n[ERROR] File \"/home/khades/.titanium/mobilesdk/linux/3.1.1.GA/android/builder.py\", line 2604, in \r\n[ERROR] builder.build_and_run(True, avd_id, device_args=device_args, debugger_host=debugger_host, profiler_host=profiler_host)\r\n[ERROR] File \"/home/khades/.titanium/mobilesdk/linux/3.1.1.GA/android/builder.py\", line 2321, in build_and_run\r\n[ERROR] for avd_props in avd.get_avds(self.sdk):\r\n[ERROR] File \"/home/khades/.titanium/mobilesdk/linux/3.1.1.GA/android/avd.py\", line 23, in get_avds\r\n[ERROR] for line in run.run([sdk.get_android(),'list','target'],debug=False).split(\"\\n\"):\r\n[ERROR] AttributeError: 'NoneType' object has no attribute 'split'\r\n{code}", "attachment": [], "flagged": false, "summary": "CLI: Setting _JAVA_OPTIONS global variable breaks building of project", "creator": { "name": "khades", "key": "khades", "displayName": "Khadisov Alexandr", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "khades", "key": "khades", "displayName": "Khadisov Alexandr", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Debian Wheezy linux x64", "comment": { "comments": [ { "id": "275824", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4781", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-19T01:24:06.000+0000", "updated": "2013-10-19T01:24:06.000+0000" }, { "id": "285034", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "@ Chris, Allen --- Can you please provide any test steps ?", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-18T18:09:53.000+0000", "updated": "2013-12-18T18:09:53.000+0000" }, { "id": "285039", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "To test:\n\n1) create an Android app\n2) create an environment variable \"_JAVA_OPTIONS\" and set to \"-Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel\"\n3) build the app for any target", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-12-18T18:23:46.000+0000", "updated": "2013-12-18T18:23:46.000+0000" }, { "id": "285099", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\nUbuntu 12.04 LTS Linux\nTitanium SDK, build: 3.2.0.v20131212122847\nCLI: 3.2.0-cr3\nAlloy: 1.3.0-cr\n\nFollowed test instructions provided by [~cbarber].\nCreated Android App and added _JAVA_OPTIONS to the .bashrc with the set variables provided.\nRunning adb from terminal shows that the _JAVA_OPTIONS variables are being detected.\nBuilt and installed the application to device and emulator successfully.\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-18T23:26:33.000+0000", "updated": "2013-12-18T23:26:33.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }