Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16063] Android: Field Service App crashes with java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-12-23T22:33:46.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 26, 2013 Sprint 26 API, Release 3.2.1, Release 3.3.0
Componentsn/a
Labelsn/a
ReporterAlan Leard
AssigneePing Wang
Created2013-12-20T19:44:22.000+0000
Updated2014-01-31T04:03:10.000+0000

Description

Description

Field Service App crashes when built with 3.2 RC SDK after login.

Repro Steps

1. Import the latest FSA from the Studio Dashboard 2. Follow README to start Node Service 3. Build app for Android Galaxy Tab 2 4. Launch all and click login. (if its the first login may need to create account. In my test account was already created so clicking on login completes login. 5. Application crashes. Log attached.

Attachments

FileDateSize
androidFSAcrash.log2013-12-20T19:44:22.000+0000193875

Comments

  1. Alan Leard 2013-12-20

    Swapping out
       touchEnabled:"true"
       
    with
       touchEnabled:true
       
    fixed this issues.
  2. Ping Wang 2013-12-20

    PR: https://github.com/appcelerator/titanium_mobile/pull/5159 For FR, please run the test case below. It should not crash. Test case:
       var win = Ti.UI.createWindow({
       	backgroundColor: "white"
       });
       
       var view = Ti.UI.createView({
       	backgroundColor: "blue",
       	width: 200,
       	height: 200,
       	touchEnabled: "true"
       });
       
       win.add(view);
       win.open();
       
  3. Allen Yeung 2013-12-21

    PR merged. Waiting for 3_2_X fix to resolve.
  4. Ping Wang 2013-12-23

    3_2_X PR: https://github.com/appcelerator/titanium_mobile/pull/5162
  5. Neha Mittal 2014-01-07

    Tested with SDK: 3.2.1.v20140106195644 and 3.3.0.v20140106195650 using environment: Appcelerator Studio: 3.2.1.201401061716 acs@1.0.11 alloy@1.3.1-beta npm@1.3.2 titanium@3.2.0 titanium-code-processor@1.1.0 Mac OSX 10.9 Mavericks Device: Nexus7(4.4.2) Result: Field Service App does not crashes.
  6. Lokesh Choudhary 2014-01-07

    Verified the fix. FSA does not crash,also tested the FR code mentioned above & it did not crash as well. Closing. Environment: Appc Studio : 3.2.1.201401061716 Ti SDK : 3.2.1.v20140106195644 , 3.3.0.v20140106195650 Mac OSX : 10.8.5 Alloy : 1.3.1-beta CLI - 3.2.0

JSON Source