This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 106746 - netbeans 6.0 crash with junit 4 testing
Summary: netbeans 6.0 crash with junit 4 testing
Status: RESOLVED DUPLICATE of bug 75955
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-15 06:41 UTC by dbcurtis
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
file I was told to attach (59.39 KB, application/octet-stream)
2007-06-15 06:46 UTC, dbcurtis
Details
attach log file (273.66 KB, application/octet-stream)
2007-06-16 04:21 UTC, dbcurtis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dbcurtis 2007-06-15 06:41:03 UTC
unit testing single module, Junit 4, netbeans6.0 M9, select module, run debugging test.


A java.lang.ArrayIndexOutOfBoundsException exception has occurred.
Please report this at http://www.netbeans.org/community/issues.html,
including a copy of your messages.log file as an attachment.
The messages.log file is located in your C:\Documents and Settings\...\.netbeans\6.0m9\var\log folder.
Comment 1 dbcurtis 2007-06-15 06:46:17 UTC
Created attachment 43763 [details]
file I was told to attach
Comment 2 Jiri Prox 2007-06-15 08:03:06 UTC
I cannot find mentioned exception in the attached log. Are you sure you've posted the right file?
Comment 3 dbcurtis 2007-06-16 04:13:26 UTC
more details....
test a single class using standard run debug test option.
abort the test (press red X after a breakpoint)... all looks ok at this point
attempt to rerun the test.  red stop icon shows up in netbeans lower right corner.
The variable window at this point is not displayed.

Need to restart netbeans to continue.
pressing the red stop icon provides....

exception window
A java.lang.ArrayIndexOutOfBoundsException exception has occurred.
Please report this at http://www.netbeans.org/community/issues.html,
including a copy of your messages.log file as an attachment.
The messages.log file is located in your C:\Documents and Settings\...\.netbeans\6.0m9\var\log folder.

The attachment is the above log file after a single press on the red stop icon, (causing the above error), and a
attempting a submission.
Comment 4 dbcurtis 2007-06-16 04:21:46 UTC
Created attachment 43833 [details]
attach log file
Comment 5 dbcurtis 2007-06-16 04:23:20 UTC
The details from the error window was:
java.lang.ArrayIndexOutOfBoundsException: 1
	at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.padSelectedTab(BasicTabbedPaneUI.java:2820)
	at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateTabRects(BasicTabbedPaneUI.java:2691)
	at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateLayoutInfo(BasicTabbedPaneUI.java:2484)
	at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.layoutContainer(BasicTabbedPaneUI.java:2383)
	at java.awt.Container.layout(Container.java:1419)
	at java.awt.Container.doLayout(Container.java:1408)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validate(Container.java:1466)
	at javax.swing.plaf.basic.BasicTabbedPaneUI.ensureCurrentLayout(BasicTabbedPaneUI.java:1421)
	at javax.swing.plaf.basic.BasicTabbedPaneUI.getTabBounds(BasicTabbedPaneUI.java:1441)
	at javax.swing.JTabbedPane.getBoundsAt(JTabbedPane.java:1266)
	at org.openide.awt.CloseButtonTabbedPane.findTabForCoordinate(CloseButtonTabbedPane.java:337)
	at org.openide.awt.CloseButtonTabbedPane$CloseButtonListener.eventDispatched(CloseButtonTabbedPane.java:400)
	at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2360)
	at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2252)
	at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
	at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
	at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
	at java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:2210)
	at java.awt.Component.dispatchEventImpl(Component.java:4305)
	at java.awt.Container.dispatchEventImpl(Container.java:2042)
	at java.awt.Component.dispatchEvent(Component.java:4237)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4248)
	at java.awt.LightweightDispatcher.trackMouseEnterExit(Container.java:4037)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3894)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3842)
	at java.awt.Container.dispatchEventImpl(Container.java:2028)
	at java.awt.Window.dispatchEventImpl(Window.java:2405)
	at java.awt.Component.dispatchEvent(Component.java:4237)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:600)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 6 dbcurtis 2007-06-16 04:52:37 UTC
I can, however, apply code changes and continue working.
Problem appears to be only when the exit happens and attempt to debug again.
Comment 7 Jiri Prox 2007-06-18 13:29:11 UTC
Thanks for additional info. From the stacktrace I can see that you're facing JDK bug. Please update your JDK. For more
info see issue 75955.

*** This issue has been marked as a duplicate of 75955 ***