IgnitionDesigner cannot be cast to javax.swing.JComponent

When I am in the designer using preview mode and click a component in the project browser I receive the following error message. all components will cause the error except the window and the root container.

[code]java.lang.ClassCastException: com.inductiveautomation.ignition.designer.IgnitionDesigner cannot be cast to javax.swing.JComponent
at com.inductiveautomation.factorypmi.application.components.util.FPMILayout.getOffsettingParent(FPMILayout.java:577)
at com.inductiveautomation.factorypmi.designer.workspace.WindowWorkspace$Delegate.getOffsettingParent(WindowWorkspace.java:2720)
at com.inductiveautomation.factorypmi.designer.workspace.WindowWorkspace$Delegate.convertRectSpecial(WindowWorkspace.java:2673)
at com.inductiveautomation.factorypmi.designer.workspace.WindowWorkspace$Delegate.getBounds(WindowWorkspace.java:2653)
at com.inductiveautomation.ignition.designer.designable.tools.SelectionTool.getStatusBarText(SelectionTool.java:393)
at com.inductiveautomation.ignition.designer.designable.AbstractDesignableWorkspace.updateStatusBarText(AbstractDesignableWorkspace.java:157)
at com.inductiveautomation.ignition.designer.designable.AbstractDesignableWorkspace$3.itemSelectionChanged(AbstractDesignableWorkspace.java:134)
at com.inductiveautomation.ignition.designer.designable.AbstractDesignableWorkspace.fireSelectedItemsChanged(AbstractDesignableWorkspace.java:261)
at com.inductiveautomation.ignition.designer.designable.AbstractDesignableWorkspace.setSelectedItems(AbstractDesignableWorkspace.java:244)
at com.inductiveautomation.factorypmi.designer.model.navtree.AbstractTopLevelContainerNode.onChildrenSelected(AbstractTopLevelContainerNode.java:275)
at com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode.dispatchSelectionEvent(AbstractNavTreeNode.java:624)
at com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode.dispatchSelectionEvent(AbstractNavTreeNode.java:620)
at com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode.dispatchSelectionEvent(AbstractNavTreeNode.java:620)
at com.inductiveautomation.ignition.designer.navtree.NavTreePanel$SelectionListener.valueChanged(NavTreePanel.java:437)
at javax.swing.JTree.fireValueChanged(Unknown Source)
at javax.swing.JTree$TreeSelectionRedirector.valueChanged(Unknown Source)
at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(Unknown Source)
at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(Unknown Source)
at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(Unknown Source)
at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(Unknown Source)
at javax.swing.JTree.setSelectionPath(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressedDND(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(Unknown Source)
at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at com.jidesoft.docking.b.a(Unknown Source)
at com.jidesoft.docking.DefaultDockingManager.handleEvent(Unknown Source)
at com.jidesoft.docking.DefaultDockingManager$49.eventDispatched(Unknown Source)
at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Unknown Source)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Unknown Source)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Unknown Source)
at java.awt.Toolkit.notifyAWTEventListeners(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.SequencedEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Ignition v7.5.2 (b1146)
Java: Sun Microsystems Inc. 1.6.0_33
[/code]

Confirmed here as well.

Ignition v7.5.2 (b1146)
Java: Sun Microsystems Inc. 1.6.0_26
Ubuntu 12.04 64-bit

This problem was fixed in 7.5.3. Upgrading will solve the problem.

Same thing for me, but I'm getting this in 7.5.4

[code]ClassCastException: com.inductiveautomation.ignition.designer.IgnitionDesigner cannot be cast to javax.swing.JComponent

Ignition v7.5.4 (b1206)
Java: Sun Microsystems Inc. 1.6.0_30[/code]

This is working fine for us with 7.5.4.

Ignition v7.5.4 (b1206)
Java: OpenJDK 1.7.0_9
Ubuntu 12.10 64-bit

Just found this thread and wanted to let you know that i see the same on 7.5.5-beta 5 on windows. It happens on a system using Java 1.6.37. On another machine running Java 1.7.9 i don’t get an exception but selecting a component in the nav tree does nothing while in preview mode.

Yeah, I can confirm that this exception is being thrown in the latest version of Ignition. I’ll put in a bug ticket for this issue.

Oops - this post slipped my net. This was fixed (for real this time) in 7.5.6.