{ "id": "120028", "key": "TIMOB-15409", "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": null, "resolutiondate": null, "created": "2013-09-16T23:15:21.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "module", "newrelic" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:43.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Created an empty project with New Relic Module 1.0\r\nI followed this tutorial: http://developer.appcelerator.com/blog/2013/08/you-can-now-easily-add-new-relic-to-your-titanium-studio-apps.html\r\n\r\nWhen compiling project got the following error:\r\n{code} \r\n[INFO] Adding New Relic support.\r\n[ERROR] Exception occured while building Android project:\r\n[ERROR] Traceback (most recent call last):\r\n[ERROR] File \"C:\\Users\\David\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.1.2.GA\\android\\builder.py\", line 2621, 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 \"C:\\Users\\David\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.1.2.GA\\android\\builder.py\", line 2367, in build_and_run\r\n[ERROR] shutil.copyfile(os.path.join(newrelic_module.path, 'class.rewriter.jar'), temp_jar.name)\r\n[ERROR] File \"C:\\Program Files (x86)\\Titanium Studio\\plugins\\com.appcelerator.titanium.python.win32_1.0.0.1338515509\\python\\lib\\shutil.py\", line 82, in copyfile\r\n[ERROR] with open(dst, 'wb') as fdst:\r\n[ERROR] IOError: [Errno 13] Permission denied: 'c:\\\\users\\\\david\\\\appdata\\\\local\\\\temp\\\\tmp6rjiij.jar'\r\n[ERROR] : Build process exited with code 1\r\n{code} ", "attachment": [], "flagged": false, "summary": "New Relic: IOError: [Errno 13] Permission denied", "creator": { "name": "davidbenko", "key": "davidbenko", "displayName": "David Benko", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Windows 7\r\nTi SDK 3.1.2\r\nError occurs both on emulator and Android devices", "comment": { "comments": [ { "id": "272073", "author": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I see this as well.\n\nTitanium Studio version: 3.1.3.201309132423\nTitanium CLI version: 3.1.2\nTitanium SDK version: 3.1.3.GA", "updateAuthor": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-20T02:19:40.000+0000", "updated": "2013-09-20T02:19:40.000+0000" }, { "id": "272588", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\n\ndo you have permission to write into that directory? \n\nBest,\n\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-09-24T01:57:42.000+0000", "updated": "2013-09-24T01:57:42.000+0000" }, { "id": "272642", "author": { "name": "davidbenko", "key": "davidbenko", "displayName": "David Benko", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes, here: http://s2.postimg.org/v74437npl/Untitled.png\nI even ran Titanium Studio as administrator and got the same error", "updateAuthor": { "name": "davidbenko", "key": "davidbenko", "displayName": "David Benko", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-24T12:11:32.000+0000", "updated": "2013-09-24T12:11:32.000+0000" }, { "id": "274084", "author": { "name": "kennr", "key": "kennr", "displayName": "Ken Kupelian", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi all,\n\nMy apologies for this error. It is specific to Windows when you are building for Android. I came across this error right when 3.1.2 was released and updated our docs with a workaround: https://docs.newrelic.com/docs/mobile-apps/titanium-installation-and-configuration-windows\n\nThe issue is due to the builder.py file that is being used by Titanium Studio to build the Android app and the code is specific to Windows. We have an updated version of the builder.py file that you can download here:\nhttps://download.newrelic.com/titanium/Titanium_Studio_3.1.3_Windows_Fix.zip\n\nAll you need to do is replace the old builder.py file with the new one and you should be able to successfully build now. That file is located at:\nC:\\Users\\\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\\\android\\\n\nWe are attempting to get this updated file included in the Titanium Studio 3.1.4 release, so hopefully this won't be an issue after that.\n\nPlease see the included README or the docs site linked above for more detailed instructions if interested.\n\nThanks!\n\nKen Kupelian\nMobile QA Engineer\nNew Relic", "updateAuthor": { "name": "kennr", "key": "kennr", "displayName": "Ken Kupelian", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-07T22:05:25.000+0000", "updated": "2013-10-07T22:05:25.000+0000" }, { "id": "274087", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "The workaround is included in the comments. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-10-07T22:22:44.000+0000", "updated": "2013-10-07T22:22:44.000+0000" }, { "id": "274866", "author": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank you for the fix, I'm all set now on 3.1.3.GA after replacing builder.py", "updateAuthor": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-11T23:32:57.000+0000", "updated": "2013-10-11T23:32:57.000+0000" }, { "id": "274881", "author": { "name": "davidbenko", "key": "davidbenko", "displayName": "David Benko", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes, it worked. Unfortunatelly we missed the remote-controlled helicopter haha", "updateAuthor": { "name": "davidbenko", "key": "davidbenko", "displayName": "David Benko", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-12T00:18:54.000+0000", "updated": "2013-10-12T00:18:54.000+0000" }, { "id": "277575", "author": { "name": "kennr", "key": "kennr", "displayName": "Ken Kupelian", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi all,\r\n\r\nUnfortunately, it does not look like our fix to the builder.py file is going to make it into Titanium Studio 3.1.4, so if you upgrade to 3.1.4 when it is released, you may want a version of the builder.py file with Appcelerator's latest changes (it now includes the network jar, even in production). I grabbed the latest version of the file from the github repository and updated it with our Windows fix. You can download it here:\r\nhttps://download.newrelic.com/titanium/Titanium_Studio_3.1.4_Windows_Fix.zip\r\n\r\nI just verified this works with Titanium Studio 3.1.3 as well, so feel free to start using it now if you'd like. Instructions are the same as above. Please let me know if you have any questions!\r\n\r\nThanks!\r\n\r\nKen Kupelian\r\nMobile QA Engineer\r\nNew Relic", "updateAuthor": { "name": "kennr", "key": "kennr", "displayName": "Ken Kupelian", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-31T21:30:25.000+0000", "updated": "2013-10-31T21:30:25.000+0000" }, { "id": "277580", "author": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "In case others hit this: you need to be logged into your account to download that file. Otherwise you receive a 403.\r\n\r\nThank you, Ken for the thorough update, testing, and fix.", "updateAuthor": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-31T22:37:19.000+0000", "updated": "2013-10-31T22:37:19.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }