java.lang.ClassCastException: org.appcelerator.kroll.KrollRuntime$1

Appcelerator JIRA | Opie Cyrus | 5 years ago
  1. 0

    when invalid values are set for width and height an exception occurs when trying to convert the values into TiDimension: {code} var imageView = Ti.UI.createImageView({ width:win.width, height:win.height, image:event.media }); win.add(imageView); {code} * this would be when win.width is undefined. This test case can be found in the KS camera test. Resulting error: {code} 04-04 16:26:45.345 21220 21220 E TiApplication: (main) [9299,18498] Sending event: exception on thread: main msg:java.lang.ClassCastException: org.appcelerator.kroll.KrollRuntime$1; Titanium 2.1.0,2012/04/04 15:16,161fb52 04-04 16:26:45.345 21220 21220 E TiApplication: java.lang.ClassCastException: org.appcelerator.kroll.KrollRuntime$1 04-04 16:26:45.345 21220 21220 E TiApplication: at org.appcelerator.titanium.util.TiConvert.toTiDimension(TiConvert.java:550) 04-04 16:26:45.345 21220 21220 E TiApplication: at org.appcelerator.titanium.util.TiConvert.toTiDimension(TiConvert.java:561) 04-04 16:26:45.345 21220 21220 E TiApplication: at ti.modules.titanium.ui.widget.TiUIImageView.processProperties(TiUIImageView.java:806) 04-04 16:26:45.345 21220 21220 E TiApplication: at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:737) 04-04 16:26:45.345 21220 21220 E TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:530) 04-04 16:26:45.345 21220 21220 E TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:522) 04-04 16:26:45.345 21220 21220 E TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:500) 04-04 16:26:45.345 21220 21220 E TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:616) 04-04 16:26:45.345 21220 21220 E TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:307) 04-04 16:26:45.345 21220 21220 E TiApplication: at org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:110) 04-04 16:26:45.345 21220 21220 E TiApplication: at ti.modules.titanium.ui.ActivityWindowProxy.handleMessage(ActivityWindowProxy.java:93) 04-04 16:26:45.345 21220 21220 E TiApplication: at android.os.Handler.dispatchMessage(Handler.java:95) 04-04 16:26:45.345 21220 21220 E TiApplication: at android.os.Looper.loop(Looper.java:143) 04-04 16:26:45.345 21220 21220 E TiApplication: at android.app.ActivityThread.main(ActivityThread.java:4701) 04-04 16:26:45.345 21220 21220 E TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) 04-04 16:26:45.345 21220 21220 E TiApplication: at java.lang.reflect.Method.invoke(Method.java:521) 04-04 16:26:45.345 21220 21220 E TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 04-04 16:26:45.345 21220 21220 E TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 04-04 16:26:45.345 21220 21220 E TiApplication: at dalvik.system.NativeStart.main(Native Method) 04-04 16:26:45.353 1401 21298 I MediaScanner: process file: /sdcard/dcim/Camera/tia70621.jpg 04-04 16:26:45.361 1401 21298 D DlnaMediaParser: getJPEGProfileName: 4 04-04 16:26:45.494 1401 1428 D MediaProvider: current image thumbnail number created successfully is:2 04-04 16:26:45.728 1238 1257 D BatteryTempPolicy: updateBatteryTemp temperature = 380, Threshhold = 3 04-04 16:26:45.767 16521 16521 E GlobalUnplugService: plugged = true,mBatteryPlugged=true {code} We should gracefully handle invalid values when they are set or processed either by throwing exceptions to let the developer know of the problem or defaulting to valid values. Requires parity discussion.

    Appcelerator JIRA | 5 years ago | Opie Cyrus
    java.lang.ClassCastException: org.appcelerator.kroll.KrollRuntime$1
  2. 0

    when invalid values are set for width and height an exception occurs when trying to convert the values into TiDimension: {code} var imageView = Ti.UI.createImageView({ width:win.width, height:win.height, image:event.media }); win.add(imageView); {code} * this would be when win.width is undefined. This test case can be found in the KS camera test. Resulting error: {code} 04-04 16:26:45.345 21220 21220 E TiApplication: (main) [9299,18498] Sending event: exception on thread: main msg:java.lang.ClassCastException: org.appcelerator.kroll.KrollRuntime$1; Titanium 2.1.0,2012/04/04 15:16,161fb52 04-04 16:26:45.345 21220 21220 E TiApplication: java.lang.ClassCastException: org.appcelerator.kroll.KrollRuntime$1 04-04 16:26:45.345 21220 21220 E TiApplication: at org.appcelerator.titanium.util.TiConvert.toTiDimension(TiConvert.java:550) 04-04 16:26:45.345 21220 21220 E TiApplication: at org.appcelerator.titanium.util.TiConvert.toTiDimension(TiConvert.java:561) 04-04 16:26:45.345 21220 21220 E TiApplication: at ti.modules.titanium.ui.widget.TiUIImageView.processProperties(TiUIImageView.java:806) 04-04 16:26:45.345 21220 21220 E TiApplication: at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:737) 04-04 16:26:45.345 21220 21220 E TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:530) 04-04 16:26:45.345 21220 21220 E TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:522) 04-04 16:26:45.345 21220 21220 E TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:500) 04-04 16:26:45.345 21220 21220 E TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:616) 04-04 16:26:45.345 21220 21220 E TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:307) 04-04 16:26:45.345 21220 21220 E TiApplication: at org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:110) 04-04 16:26:45.345 21220 21220 E TiApplication: at ti.modules.titanium.ui.ActivityWindowProxy.handleMessage(ActivityWindowProxy.java:93) 04-04 16:26:45.345 21220 21220 E TiApplication: at android.os.Handler.dispatchMessage(Handler.java:95) 04-04 16:26:45.345 21220 21220 E TiApplication: at android.os.Looper.loop(Looper.java:143) 04-04 16:26:45.345 21220 21220 E TiApplication: at android.app.ActivityThread.main(ActivityThread.java:4701) 04-04 16:26:45.345 21220 21220 E TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) 04-04 16:26:45.345 21220 21220 E TiApplication: at java.lang.reflect.Method.invoke(Method.java:521) 04-04 16:26:45.345 21220 21220 E TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 04-04 16:26:45.345 21220 21220 E TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 04-04 16:26:45.345 21220 21220 E TiApplication: at dalvik.system.NativeStart.main(Native Method) 04-04 16:26:45.353 1401 21298 I MediaScanner: process file: /sdcard/dcim/Camera/tia70621.jpg 04-04 16:26:45.361 1401 21298 D DlnaMediaParser: getJPEGProfileName: 4 04-04 16:26:45.494 1401 1428 D MediaProvider: current image thumbnail number created successfully is:2 04-04 16:26:45.728 1238 1257 D BatteryTempPolicy: updateBatteryTemp temperature = 380, Threshhold = 3 04-04 16:26:45.767 16521 16521 E GlobalUnplugService: plugged = true,mBatteryPlugged=true {code} We should gracefully handle invalid values when they are set or processed either by throwing exceptions to let the developer know of the problem or defaulting to valid values. Requires parity discussion.

    Appcelerator JIRA | 5 years ago | Opie Cyrus
    java.lang.ClassCastException: org.appcelerator.kroll.KrollRuntime$1
  3. 0

    ClassCastException thrown while trying to revert a plug-in's properties

    Eclipse Bugzilla | 9 years ago | remy.suen
    java.lang.ClassCastException: org.eclipse.babel.runtime.actions.PluginLocalizationDialog$1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    What this exception mean?

    Oracle Community | 1 decade ago | 843833
    java.lang.ClassCastException: com.sun.corba.ee.internal.iiop.CDRInputStream$1
  6. 0

    Create Dialog Box For Checking Internet Connection in Android

    Stack Overflow | 3 years ago | tazeenmulani
    java.lang.ClassCastException: com.example.detectinternetconnection.AndroidDetectInternetConnectionActivity$1

    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

      org.appcelerator.kroll.KrollRuntime$1

      at org.appcelerator.titanium.util.TiConvert.toTiDimension()
    2. org.appcelerator.titanium
      TiConvert.toTiDimension
      1. org.appcelerator.titanium.util.TiConvert.toTiDimension(TiConvert.java:550)
      2. org.appcelerator.titanium.util.TiConvert.toTiDimension(TiConvert.java:561)
      2 frames
    3. ti.modules.titanium
      TiUIImageView.processProperties
      1. ti.modules.titanium.ui.widget.TiUIImageView.processProperties(TiUIImageView.java:806)
      1 frame
    4. org.appcelerator.kroll
      KrollProxy.setModelListener
      1. org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:737)
      1 frame
    5. org.appcelerator.titanium
      TiWindowProxy.handleMessage
      1. org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:530)
      2. org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:522)
      3. org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:500)
      4. org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:616)
      5. org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:307)
      6. org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:110)
      6 frames
    6. ti.modules.titanium
      ActivityWindowProxy.handleMessage
      1. ti.modules.titanium.ui.ActivityWindowProxy.handleMessage(ActivityWindowProxy.java:93)
      1 frame
    7. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:95)
      2. android.os.Looper.loop(Looper.java:143)
      3. android.app.ActivityThread.main(ActivityThread.java:4701)
      3 frames
    8. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:521)
      2 frames
    9. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
      2 frames
    10. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame