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.
NB 4.1 not responding to Run Main Project or F6 for a java file that was working fine last week. I haven't even made any changes to it. It suddenly stopped working. In fact, this one shares also the same problem in the Navigator as reported in issue 69291.
Created attachment 27360 [details] messages.log file
Please attach full thread dump. Thanks.
Created attachment 27452 [details] Thread dump
I have no idea what might be wrong. I thought I see frozen MDR transaction in the thread dump, but I don't see any. Reassigning to maintainers of Run Main Project action.
See the related issue #69291. Neither java/project nor java/j2seproject is on the thread dump, the same hods for javacore. But it seems that requests to the javacore end with java.lang.StackOverflowError (the same hods for requests from navigator). To reporter: Can you try actions like compile project, compile single or clean if any of them works? Deleting the MDR caches may help you.
It is not obvious, that StackOverflowError is thrown from javacore. Anyway: is anybody able to reproduce this bug in latest 5.0? I'm not. It is probably duplicate of issue 64879.
It is not obvious but it is probable because of the issue #69291 where the same problem happens. I am not able to reproduce it in the NB 5.0. Definitelly not P1.
*** Issue 69291 has been marked as a duplicate of this issue. ***
I just tried Clean and Build Project. No effect. F9 (Compile File) works. F6 (Run File) does not work, not even in the floating menu when right-clicking directly in the editor. Alt+O (Goto Source) does not work. Other files (other than the one that prompted me to log issue 69291) all work fine. For some reason, only these two files are affected, and these two files are very similar in purpose and structure to the other files that do work.
Created attachment 27485 [details] messages.log file after having done the Clean and Build Project
Created attachment 27486 [details] Thread dump from the DOS console after having done the Clean and Build Project
When I said "no effect" in my previous comment, I meant that Clean and Build Project did appear to take place (from observing the Output panel at the bottom), but that the action did not have any effect on making the problems go away for the two files.
A few notes: -the difference between Compile File and Run File (BTW: the default shortcut for Run File is AFAIK Shift-F6) is that the Run File action needs to check if the file contains the main method or not (that means, the file needs to be parsed). -reporter, could you please try to run the IDE with "-J-Xint" command line option, try to invoke the Run File action and attach the resulting messages.log? Thanks.
Sorry. When I first ran with F6, I was really doing a "Run Project", not "Run File" as I had written. Per jlahoda's request, I edited the netbeans.conf file to include "-J-Xint" as one of the default options and started up NetBeans 4.1. All I did afterwards was go to the file in question already opened in the Java editor, and do a "Run File" from the Run menu (synonymous with Shift+F6) just once. The resulting messages.log file was 1.3 MB long. I broke it in two parts: messages3_part1.log and messages3_part2.log. I attach the files below.
Created attachment 27487 [details] First part of the messages.log file after doing a "Run File"
Created attachment 27488 [details] Second part of the messages.log file after doing a "Run File"
OK. StackOverflow comes from mdr module. Dan, please take a look at it. Thanks.
Frankioski, I belive the problem can be solved by deleting mdr storage in your userdir. It seems the storage is corrupted somehow. If deleted it will be automatically recreated on ide restart. It would be valuable if you could attach some specific storage files for further evaluation of the problem. All the files are located in subfolders of ${userdir}\var\cache\mdrstorage. Try to move this directory out of the userdir and restart netbeans to check whether it helped. As for the (corrupted) files, I am interested in those that are located in ${userdir}\var\cache\mdrstorage\org-netbeans-java\0.68 (note that, instead of 0.68, there could be another number as well, it is not important) and whose names ends with the name of directory your project resides in (in addition, this name is followed by "src"). There should be at least three such files, having extensions "btd", "btx" and "cdx". Furthermore, Main.btd and Main.btx are required too.
dprusa, Cleaning all the "btd", "btx" and "cdx" in the ${userdir}\var\cache\mdrstorage\org-netbeans-java\0.64 folder caused the IDE to freeze upon startup. Very flakey. I could only shut down the IDE using the Windows Task Manager. Doing it this way always causes the next startup to detect that another instance of NetBeans is running. Anyway, things look OK now after the second startup.
Created attachment 27565 [details] BTD file
Created attachment 27566 [details] BTX file
Created attachment 27567 [details] CDX file
Created attachment 27568 [details] Main.BTD
Created attachment 27569 [details] Main.BTX
Thanks for the attached storage files! As for the frozen netbeans upon startup, did you deleted the whole directory ${userdir}\var\cache\mdrstorage? It is not sufficient only to delete files in ${userdir}\var\cache\mdrstorage\org-netbeans-java\0.64. I probably did not express myself clearly... If the deletion of mdr storage and restart of netbeans (well, the second restart) solved the problem with Run Main Project I think this issue is not P1, since it was caused by corrupted storage, it is no longer reproducible and we have not received any other reports of this type -> decreasing priority to P3.
I think all of these issues are going to be closed, aren't they?
I am closing all reports in category Java/Unsupported as wontfix. These should be dead issues --- if the reported cases are against some live part of the NetBeans IDE please reopen and we can discuss to which category they belong.