java.lang.ClassCastException: java.lang.String

Appcelerator JIRA | Ping Wang | 4 years ago
  1. 0

    The driver "android1" crashed when running a built with git_hash='6cbb9fef27c12e70294ea502bf69242307d2e9a8'. The error log is: {code} D/Module (18747): Loading module: init -> Resources/init.js D/Module (18747): Loading module: common -> Resources/common.js D/Module (18747): Loading module: testUtil -> Resources/testUtil.js D/Module (18747): Loading module: util -> Resources/util.js W/System.err(18747): java.lang.ClassCastException: java.lang.String W/System.err(18747): at android.app.ContextImpl$SharedPreferencesImpl.getInt(ContextImpl.java:3000) W/System.err(18747): at org.appcelerator.titanium.TiProperties.getInt(TiProperties.java:97) W/System.err(18747): at ti.modules.titanium.app.properties.PropertiesModule.getInt(PropertiesModule.java:50) W/System.err(18747): at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method) W/System.err(18747): at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:146) W/System.err(18747): at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:267) W/System.err(18747): at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:172) W/System.err(18747): at android.os.Handler.dispatchMessage(Handler.java:95) W/System.err(18747): at android.os.Looper.loop(Looper.java:150) W/System.err(18747): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:104) D/dalvikvm(18747): GC_CONCURRENT freed 347K, 46% free 3261K/5959K, external 0K/0K, paused 5ms+5ms E/TiJSError(18747): (main) [337,653] ----- Titanium Javascript Runtime Error ----- E/TiJSError(18747): (main) [0,653] - In ti:/properties.js:18,20 E/TiJSError(18747): (main) [0,653] - Message: Uncaught Error: java.lang.String E/TiJSError(18747): (main) [0,653] - Source: return delegate.call(Properties, key); {code}

    Appcelerator JIRA | 4 years ago | Ping Wang
    java.lang.ClassCastException: java.lang.String
  2. 0

    The driver "android1" crashed when running a built with git_hash='6cbb9fef27c12e70294ea502bf69242307d2e9a8'. The error log is: {code} D/Module (18747): Loading module: init -> Resources/init.js D/Module (18747): Loading module: common -> Resources/common.js D/Module (18747): Loading module: testUtil -> Resources/testUtil.js D/Module (18747): Loading module: util -> Resources/util.js W/System.err(18747): java.lang.ClassCastException: java.lang.String W/System.err(18747): at android.app.ContextImpl$SharedPreferencesImpl.getInt(ContextImpl.java:3000) W/System.err(18747): at org.appcelerator.titanium.TiProperties.getInt(TiProperties.java:97) W/System.err(18747): at ti.modules.titanium.app.properties.PropertiesModule.getInt(PropertiesModule.java:50) W/System.err(18747): at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method) W/System.err(18747): at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:146) W/System.err(18747): at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:267) W/System.err(18747): at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:172) W/System.err(18747): at android.os.Handler.dispatchMessage(Handler.java:95) W/System.err(18747): at android.os.Looper.loop(Looper.java:150) W/System.err(18747): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:104) D/dalvikvm(18747): GC_CONCURRENT freed 347K, 46% free 3261K/5959K, external 0K/0K, paused 5ms+5ms E/TiJSError(18747): (main) [337,653] ----- Titanium Javascript Runtime Error ----- E/TiJSError(18747): (main) [0,653] - In ti:/properties.js:18,20 E/TiJSError(18747): (main) [0,653] - Message: Uncaught Error: java.lang.String E/TiJSError(18747): (main) [0,653] - Source: return delegate.call(Properties, key); {code}

    Appcelerator JIRA | 4 years ago | Ping Wang
    java.lang.ClassCastException: java.lang.String
  3. 0

    App runs fine the first time but crashes the second time

    Stack Overflow | 4 years ago | Adnan Zahid
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.fit.world.browser/com.fit.world.browser.MainActivity}: java.lang.ClassCastException: java.lang.String
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error on integer sharedPreferences

    Stack Overflow | 3 years ago | John
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.thesis.logipic/com.thesis.logipic.Gameplay}: java.lang.ClassCastException: java.lang.String
  6. 0

    Using SharedPreferences on a onClick method

    Stack Overflow | 4 years ago | SxEdge
    java.lang.IllegalStateException: Could not execute method of the activity

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String

      at android.app.ContextImpl$SharedPreferencesImpl.getInt()
    2. Android Platform
      ContextImpl$SharedPreferencesImpl.getInt
      1. android.app.ContextImpl$SharedPreferencesImpl.getInt(ContextImpl.java:3000)
      1 frame
    3. org.appcelerator.titanium
      TiProperties.getInt
      1. org.appcelerator.titanium.TiProperties.getInt(TiProperties.java:97)
      1 frame
    4. ti.modules.titanium
      PropertiesModule.getInt
      1. ti.modules.titanium.app.properties.PropertiesModule.getInt(PropertiesModule.java:50)
      1 frame
    5. org.appcelerator.kroll
      V8Runtime.handleMessage
      1. org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)
      2. org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:146)
      3. org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:267)
      4. org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:172)
      4 frames
    6. Android Platform
      Looper.loop
      1. android.os.Handler.dispatchMessage(Handler.java:95)
      2. android.os.Looper.loop(Looper.java:150)
      2 frames
    7. org.appcelerator.kroll
      KrollRuntime$KrollRuntimeThread.run
      1. org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:104)
      1 frame