java.lang.ClassCastException: org.eclipse.debug.core.Launch cannot be cast to org.eclipse.debug.core.model.IProcess

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

    1. Create a default mobile project in studio. 2. Install a distribution APK on device. 3. *Don't* uninstall the distribution app from the device. Run the app in debug mode on device. 4. It shows "Build failed" message during the installing step. The log message is {code} !ENTRY org.eclipse.debug.core 4 125 2013-11-14 15:20:23.526 !MESSAGE Error logged from Debug Core: !STACK 0 java.lang.ClassCastException: org.eclipse.debug.core.Launch cannot be cast to org.eclipse.debug.core.model.IProcess at com.appcelerator.titanium.android.internal.ui.DebugLaunchStatusHandler.handleStatus(DebugLaunchStatusHandler.java:29) at com.appcelerator.titanium.android.core.launching.AndroidInstallerLaunchConfigurationDelegate.cleanUp(AndroidInstallerLaunchConfigurationDelegate.java:114) at com.appcelerator.titanium.android.core.launching.AndroidInstallerLaunchConfigurationDelegate.access$0(AndroidInstallerLaunchConfigurationDelegate.java:105) at com.appcelerator.titanium.android.core.launching.AndroidInstallerLaunchConfigurationDelegate$TitaniumDeployListener.error(AndroidInstallerLaunchConfigurationDelegate.java:94) at com.appcelerator.titanium.core.internal.cli.TitaniumDeployManager.fireError(TitaniumDeployManager.java:67) at com.appcelerator.titanium.core.internal.cli.TitaniumDeployManager.fireError(TitaniumDeployManager.java:59) at com.appcelerator.titanium.android.core.launching.AndroidInstallAppStreamListener.streamAppended(AndroidInstallAppStreamListener.java:85) at org.eclipse.debug.internal.core.OutputStreamMonitor$ContentNotifier.run(OutputStreamMonitor.java:258) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.debug.internal.core.OutputStreamMonitor$ContentNotifier.notifyAppend(OutputStreamMonitor.java:268) at org.eclipse.debug.internal.core.OutputStreamMonitor.fireStreamAppended(OutputStreamMonitor.java:117) at org.eclipse.debug.internal.core.OutputStreamMonitor.read(OutputStreamMonitor.java:157) at org.eclipse.debug.internal.core.OutputStreamMonitor.access$1(OutputStreamMonitor.java:135) at org.eclipse.debug.internal.core.OutputStreamMonitor$1.run(OutputStreamMonitor.java:208) at java.lang.Thread.run(Thread.java:680) {code}

    Appcelerator JIRA | 3 years ago | Ping Wang
    java.lang.ClassCastException: org.eclipse.debug.core.Launch cannot be cast to org.eclipse.debug.core.model.IProcess
  2. 0

    1. Create a default mobile project in studio. 2. Install a distribution APK on device. 3. *Don't* uninstall the distribution app from the device. Run the app in debug mode on device. 4. It shows "Build failed" message during the installing step. The log message is {code} !ENTRY org.eclipse.debug.core 4 125 2013-11-14 15:20:23.526 !MESSAGE Error logged from Debug Core: !STACK 0 java.lang.ClassCastException: org.eclipse.debug.core.Launch cannot be cast to org.eclipse.debug.core.model.IProcess at com.appcelerator.titanium.android.internal.ui.DebugLaunchStatusHandler.handleStatus(DebugLaunchStatusHandler.java:29) at com.appcelerator.titanium.android.core.launching.AndroidInstallerLaunchConfigurationDelegate.cleanUp(AndroidInstallerLaunchConfigurationDelegate.java:114) at com.appcelerator.titanium.android.core.launching.AndroidInstallerLaunchConfigurationDelegate.access$0(AndroidInstallerLaunchConfigurationDelegate.java:105) at com.appcelerator.titanium.android.core.launching.AndroidInstallerLaunchConfigurationDelegate$TitaniumDeployListener.error(AndroidInstallerLaunchConfigurationDelegate.java:94) at com.appcelerator.titanium.core.internal.cli.TitaniumDeployManager.fireError(TitaniumDeployManager.java:67) at com.appcelerator.titanium.core.internal.cli.TitaniumDeployManager.fireError(TitaniumDeployManager.java:59) at com.appcelerator.titanium.android.core.launching.AndroidInstallAppStreamListener.streamAppended(AndroidInstallAppStreamListener.java:85) at org.eclipse.debug.internal.core.OutputStreamMonitor$ContentNotifier.run(OutputStreamMonitor.java:258) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.debug.internal.core.OutputStreamMonitor$ContentNotifier.notifyAppend(OutputStreamMonitor.java:268) at org.eclipse.debug.internal.core.OutputStreamMonitor.fireStreamAppended(OutputStreamMonitor.java:117) at org.eclipse.debug.internal.core.OutputStreamMonitor.read(OutputStreamMonitor.java:157) at org.eclipse.debug.internal.core.OutputStreamMonitor.access$1(OutputStreamMonitor.java:135) at org.eclipse.debug.internal.core.OutputStreamMonitor$1.run(OutputStreamMonitor.java:208) at java.lang.Thread.run(Thread.java:680) {code}

    Appcelerator JIRA | 3 years ago | Ping Wang
    java.lang.ClassCastException: org.eclipse.debug.core.Launch cannot be cast to org.eclipse.debug.core.model.IProcess
  3. 0

    Scala 2.11.5 and Squeryl?

    Google Groups | 2 years ago | Clint Gilbert
    java.lang.ClassCastException: scala.None$ cannot be cast to
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    adam2vcf

    Google Groups | 8 months ago | someya sayeh
    java.lang.ClassCastException: org.bdgenomics.formats.avro.Fragment cannot be cast to
  6. 0

    Memcached Java客户端2.6.1发布 - 编程语言 - ITeye资讯

    iteye.com | 1 year ago
    java.lang.ClassCastException: cannot be cast to

    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.eclipse.debug.core.Launch cannot be cast to org.eclipse.debug.core.model.IProcess

      at com.appcelerator.titanium.android.internal.ui.DebugLaunchStatusHandler.handleStatus()
    2. com.appcelerator.titanium
      AndroidInstallAppStreamListener.streamAppended
      1. com.appcelerator.titanium.android.internal.ui.DebugLaunchStatusHandler.handleStatus(DebugLaunchStatusHandler.java:29)
      2. com.appcelerator.titanium.android.core.launching.AndroidInstallerLaunchConfigurationDelegate.cleanUp(AndroidInstallerLaunchConfigurationDelegate.java:114)
      3. com.appcelerator.titanium.android.core.launching.AndroidInstallerLaunchConfigurationDelegate.access$0(AndroidInstallerLaunchConfigurationDelegate.java:105)
      4. com.appcelerator.titanium.android.core.launching.AndroidInstallerLaunchConfigurationDelegate$TitaniumDeployListener.error(AndroidInstallerLaunchConfigurationDelegate.java:94)
      5. com.appcelerator.titanium.core.internal.cli.TitaniumDeployManager.fireError(TitaniumDeployManager.java:67)
      6. com.appcelerator.titanium.core.internal.cli.TitaniumDeployManager.fireError(TitaniumDeployManager.java:59)
      7. com.appcelerator.titanium.android.core.launching.AndroidInstallAppStreamListener.streamAppended(AndroidInstallAppStreamListener.java:85)
      7 frames
    3. Debug Core
      OutputStreamMonitor$ContentNotifier.run
      1. org.eclipse.debug.internal.core.OutputStreamMonitor$ContentNotifier.run(OutputStreamMonitor.java:258)
      1 frame
    4. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    5. Debug Core
      OutputStreamMonitor$1.run
      1. org.eclipse.debug.internal.core.OutputStreamMonitor$ContentNotifier.notifyAppend(OutputStreamMonitor.java:268)
      2. org.eclipse.debug.internal.core.OutputStreamMonitor.fireStreamAppended(OutputStreamMonitor.java:117)
      3. org.eclipse.debug.internal.core.OutputStreamMonitor.read(OutputStreamMonitor.java:157)
      4. org.eclipse.debug.internal.core.OutputStreamMonitor.access$1(OutputStreamMonitor.java:135)
      5. org.eclipse.debug.internal.core.OutputStreamMonitor$1.run(OutputStreamMonitor.java:208)
      5 frames
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:680)
      1 frame