Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassCastException when an unexpected pom file is found. #561

Closed
turkeylurkey opened this issue Nov 3, 2023 · 0 comments · Fixed by #562
Closed

ClassCastException when an unexpected pom file is found. #561

turkeylurkey opened this issue Nov 3, 2023 · 0 comments · Fixed by #562
Assignees
Labels
bug Something isn't working should-fix

Comments

@turkeylurkey
Copy link
Member

In my project there was a directory called "bin" that contained copies of files found elsewhere in the project. This included pom.xml files which the plugin detected as Liberty projects. When I clicked on the Liberty dashboard that pom was opened in the editor and this exception occurred.

java.lang.ClassCastException: class javax.swing.tree.DefaultMutableTreeNode cannot be cast to class io.openliberty.tools.intellij.LibertyModuleNode (javax.swing.tree.DefaultMutableTreeNode is in module java.desktop of loader 'bootstrap'; io.openliberty.tools.intellij.LibertyModuleNode is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @49807128)
        at io.openliberty.tools.intellij.LibertyExplorer$LibertyTreeRenderer.getTreeCellRendererComponent(LibertyExplorer.java:317)
        at java.desktop/javax.swing.JTree$AccessibleJTree$AccessibleJTreeNode.getCurrentComponent(JTree.java:4828)
        at java.desktop/javax.swing.JTree$AccessibleJTree$AccessibleJTreeNode.getCurrentAccessibleContext(JTree.java:4805)
        at java.desktop/javax.swing.JTree$AccessibleJTree$AccessibleJTreeNode.getAccessibleRole(JTree.java:4914)
        at java.desktop/sun.lwawt.macosx.CAccessible$AXChangeNotifier.propertyChange(CAccessible.java:163)
        at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
        at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
        at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
        at java.desktop/javax.accessibility.AccessibleContext.firePropertyChange(AccessibleContext.java:790)
        at java.desktop/javax.swing.JTree$AccessibleJTree.fireActiveDescendantPropertyChange(JTree.java:4439)
        at java.desktop/javax.swing.JTree.setLeadSelectionPath(JTree.java:1749)
        at java.desktop/javax.swing.plaf.basic.BasicTreeUI.setLeadSelectionPath(BasicTreeUI.java:2813)
        at java.desktop/javax.swing.plaf.basic.BasicTreeUI.setLeadSelectionPath(BasicTreeUI.java:2804)
        at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.valueChanged(BasicTreeUI.java:4251)
        at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:650)
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working should-fix
Projects
Status: 23.0.12
2 participants