java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Set

GitHub | bkolb | 8 months 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

    Class Cast Exception

    GitHub | 8 months ago | bkolb
    java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Set

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.util.ArrayList cannot be cast to java.util.Set

      at de.itemis.mps.nativelibs.plugin.NativeLibraryLoader.addDependencyClassLoader()
    2. de.itemis.mps
      NativeLibraryLoader$1.afterClassesLoaded
      1. de.itemis.mps.nativelibs.plugin.NativeLibraryLoader.addDependencyClassLoader(NativeLibraryLoader.java:155)
      2. de.itemis.mps.nativelibs.plugin.NativeLibraryLoader.loadLibraries(NativeLibraryLoader.java:138)
      3. de.itemis.mps.nativelibs.plugin.NativeLibraryLoader$1.afterClassesLoaded(NativeLibraryLoader.java:55)
      3 frames
    3. JetBrains mps
      WorkbenchModelAccess$3.run
      1. jetbrains.mps.classloading.MPSClassesListener.onLoaded(MPSClassesListener.java:67)
      2. jetbrains.mps.classloading.ClassLoadingBroadCaster.onLoad(ClassLoadingBroadCaster.java:125)
      3. jetbrains.mps.classloading.ClassLoaderManager.preLoadModules(ClassLoaderManager.java:345)
      4. jetbrains.mps.classloading.ModuleEventsHandler.addModules(ModuleEventsHandler.java:88)
      5. jetbrains.mps.classloading.ModuleEventsHandler.eventsHappened(ModuleEventsHandler.java:116)
      6. jetbrains.mps.classloading.ModuleEventsDispatcher.fireModuleEvents(ModuleEventsDispatcher.java:121)
      7. jetbrains.mps.classloading.ModuleEventsDispatcher.actionFinished(ModuleEventsDispatcher.java:90)
      8. jetbrains.mps.smodel.WriteActionDispatcher.onActionFinished(WriteActionDispatcher.java:61)
      9. jetbrains.mps.smodel.WriteActionDispatcher.run(WriteActionDispatcher.java:43)
      10. jetbrains.mps.smodel.WorkbenchModelAccess$3.run(WorkbenchModelAccess.java:136)
      10 frames
    4. IDEA
      ApplicationImpl.runWriteAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:905)
      1 frame
    5. JetBrains mps
      BaseLibraryManager$1$1.run
      1. jetbrains.mps.smodel.WorkbenchModelAccess.runWriteAction(WorkbenchModelAccess.java:145)
      2. jetbrains.mps.smodel.ModelAccessBase.runWriteAction(ModelAccessBase.java:63)
      3. jetbrains.mps.library.LibraryInitializer.update(LibraryInitializer.java:126)
      4. jetbrains.mps.library.LibraryInitializer.loadRefreshed(LibraryInitializer.java:90)
      5. jetbrains.mps.library.BaseLibraryManager$1$1.run(BaseLibraryManager.java:62)
      5 frames
    6. IDEA
      ApplicationImpl.runWriteAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:905)
      1 frame
    7. JetBrains mps
      BaseLibraryManager$1.run
      1. jetbrains.mps.library.BaseLibraryManager$1.run(BaseLibraryManager.java:59)
      1 frame
    8. 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
    9. 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
    10. 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
    11. Java RT
      Dialog.show
      1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      3. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
      4. java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
      5. java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
      6. java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)
      7. java.security.AccessController.doPrivileged(Native Method)
      8. java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
      9. java.awt.Dialog.show(Dialog.java:1084)
      9 frames
    12. IDEA
      LaterInvocator$FlushQueue.run
      1. com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:778)
      2. com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:455)
      3. com.intellij.openapi.ui.DialogWrapper.invokeShow(DialogWrapper.java:1665)
      4. com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1607)
      5. com.intellij.openapi.progress.util.ProgressDialog.show(ProgressDialog.java:317)
      6. com.intellij.openapi.progress.util.ProgressWindow.showDialog(ProgressWindow.java:235)
      7. com.intellij.openapi.progress.util.ProgressWindow$2.lambda$actionPerformed$330(ProgressWindow.java:180)
      8. com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:291)
      9. com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:326)
      10. com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:310)
      10 frames
    13. 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
    14. IDEA
      ProjectUtil.openProject
      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)
      11. com.intellij.openapi.progress.ProgressManager.run(ProgressManager.java:191)
      12. com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:402)
      13. com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:187)
      13 frames
    15. JetBrains mps
      RecentMPSProjectsManager.doOpenProject
      1. jetbrains.mps.workbench.recent.RecentMPSProjectsManager.doOpenProject(RecentMPSProjectsManager.java:54)
      1 frame
    16. IDEA
      RecentProjectsManagerBase$MyAppLifecycleListener.appStarting
      1. com.intellij.ide.RecentProjectsManagerBase.doReopenLastProject(RecentProjectsManagerBase.java:602)
      2. com.intellij.ide.RecentProjectsManagerBase$MyAppLifecycleListener.appStarting(RecentProjectsManagerBase.java:636)
      2 frames
    17. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    18. Openapi
      MessageBusImpl$2.invoke
      1. com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:117)
      2. com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:377)
      3. com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:364)
      4. com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:343)
      5. com.intellij.util.messages.impl.MessageBusImpl.access$200(MessageBusImpl.java:42)
      6. com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:226)
      6 frames
    19. com.sun.proxy
      $Proxy42.appStarting
      1. com.sun.proxy.$Proxy42.appStarting(Unknown Source)
      1 frame
    20. IDEA
      MainImpl$1.lambda$null$0
      1. com.intellij.idea.IdeaApplication$IdeStarter.lambda$main$1021(IdeaApplication.java:343)
      2. com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)
      3. com.intellij.openapi.application.TransactionGuardImpl.access$300(TransactionGuardImpl.java:40)
      4. com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:113)
      5. com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:123)
      6. com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:109)
      7. com.intellij.idea.IdeaApplication$IdeStarter.main(IdeaApplication.java:341)
      8. com.intellij.idea.IdeaApplication.lambda$run$1019(IdeaApplication.java:196)
      9. com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:199)
      10. com.intellij.idea.IdeaApplication.run(IdeaApplication.java:196)
      11. com.intellij.idea.MainImpl$1.lambda$null$0(MainImpl.java:47)
      11 frames
    21. 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
    22. IDEA
      IdeEventQueue.dispatchEvent
      1. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:358)
      1 frame
    23. 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