java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String

Appcelerator JIRA | Ewan Harris | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    h5.Description When opening Studio the below error is thrown, this appears to be due to the Windows SDK detection {code} !ENTRY org.eclipse.core.jobs 4 2 2015-06-18 16:20:28.962 !MESSAGE An internal error occurred during: "Computing SDK Info...". !STACK 0 java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String at com.appcelerator.titanium.windows.internal.core.launching.Device.<init>(Device.java:30) at com.appcelerator.titanium.windows.core.WindowsSDKLocator$2.map(WindowsSDKLocator.java:247) at com.appcelerator.titanium.windows.core.WindowsSDKLocator$2.map(WindowsSDKLocator.java:1) at com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:432) at com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:466) at com.appcelerator.titanium.windows.core.WindowsSDKLocator.parseTiInfo(WindowsSDKLocator.java:242) at com.appcelerator.titanium.windows.core.WindowsSDKLocator.initialize(WindowsSDKLocator.java:126) at com.appcelerator.titanium.core.mobile.SDKLocator.lazyInitialize(SDKLocator.java:235) at com.appcelerator.titanium.core.mobile.SDKLocator.getInitializationStatus(SDKLocator.java:137) at com.appcelerator.titanium.ui.portal.processor.MobileSDKConfigurationHelper.getSDKInitializationStatus(MobileSDKConfigurationHelper.java:324) at com.appcelerator.titanium.ui.portal.actionController.MobileSDKActionController.refreshSDK(MobileSDKActionController.java:349) at com.appcelerator.titanium.ui.portal.actionController.MobileSDKActionController$1.run(MobileSDKActionController.java:125) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code} h5.Steps To Reproduce 1. Install 4.1.0 Studio from http://preview.appcelerator.com/appc-studio/ 2. Open Studio h5.Actual Result The above error is thrown h5.Expected Result Studio should not throw an error when opening

    Appcelerator JIRA | 2 years ago | Ewan Harris
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
  2. 0

    h5.Description When opening Studio the below error is thrown, this appears to be due to the Windows SDK detection {code} !ENTRY org.eclipse.core.jobs 4 2 2015-06-18 16:20:28.962 !MESSAGE An internal error occurred during: "Computing SDK Info...". !STACK 0 java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String at com.appcelerator.titanium.windows.internal.core.launching.Device.<init>(Device.java:30) at com.appcelerator.titanium.windows.core.WindowsSDKLocator$2.map(WindowsSDKLocator.java:247) at com.appcelerator.titanium.windows.core.WindowsSDKLocator$2.map(WindowsSDKLocator.java:1) at com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:432) at com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:466) at com.appcelerator.titanium.windows.core.WindowsSDKLocator.parseTiInfo(WindowsSDKLocator.java:242) at com.appcelerator.titanium.windows.core.WindowsSDKLocator.initialize(WindowsSDKLocator.java:126) at com.appcelerator.titanium.core.mobile.SDKLocator.lazyInitialize(SDKLocator.java:235) at com.appcelerator.titanium.core.mobile.SDKLocator.getInitializationStatus(SDKLocator.java:137) at com.appcelerator.titanium.ui.portal.processor.MobileSDKConfigurationHelper.getSDKInitializationStatus(MobileSDKConfigurationHelper.java:324) at com.appcelerator.titanium.ui.portal.actionController.MobileSDKActionController.refreshSDK(MobileSDKActionController.java:349) at com.appcelerator.titanium.ui.portal.actionController.MobileSDKActionController$1.run(MobileSDKActionController.java:125) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code} h5.Steps To Reproduce 1. Install 4.1.0 Studio from http://preview.appcelerator.com/appc-studio/ 2. Open Studio h5.Actual Result The above error is thrown h5.Expected Result Studio should not throw an error when opening

    Appcelerator JIRA | 2 years ago | Ewan Harris
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
  3. 0

    ClassCastException in ReconcileStepForValidator

    Eclipse Bugzilla | 1 decade ago | rrodseth
    java.lang.ClassCastException: java.util.ArrayList at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.createAnnotations(ReconcileStepForValidator.java:86) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:234) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:201) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:96) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:173) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:144) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor.run(DirtyRegionProcessor.java:423)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.Long cannot be cast to java.lang.String

      at com.appcelerator.titanium.windows.internal.core.launching.Device.<init>()
    2. com.appcelerator.titanium
      WindowsSDKLocator$2.map
      1. com.appcelerator.titanium.windows.internal.core.launching.Device.<init>(Device.java:30)
      2. com.appcelerator.titanium.windows.core.WindowsSDKLocator$2.map(WindowsSDKLocator.java:247)
      3. com.appcelerator.titanium.windows.core.WindowsSDKLocator$2.map(WindowsSDKLocator.java:1)
      3 frames
    3. com.aptana.core
      CollectionsUtil.map
      1. com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:432)
      2. com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:466)
      2 frames
    4. com.appcelerator.titanium
      MobileSDKActionController$1.run
      1. com.appcelerator.titanium.windows.core.WindowsSDKLocator.parseTiInfo(WindowsSDKLocator.java:242)
      2. com.appcelerator.titanium.windows.core.WindowsSDKLocator.initialize(WindowsSDKLocator.java:126)
      3. com.appcelerator.titanium.core.mobile.SDKLocator.lazyInitialize(SDKLocator.java:235)
      4. com.appcelerator.titanium.core.mobile.SDKLocator.getInitializationStatus(SDKLocator.java:137)
      5. com.appcelerator.titanium.ui.portal.processor.MobileSDKConfigurationHelper.getSDKInitializationStatus(MobileSDKConfigurationHelper.java:324)
      6. com.appcelerator.titanium.ui.portal.actionController.MobileSDKActionController.refreshSDK(MobileSDKActionController.java:349)
      7. com.appcelerator.titanium.ui.portal.actionController.MobileSDKActionController$1.run(MobileSDKActionController.java:125)
      7 frames
    5. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      1 frame