{ "id": "114324", "key": "TIMOB-13850", "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": "15566", "description": "2013 Sprint 15 Tooling", "name": "2013 Sprint 15 Tooling", "archived": true, "released": true, "releaseDate": "2013-07-29" }, { "id": "15567", "description": "2013 Sprint 15", "name": "2013 Sprint 15", "archived": true, "released": true, "releaseDate": "2013-07-29" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2015-10-05T04:41:37.000+0000", "created": "2013-05-14T00:33:02.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-3.1.1", "qe-3.4.0", "qe-closed-3.2.0", "qe-testadded" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2017-03-23T22:37:40.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": "13600", "name": "LiveView", "description": "Live preview of Titanium apps" } ], "description": "h5. Description:\r\nWHile testing using the field service app installed via the Studio Samples pane, clicking the login button with no user or password info (which should work) results in an error being thrown in the console:\r\n\r\n{code}\r\n[ERROR] : [LiveView] {\r\n[ERROR] : error = {\r\n[ERROR] : backtrace = \"#0 () at file://localhost/Users/emerriman/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/83D68FB1-AC79-44FA-A309-D7D7BEEC6C02/Ti.FieldService.app/app.js:600\\n#1 () at file://localhost/Users/emerriman/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/83D68FB1-AC79-44FA-A309-D7D7BEEC6C02/Ti.FieldService.app/app.js:478\\n#2 createUser() at :51\\n#3 () at :45\";\r\n[ERROR] : line = 127;\r\n[ERROR] : message = \"Can't find variable: Alloy\";\r\n[ERROR] : name = ReferenceError;\r\n[ERROR] : sourceId = 359535296;\r\n[ERROR] : };\r\n[ERROR] : module = \"/data/setup.js\";\r\n[ERROR] : }\r\n[ERROR] : Script Error {\r\n[ERROR] : backtrace = \"#0 () at :45\";\r\n[ERROR] : line = 52;\r\n[ERROR] : message = \"'undefined' is not a function (evaluating 'setup.createUser()')\";\r\n[ERROR] : name = TypeError;\r\n[ERROR] : sourceId = 359534688;\r\n[ERROR] : }\r\n{code}\r\n\r\nh5. Steps to reproduce:\r\n1) Import the field sample app via Studio sample pane\r\n2) Enable liveview in run configurations\r\n3) Launch a liveview session in iPad simulator\r\n4) Click login button\r\n\r\nh5. Result:\r\nError thrown as seen above\r\n\r\nh5. Expected Result:\r\nNo error, prompting for creating sample user and data", "attachment": [ { "id": "51512", "filename": "ConsoleLog.txt", "author": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-09-23T08:48:17.000+0000", "size": 145052, "mimeType": "text/plain" }, { "id": "51569", "filename": "ConsoleLog2.txt", "author": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-09-24T06:07:32.000+0000", "size": 162752, "mimeType": "text/plain" } ], "flagged": false, "summary": "LiveView: Clicking login on field service app (from Studio Sample) throws error.", "creator": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS 10.8.3\r\nSafari: 6.0.4\r\nXcode 4.6\r\nCLI: 3.1.0\r\ntitanium-code-processor: 1.0.1\r\nAlloy: 1.1.2\r\nAppcelerator Studio, build: 3.1.1.201305130813\r\nTitanium SDK version 3.1.1.v20130509140103\r\nLiveView: 0.1.19\r\nNode: v0.8.22", "comment": { "comments": [ { "id": "263311", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Still see the issue with LiveView 0.1.29 and Alloy 1.2.0. Here is the updated stack trace:\n\n{code}\n[LiveView] Client connected\n[INFO] : [object ComAppceleratorApmModule] loaded\n[INFO] : [object ComSoastaTouchtestModule] loaded\n[INFO] : [LiveView] Error Evaluating /data/setup.js @ Line: 131\n[ERROR] : ReferenceError: Can't find variable: Alloy\n[ERROR] : File: /data/setup.js\n[ERROR] : Line: 131\n[ERROR] : SourceId: 360040448\n[ERROR] : Backtrace:\n[ERROR] : #0 () at file://localhost/Users/mxia/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/27D57553-41DC-4C4C-8DAB-11A2F6869224/Ti.FieldService.app/app.js:616\n[ERROR] : #1 () at file://localhost/Users/mxia/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/27D57553-41DC-4C4C-8DAB-11A2F6869224/Ti.FieldService.app/app.js:492\n[ERROR] : #2 () at :32\n[ERROR] : Script Error {\n[ERROR] : backtrace = \"#0 () at :0\";\n[ERROR] : line = 33;\n[ERROR] : message = \"'undefined' is not a function (evaluating 'setup.loadData()')\";\n[ERROR] : name = TypeError;\n[ERROR] : sourceId = 360038400;\n[ERROR] : }\n{code}\n", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-26T01:24:50.000+0000", "updated": "2013-07-26T01:24:50.000+0000" }, { "id": "263509", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "resolved in [master] https://github.com/appcelerator/liveview/commit/200e160f2588562f7aa619500b502ee2f887f88f", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-26T21:53:52.000+0000", "updated": "2013-07-26T21:53:52.000+0000" }, { "id": "284710", "author": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified with environment:\r\n\r\nAppcelerator Studio: 3.2.0.201312151544\r\nSDK: 3.2.0.v20131216191854\r\nalloy: 1.3.0-cr2\r\nacs: 1.0.10\r\nnpm: 1.3.2\r\ntitanium: 3.2.0-cr3\r\ntitanium-code-processor: 1.1.0-cr2\r\nMac OSX 10.9 Mavericks", "updateAuthor": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-12-17T07:16:31.000+0000", "updated": "2013-12-17T07:16:31.000+0000" }, { "id": "325107", "author": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "body": "The following error message is observed when running Field Service app. App didn't launch the login window. Please refer attached *console log* file for more info.\r\n{code}\r\n[INFO] : [LiveView] Error Evaluating app.js @ Line: undefined\r\n[ERROR] : ReferenceError: parts is not defined\r\n[ERROR] : File: app.js\r\n[ERROR] : Line: undefined\r\n[ERROR] : SourceId: undefined\r\n[ERROR] : Backtrace:\r\n[ERROR] : undefined\r\n{code}\r\n\r\nTest Environment: \r\n|Appc-Studio | 3.4.0.201409161950|\r\n|Titanium SDK | 3.4.0.v20140922135716|\r\n|Titanium CLI | 3.4.0-rc4|\r\n|Alloy | 1.5.0-rc3|\r\n|ACS | 1.0.17 |\r\n| Liveview | 1.0.6 |\r\n|OS | Windows 8.1 (x64)|", "updateAuthor": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-09-23T08:47:14.000+0000", "updated": "2014-09-23T08:47:14.000+0000" }, { "id": "325365", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Does this issue occur without LiveView as well?", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-24T04:50:19.000+0000", "updated": "2014-09-24T04:50:19.000+0000" }, { "id": "325367", "author": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "body": "I can launch the Field Service App without liveview. It doesn't show any errors as earlier. \r\nBut I can not run the app because of the issues on enabling Appc-services. \r\n\r\nTest Environment:\r\nAppc-Studio: 3.4.0.201409231834\r\nTitanium SDK: 3.4.0.v20140922135716\r\nTitanium CLI: 3.4.0-rc4\r\nAlloy : 1.5.0-rc3\r\nDevice: Galaxy Note 10.1 (v4.3)\r\nOS: Windows 8.1 (x64)\r\n", "updateAuthor": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-09-24T05:08:14.000+0000", "updated": "2014-09-24T05:08:14.000+0000" }, { "id": "325368", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "What is the issue you are running with enabling services? Which environment you are pointing to in Studio - Prod or Pre-prod?", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-24T05:12:46.000+0000", "updated": "2014-09-24T05:12:46.000+0000" }, { "id": "325369", "author": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "body": "I am pointing to production environment (https://dashboard.appcelerator.com)\r\nCloud enablement fails for existing apps such as importing sample projects from studio. It doesn't generate acs key.", "updateAuthor": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-09-24T05:17:03.000+0000", "updated": "2014-09-24T05:17:03.000+0000" }, { "id": "325371", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can you try another org (for example, Appcelerator Inc.) as this specific org may have an issue? Try pointing to preprod env as well.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-24T05:29:15.000+0000", "updated": "2014-09-24T05:29:37.000+0000" }, { "id": "325374", "author": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "body": "In production environment, I have the access only for *qe_test_org_prod* which doesn't allow me to enable cloud.\r\n\r\nIn preprod, I used *QEVPCTest* org and enabled cloud services. But when I run the field service app(without liveview enabled), I received following excepting after I pressed Login button.\r\n{code}\r\n[ERROR] : V8Exception: Exception occurred at undefined:1: Uncaught SyntaxError: Unexpected token s\r\n[ERROR] : XMLModule: (KrollRuntimeThread) [15350,21235] Error parsing XML\r\n[ERROR] : XMLModule: org.xml.sax.SAXParseException: Unexpected token (position:TEXT {success: false,...@1:47 in java.io.InputStreamReader@4289df10)\r\n[ERROR] : XMLModule: \tat org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:146)\r\n[ERROR] : XMLModule: \tat javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:107)\r\n[ERROR] : XMLModule: \tat ti.modules.titanium.xml.XMLModule.parse(XMLModule.java:82)\r\n[ERROR] : XMLModule: \tat ti.modules.titanium.xml.XMLModule.parse(XMLModule.java:68)\r\n[ERROR] : XMLModule: \tat ti.modules.titanium.network.TiHTTPClient.getResponseXML(TiHTTPClient.java:700)\r\n[ERROR] : XMLModule: \tat ti.modules.titanium.network.HTTPClientProxy.getResponseXML(HTTPClientProxy.java:107)\r\n[ERROR] : XMLModule: \tat org.appcelerator.kroll.runtime.v8.V8Object.nativeCallProperty(Native Method)\r\n[ERROR] : XMLModule: \tat org.appcelerator.kroll.runtime.v8.V8Object.callProperty(V8Object.java:73)\r\n[ERROR] : XMLModule: \tat org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1121)\r\n[ERROR] : XMLModule: \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n[ERROR] : XMLModule: \tat android.os.Looper.loop(Looper.java:137)\r\n[ERROR] : XMLModule: \tat org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)\r\n[ERROR] : TiHttpClient: (KrollRuntimeThread) [4,21239] Error parsing XML\r\n[ERROR] : TiHttpClient: org.xml.sax.SAXParseException: Unexpected token (position:TEXT {success: false,...@1:47 in java.io.InputStreamReader@4289df10)\r\n[ERROR] : TiHttpClient: \tat org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:146)\r\n[ERROR] : TiHttpClient: \tat javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:107)\r\n[ERROR] : TiHttpClient: \tat ti.modules.titanium.xml.XMLModule.parse(XMLModule.java:82)\r\n[ERROR] : TiHttpClient: \tat ti.modules.titanium.xml.XMLModule.parse(XMLModule.java:68)\r\n[ERROR] : TiHttpClient: \tat ti.modules.titanium.network.TiHTTPClient.getResponseXML(TiHTTPClient.java:700)\r\n[ERROR] : TiHttpClient: \tat ti.modules.titanium.network.HTTPClientProxy.getResponseXML(HTTPClientProxy.java:107)\r\n[ERROR] : TiHttpClient: \tat org.appcelerator.kroll.runtime.v8.V8Object.nativeCallProperty(Native Method)\r\n[ERROR] : TiHttpClient: \tat org.appcelerator.kroll.runtime.v8.V8Object.callProperty(V8Object.java:73)\r\n[ERROR] : TiHttpClient: \tat org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1121)\r\n[ERROR] : TiHttpClient: \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n[ERROR] : TiHttpClient: \tat android.os.Looper.loop(Looper.java:137)\r\n[ERROR] : TiHttpClient: \tat org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)\r\n{code}", "updateAuthor": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-09-24T06:04:10.000+0000", "updated": "2014-09-24T06:04:10.000+0000" }, { "id": "325375", "author": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "body": "I attached the full console log as a file *ConsoleLog2.txt*", "updateAuthor": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-09-24T06:06:43.000+0000", "updated": "2014-09-24T06:07:48.000+0000" }, { "id": "325611", "author": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "body": "{panel:title=With LiveView}\r\nActual Reason for Reopening this ticket is still reproducible. FSA is still throwing the runtime error with following console errors\r\n{code} [INFO] : [LiveView] Error Evaluating app.js @ Line: undefined\r\n[ERROR] : ReferenceError: parts is not defined\r\n[ERROR] : File: app.js\r\n[ERROR] : Line: undefined\r\n[ERROR] : SourceId: undefined\r\n[ERROR] : Backtrace:\r\n[ERROR] : undefined {code}\r\n{panel}\r\n\r\n{panel:title=Without LiveView}\r\nThe Error scenario I got earlier which is mentioned in above comments, doesn't occur anymore.\r\n{panel}", "updateAuthor": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-09-25T09:45:01.000+0000", "updated": "2014-09-25T09:45:01.000+0000" }, { "id": "365754", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket since sample app no longer available.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-10-05T04:41:20.000+0000", "updated": "2015-10-05T04:41:20.000+0000" }, { "id": "415473", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as Won't Fix with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T22:37:40.000+0000", "updated": "2017-03-23T22:37:40.000+0000" } ], "maxResults": 16, "total": 16, "startAt": 0 } } }