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 39766 - Menu scroll after running JUnit test causes system reboot
Summary: Menu scroll after running JUnit test causes system reboot
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: junit-issues@java
Keywords: RELNOTE
Depends on:
Reported: 2004-02-08 19:50 UTC by rdw
Modified: 2004-09-13 14:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

log file (30.49 KB, text/plain)
2004-02-08 19:51 UTC, rdw
Test case (4.16 KB, text/plain)
2004-02-12 00:34 UTC, rdw

Note You need to log in before you can comment on or make changes to this bug.
Description rdw 2004-02-08 19:50:54 UTC
I am working on a small Java project for class
using NetBeans, JUnit, and Ant.  After running an
Ant scripted JUnit test (and exiting the JUnit
window), scrolling the menu in the upper left of
the source editor window will cause an instant
system reboot.  This reboots happens every time
this sequence is followed.

Using Ant for mere compiling does not cause this,
only when JUnit is run.  Also, the reboot does not
occur unless the JUnit window has been exited.

I am using JUnit 3.8.1 on WinXP Pro with all
updates and Java 1.4.2_03.  This behavior occurs
with NB 3.5.1 and NB 3.6Beta.
Comment 1 rdw 2004-02-08 19:51:57 UTC
Created attachment 13316 [details]
log file
Comment 2 Marian Mirilovic 2004-02-09 08:52:39 UTC
What do you think by "system reboot" - Is your PC rebooted?

If so, it isn't bug of NetBeans , but it is JVM bug :( , if so : Have
you got some error log?

If problem occured only if Junit is opened - I will reassigne issue to
junit for evaluation.
Comment 3 rdw 2004-02-09 21:22:19 UTC
Yes the PC is instantly rebooted.  It happens only after running a
JUnit test.  I have looked at the Windows logs and haven't seen
anything related to this.  Is there anywhere else the error logs may be?

From your message it seems it is a JVM bug rather than NetBeans.  I
will bring this issue to Sun's attention.
Comment 4 Jiri Skrivanek 2004-02-10 07:27:04 UTC
Thanks. But anyway, I would try to repeat it, but I am not sure of
steps you described in the first comment. Please, could you be more
specific? I mean something like step-by-step scenario to be followed.
Comment 5 rdw 2004-02-10 16:39:05 UTC
1.  Mount a file with tests and a class to be tested.  The class file
has to have enough in it to make the class explorer menu scrollable. 
(By class explorer, I mean the menu in the upper left of the source
editor area that lists everything in the class.  I didn't see a
specific name for it anywhere.)
2.  Run the tests (I do it via an Ant script if it matters), making
the JUnit window pop up.  Click "exit" to close the JUnit window.
3.  Click on the class explorer menu to open it.
4.  Use the mouse to scroll up or down.  <- This is when the PC reboots.
It has rebooted when trying to scroll some other things such as
horizontal scroll in the filesystem area, but this one always does it.
Comment 6 Jiri Skrivanek 2004-02-11 07:30:20 UTC
Still not sure of step 2. Maybe it seems obvious for you but not for
me. How do you run the tests? Inside IDE or outside? Could you attach
a snippet of your Ant script?
Comment 7 rdw 2004-02-12 00:32:46 UTC
I have included a zip file with a simple script, test, and class that
produce the reboot.

Step 2: From within the IDE, double click the "utest" in the script to
run the test.
Comment 8 rdw 2004-02-12 00:34:11 UTC
Created attachment 13383 [details]
Test case
Comment 9 rdw 2004-02-12 01:57:34 UTC
Hallelujah!  On a hunch, I dropped back to an older driver version on
my video card.  Went from ATI Catalyst 4.1 back to 3.10 and the
problem has disappeared.  This is on an ATI Radeon 9500 Pro.
Comment 10 Jiri Skrivanek 2004-02-12 06:46:01 UTC
So, it seems it is not a problem of NetBeans IDE. I am closing this
issue as INVALID. Please, verify. Thanks.
Comment 11 _ tboudreau 2004-06-10 17:13:39 UTC
Adding relnote keyword - if having the wrong video driver can reboot your machine, we 
probably should mention that.
Comment 12 dmladek 2004-09-13 14:46:45 UTC
closing...old invalid bug