java.lang.ClassCastException

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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via GitHub by bkolb
    ,
  • Stack trace

    • java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Set at de.itemis.mps.nativelibs.plugin.NativeLibraryLoader.addDependencyClassLoader(NativeLibraryLoader.java:155) at de.itemis.mps.nativelibs.plugin.NativeLibraryLoader.loadLibraries(NativeLibraryLoader.java:138) at de.itemis.mps.nativelibs.plugin.NativeLibraryLoader$1.afterClassesLoaded(NativeLibraryLoader.java:55) at jetbrains.mps.classloading.MPSClassesListener.onLoaded(MPSClassesListener.java:67) at jetbrains.mps.classloading.ClassLoadingBroadCaster.onLoad(ClassLoadingBroadCaster.java:125) at jetbrains.mps.classloading.ClassLoaderManager.preLoadModules(ClassLoaderManager.java:345) at jetbrains.mps.classloading.ModuleEventsHandler.addModules(ModuleEventsHandler.java:88) at jetbrains.mps.classloading.ModuleEventsHandler.eventsHappened(ModuleEventsHandler.java:116) at jetbrains.mps.classloading.ModuleEventsDispatcher.fireModuleEvents(ModuleEventsDispatcher.java:121) at jetbrains.mps.classloading.ModuleEventsDispatcher.actionFinished(ModuleEventsDispatcher.java:90) at jetbrains.mps.smodel.WriteActionDispatcher.onActionFinished(WriteActionDispatcher.java:61) at jetbrains.mps.smodel.WriteActionDispatcher.run(WriteActionDispatcher.java:43) at jetbrains.mps.smodel.WorkbenchModelAccess$3.run(WorkbenchModelAccess.java:136) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:905) at jetbrains.mps.smodel.WorkbenchModelAccess.runWriteAction(WorkbenchModelAccess.java:145) at jetbrains.mps.smodel.ModelAccessBase.runWriteAction(ModelAccessBase.java:63) at jetbrains.mps.library.LibraryInitializer.update(LibraryInitializer.java:126) at jetbrains.mps.library.LibraryInitializer.loadRefreshed(LibraryInitializer.java:90) at jetbrains.mps.library.BaseLibraryManager$1$1.run(BaseLibraryManager.java:62) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:905) at jetbrains.mps.library.BaseLibraryManager$1.run(BaseLibraryManager.java:59) at com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:291) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:326) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:310) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:863) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:699) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109) at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184) at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229) at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227) at java.security.AccessController.doPrivileged(Native Method) at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227) at java.awt.Dialog.show(Dialog.java:1084) at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:778) at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:455) at com.intellij.openapi.ui.DialogWrapper.invokeShow(DialogWrapper.java:1665) at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1607) at com.intellij.openapi.progress.util.ProgressDialog.show(ProgressDialog.java:317) at com.intellij.openapi.progress.util.ProgressWindow.showDialog(ProgressWindow.java:235) at com.intellij.openapi.progress.util.ProgressWindow$2.lambda$actionPerformed$330(ProgressWindow.java:180) at com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:291) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:326) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:310) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:863) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:699) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385) at com.intellij.ide.IdeEventQueue.pumpEventsForHierarchy(IdeEventQueue.java:950) at com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:207) at com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:194) at com.intellij.openapi.application.impl.ApplicationImpl.runProcessWithProgressSynchronously(ApplicationImpl.java:569) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcessWithProgressSynchronously(CoreProgressManager.java:396) at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcessWithProgressSynchronously(ProgressManagerImpl.java:76) at com.intellij.openapi.progress.impl.CoreProgressManager.run(CoreProgressManager.java:312) at com.intellij.openapi.progress.ProgressManager.run(ProgressManager.java:191) at com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:402) at com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:187) at jetbrains.mps.workbench.recent.RecentMPSProjectsManager.doOpenProject(RecentMPSProjectsManager.java:54) at com.intellij.ide.RecentProjectsManagerBase.doReopenLastProject(RecentProjectsManagerBase.java:602) at com.intellij.ide.RecentProjectsManagerBase$MyAppLifecycleListener.appStarting(RecentProjectsManagerBase.java:636) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:117) at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:377) at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:364) at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:343) at com.intellij.util.messages.impl.MessageBusImpl.access$200(MessageBusImpl.java:42) at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:226) at com.sun.proxy.$Proxy42.appStarting(Unknown Source) at com.intellij.idea.IdeaApplication$IdeStarter.lambda$main$1021(IdeaApplication.java:343) at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88) at com.intellij.openapi.application.TransactionGuardImpl.access$300(TransactionGuardImpl.java:40) at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:113) at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:123) at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:109) at com.intellij.idea.IdeaApplication$IdeStarter.main(IdeaApplication.java:341) at com.intellij.idea.IdeaApplication.lambda$run$1019(IdeaApplication.java:196) at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:199) at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:196) at com.intellij.idea.MainImpl$1.lambda$null$0(MainImpl.java:47) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:358) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.