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 843797, 1 year ago
via GitHub by ElForastero
, 9 months ago
No such child: 1
via GitHub by elpaso
, 2 years ago
via Stack Overflow by Tadej Gašparovič
, 1 year ago
via YouTrack by Unknown author, 2 years ago
java.lang.ArrayIndexOutOfBoundsException: No such child: 0	at java.awt.Container.getComponent(Container.java:237)	at javax.swing.plaf.basic.CenterLayout.preferredLayoutSize(CenterLayout.java:25)	at java.awt.Container.preferredSize(Container.java:1175)	at java.awt.Container.getPreferredSize(Container.java:1159)	at javax.swing.JComponent.getPreferredSize(JComponent.java:1274)	at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:574)	at java.awt.Container.preferredSize(Container.java:1175)	at java.awt.Container.getPreferredSize(Container.java:1159)	at javax.swing.JComponent.getPreferredSize(JComponent.java:1274)	at java.awt.BorderLayout.layoutContainer(BorderLayout.java:660)	at java.awt.Container.layout(Container.java:1017)	at java.awt.Container.doLayout(Container.java:1007)	at java.awt.Container.validateTree(Container.java:1089)	at java.awt.Container.validateTree(Container.java:1096)	at java.awt.Container.validateTree(Container.java:1096)	at java.awt.Container.validateTree(Container.java:1096)	at java.awt.Container.validate(Container.java:1064)	at java.awt.Dialog.conditionalShow(Dialog.java:456)	at java.awt.Dialog.show(Dialog.java:523)	at java.awt.Component.show(Component.java:1134)	at java.awt.Component.setVisible(Component.java:1089)	at tarish2.MyColorChooserDialog.showDialog(MyColorChooserDialog.java:122)	at tarish2.GValueDialog.actionPerformed(GValueDialog.java:209)	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)	at java.awt.Component.processMouseEvent(Component.java:5093)	at java.awt.Component.processEvent(Component.java:4890)	at java.awt.Container.processEvent(Container.java:1566)	at java.awt.Component.dispatchEventImpl(Component.java:3598)	at java.awt.Container.dispatchEventImpl(Container.java:1623)	at java.awt.Component.dispatchEvent(Component.java:3439)	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)	at java.awt.Container.dispatchEventImpl(Container.java:1609)	at java.awt.Window.dispatchEventImpl(Window.java:1585)	at java.awt.Component.dispatchEvent(Component.java:3439)	at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:140)	at java.awt.Dialog.show(Dialog.java:538)	at tarish2.GValueDialog.showDialog(GValueDialog.java:245)	at tarish2.GraphBarPanel.actionPerformed(GraphBarPanel.java:483)	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)	at java.awt.Component.processMouseEvent(Component.java:5093)	at java.awt.Component.processEvent(Component.java:4890)	at java.awt.Container.processEvent(Container.java:1566)	at java.awt.Component.dispatchEventImpl(Component.java:3598)	at java.awt.Container.dispatchEventImpl(Container.java:1623)	at java.awt.Component.dispatchEvent(Component.java:3439)	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)	at java.awt.Container.dispatchEventImpl(Container.java:1609)	at java.awt.Window.dispatchEventImpl(Window.java:1585)	at java.awt.Component.dispatchEvent(Component.java:3439)	at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:140)	at java.awt.Dialog.show(Dialog.java:538)	at tarish2.GraphDialog.showDialog(GraphDialog.java:271)	at tarish2.CustomNodeDialog.actionPerformed(CustomNodeDialog.java:505)	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)	at java.awt.Component.processMouseEvent(Component.java:5093)	at java.awt.Component.processEvent(Component.java:4890)	at java.awt.Container.processEvent(Container.java:1566)	at java.awt.Component.dispatchEventImpl(Component.java:3598)	at java.awt.Container.dispatchEventImpl(Container.java:1623)	at java.awt.Component.dispatchEvent(Component.java:3439)	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)	at java.awt.Container.dispatchEventImpl(Container.java:1609)	at java.awt.Window.dispatchEventImpl(Window.java:1585)	at java.awt.Component.dispatchEvent(Component.java:3439)	at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:140)	at java.awt.Dialog.show(Dialog.java:538)	at java.awt.Component.show(Component.java:1134)	at java.awt.Component.setVisible(Component.java:1089)	at tarish2.Tarish2Applet$ModifyAction.actionPerformed(Tarish2Applet.java:1327)	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)	at javax.swing.AbstractButton.doClick(AbstractButton.java:289)	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109)	at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:227)	at java.awt.Component.processMouseEvent(Component.java:5093)	at java.awt.Component.processEvent(Component.java:4890)	at java.awt.Container.processEvent(Container.java:1566)	at java.awt.Component.dispatchEventImpl(Component.java:3598)	at java.awt.Container.dispatchEventImpl(Container.java:1623)	at java.awt.Component.dispatchEvent(Component.java:3439)	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)	at java.awt.Container.dispatchEventImpl(Container.java:1609)	at java.awt.Window.dispatchEventImpl(Window.java:1585)	at java.awt.Component.dispatchEvent(Component.java:3439)	at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)	at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)