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.
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.
Created attachment 13316 [details] log file
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.
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.
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.
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.
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?
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.
Created attachment 13383 [details] Test case
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.
So, it seems it is not a problem of NetBeans IDE. I am closing this issue as INVALID. Please, verify. Thanks.
Adding relnote keyword - if having the wrong video driver can reboot your machine, we probably should mention that.
closing...old invalid bug