java.lang.ClassCastException: org.openide.filesystems.Repository$MainFS cannot be cast to org.netbeans.core.startup.layers.SystemFileSystem

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 5a9630de-3742-43ec-a527-e3c8659e46de, 1 year ago
org.openide.filesystems.Repository$MainFS cannot be cast to org.netbeans.core.startup.layers.SystemFileSystem
via Stack Overflow by Eliel Avelar
, 2 years ago
org.openide.filesystems.Repository$MainFS cannot be cast to org.netbeans.core.startup.layers.SystemFileSystem
java.lang.ClassCastException: org.openide.filesystems.Repository$MainFS cannot be cast to org.netbeans.core.startup.layers.SystemFileSystem
at org.netbeans.core.startup.layers.ModuleLayeredFileSystem.getUserModuleLayer(ModuleLayeredFileSystem.java:219)
at org.netbeans.core.startup.NbInstaller.loadLayers(NbInstaller.java:580)
at org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:356)
at org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:105)
at org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:346)
at org.openide.filesystems.FileUtil$2.run(FileUtil.java:431)
at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127)
at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:609)
at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:415)
at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:435)
at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:343)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1188)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1011)
at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340)
at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276)
at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:301)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:181)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:150)
at org.netbeans.core.startup.Main.start(Main.java:307)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.