java.lang.ClassCastException: java.awt.Color cannot be cast to java.lang.Boolean

GitHub | danielratiu | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Strange ClassCastException with MPS 3.4

    GitHub | 8 months ago | danielratiu
    java.lang.ClassCastException: java.awt.Color cannot be cast to java.lang.Boolean

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.awt.Color cannot be cast to java.lang.Boolean

      at de.itemis.mps.editor.celllayout.runtime.AbstractLayoutableAdapter.calcIsPushX()
    2. de.itemis.mps
      LayoutInterceptor.doLayout
      1. de.itemis.mps.editor.celllayout.runtime.AbstractLayoutableAdapter.calcIsPushX(AbstractLayoutableAdapter.java:219)
      2. de.itemis.mps.editor.celllayout.runtime.AbstractLayoutableAdapter.readSyncAll(AbstractLayoutableAdapter.java:171)
      3. de.itemis.mps.editor.celllayout.runtime.LayoutableAdapter.readSyncAll(LayoutableAdapter.java:45)
      4. de.itemis.mps.editor.celllayout.runtime.LayoutableCollectionAdapter.readSyncChildren(LayoutableCollectionAdapter.java:352)
      5. de.itemis.mps.editor.celllayout.runtime.AbstractLayoutableAdapter.readSyncAll(AbstractLayoutableAdapter.java:166)
      6. de.itemis.mps.editor.celllayout.runtime.LayoutableCollectionAdapter.readSyncAll(LayoutableCollectionAdapter.java:342)
      7. de.itemis.mps.editor.celllayout.runtime.LayoutableCollectionAdapter.readSyncChildren(LayoutableCollectionAdapter.java:352)
      8. de.itemis.mps.editor.celllayout.runtime.AbstractLayoutableAdapter.readSyncAll(AbstractLayoutableAdapter.java:166)
      9. de.itemis.mps.editor.celllayout.runtime.LayoutableCollectionAdapter.readSyncAll(LayoutableCollectionAdapter.java:342)
      10. de.itemis.mps.editor.celllayout.runtime.LayoutEngine$2.run(LayoutEngine.java:76)
      11. de.itemis.mps.editor.celllayout.runtime.LayoutWatchdog.enter(LayoutWatchdog.java:21)
      12. de.itemis.mps.editor.celllayout.runtime.LayoutEngine.layoutSubtreeUnsafe(LayoutEngine.java:71)
      13. de.itemis.mps.editor.celllayout.runtime.LayoutEngine.layoutSubtree(LayoutEngine.java:66)
      14. de.itemis.mps.editor.celllayout.runtime.LayoutEngine.layoutSubtree(LayoutEngine.java:47)
      15. de.itemis.mps.editor.celllayout.runtime.LayoutEngine.layoutCell(LayoutEngine.java:43)
      16. de.itemis.mps.editor.celllayout.runtime.LayoutInterceptor.doLayout(LayoutInterceptor.java:62)
      16 frames
    3. JetBrains mps
      EditorComponent.relayout
      1. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.relayoutImpl(EditorCell_Collection.java:527)
      2. jetbrains.mps.nodeEditor.cells.EditorCell_Basic.relayout(EditorCell_Basic.java:872)
      3. jetbrains.mps.nodeEditor.EditorComponent.doRelayout(EditorComponent.java:1712)
      4. jetbrains.mps.nodeEditor.EditorComponent.relayout(EditorComponent.java:1699)
      4 frames
    4. de.itemis.mps
      ProjectPlugin_CustomProjectPlugin$3.editorComponentCreate
      1. de.itemis.mps.editor.celllayout.runtime.plugin.ProjectPlugin_CustomProjectPlugin$3.editorComponentCreate(ProjectPlugin_CustomProjectPlugin.java:43)
      1 frame
    5. de.slisson.mps
      EditorComponentCreationListener.start
      1. de.slisson.mps.hacks.editor.EditorComponentCreationListener.notifyCreate(EditorComponentCreationListener.java:61)
      2. de.slisson.mps.hacks.editor.EditorComponentCreationListener.start(EditorComponentCreationListener.java:43)
      2 frames
    6. de.itemis.mps
      ProjectPlugin_CustomProjectPlugin.doInit
      1. de.itemis.mps.editor.celllayout.runtime.plugin.ProjectPlugin_CustomProjectPlugin.doInit(ProjectPlugin_CustomProjectPlugin.java:52)
      1 frame
    7. jetbrains.mps.plugins
      BaseCustomProjectPlugin.init
      1. jetbrains.mps.plugins.custom.BaseCustomProjectPlugin.init(BaseCustomProjectPlugin.java:46)
      1 frame
    8. de.itemis.mps
      Runtime_ProjectPlugin.initCustomParts
      1. de.itemis.mps.editor.celllayout.runtime.plugin.Runtime_ProjectPlugin.initCustomParts(Runtime_ProjectPlugin.java:22)
      1 frame
    9. JetBrains mps
      PluginLoaderRegistry$UpdatingTask.lambda$run$0
      1. jetbrains.mps.plugins.projectplugins.BaseProjectPlugin.initCustomParts1(BaseProjectPlugin.java:122)
      2. jetbrains.mps.plugins.projectplugins.BaseProjectPlugin.init(BaseProjectPlugin.java:89)
      3. jetbrains.mps.plugins.projectplugins.ProjectPluginManager.createPlugin(ProjectPluginManager.java:170)
      4. jetbrains.mps.plugins.projectplugins.ProjectPluginManager.createPlugin(ProjectPluginManager.java:59)
      5. jetbrains.mps.plugins.BasePluginManager.createPluginChecked(BasePluginManager.java:139)
      6. jetbrains.mps.plugins.BasePluginManager.createPlugins(BasePluginManager.java:129)
      7. jetbrains.mps.plugins.BasePluginManager.loadPlugins(BasePluginManager.java:76)
      8. jetbrains.mps.plugins.projectplugins.ProjectPluginManager.loadPlugins(ProjectPluginManager.java:177)
      9. jetbrains.mps.plugins.PluginLoaderRegistry.loadContributors(PluginLoaderRegistry.java:146)
      10. jetbrains.mps.plugins.PluginLoaderRegistry.access$700(PluginLoaderRegistry.java:70)
      11. jetbrains.mps.plugins.PluginLoaderRegistry$UpdatingTask.addContributors(PluginLoaderRegistry.java:334)
      12. jetbrains.mps.plugins.PluginLoaderRegistry$UpdatingTask.doUpdate(PluginLoaderRegistry.java:324)
      13. jetbrains.mps.plugins.PluginLoaderRegistry$UpdatingTask.lambda$run$0(PluginLoaderRegistry.java:310)
      13 frames
    10. IDEA
      LaterInvocator$FlushQueue.run
      1. com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:291)
      2. com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:156)
      3. com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:326)
      4. com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:310)
      4 frames
    11. Java RT
      EventQueue.dispatchEvent
      1. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      2. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
      3. java.awt.EventQueue.access$500(EventQueue.java:97)
      4. java.awt.EventQueue$3.run(EventQueue.java:709)
      5. java.awt.EventQueue$3.run(EventQueue.java:703)
      6. java.security.AccessController.doPrivileged(Native Method)
      7. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      8. java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
      8 frames
    12. IDEA
      CoreProgressManager.run
      1. com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:863)
      2. com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:699)
      3. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385)
      4. com.intellij.ide.IdeEventQueue.pumpEventsForHierarchy(IdeEventQueue.java:950)
      5. com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:207)
      6. com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:194)
      7. com.intellij.openapi.application.impl.ApplicationImpl.runProcessWithProgressSynchronously(ApplicationImpl.java:569)
      8. com.intellij.openapi.progress.impl.CoreProgressManager.runProcessWithProgressSynchronously(CoreProgressManager.java:396)
      9. com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcessWithProgressSynchronously(ProgressManagerImpl.java:76)
      10. com.intellij.openapi.progress.impl.CoreProgressManager.run(CoreProgressManager.java:312)
      10 frames
    13. JetBrains mps
      PluginLoaderRegistry.update
      1. jetbrains.mps.plugins.PluginLoaderRegistry.runTask(PluginLoaderRegistry.java:180)
      2. jetbrains.mps.plugins.PluginLoaderRegistry.update(PluginLoaderRegistry.java:268)
      2 frames
    14. IDEA
      LaterInvocator$FlushQueue.run
      1. com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:291)
      2. com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:326)
      3. com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:310)
      3 frames
    15. Java RT
      EventQueue.dispatchEvent
      1. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      2. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
      3. java.awt.EventQueue.access$500(EventQueue.java:97)
      4. java.awt.EventQueue$3.run(EventQueue.java:709)
      5. java.awt.EventQueue$3.run(EventQueue.java:703)
      6. java.security.AccessController.doPrivileged(Native Method)
      7. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      8. java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
      8 frames
    16. IDEA
      IdeEventQueue.dispatchEvent
      1. com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:863)
      2. com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:699)
      3. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385)
      3 frames
    17. Java RT
      EventDispatchThread.run
      1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      3. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      4. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      5. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      6. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      6 frames