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 202614

Summary: Form Files Sometimes Show in Projects Window
Product: platform Reporter: MackSix
Component: Data SystemsAssignee: Jaroslav Havlin <jhavlin>
Status: REOPENED ---    
Severity: normal CC: anebuzelsky, javydreamercsw, jbecicka, jmborer, MackSix, mienamoo, mmirilovic, musilt2, pquiring, rov63rus, tpavek
Priority: P3 Keywords: RANDOM
Version: 7.1   
Hardware: PC   
OS: Windows Vista   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 208589    
Bug Blocks:    
Attachments: Form files showing in Projects Window.
Log File
New screenshot of bug.
Log File
Screenshot of problem.
Screenshot
log file
Screenshot
Project to use for reproduction.
2nd Project to use for reproduction.
log file, thread dump, 3 projects, jtattoo.jar library for GrumpyCatProject
Screenshot - form files showing & one java file has wrong icon
Logfile - form files showing & one java file has wrong icon
Screenshot, log file, thread dump
Java SE Deactivated But Java SE Works And Form Files Show
messages.log (NetBeans 8.0.1)

Description MackSix 2011-09-24 20:04:16 UTC
Created attachment 111143 [details]
Form files showing in Projects Window.

Several times I have noticed that form files will show when expanding a package node in the Projects Window. 

Restarting NetBeans causes them to not show any longer.

I have not been able to determine the steps to reproduce it, but I have never seen it happen in a package that is already expanded when NetBeans starts. 

See screenshot.

Product Version: NetBeans IDE Dev (Build 201109240601)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 1 Jaroslav Tulach 2011-10-14 20:22:24 UTC
Is not this only temporary? E.g. the .form files should disappear after a while.

If not, run with -J-Dorg.openide.loaders.FolderChildren.level=FINE and provide logs when the error happens again.
Comment 2 MackSix 2011-11-22 01:00:07 UTC
Created attachment 113390 [details]
Log File

Log file when error happened.
Comment 3 MackSix 2011-11-22 01:01:32 UTC
Created attachment 113391 [details]
New screenshot of bug.
Comment 4 MackSix 2011-11-22 01:06:14 UTC
1) Create a java project with some form files.
2) Create a project with a Master/Detail form per instructions here: http://wiki.netbeans.org/TS_68_FormAndSupportSanity#Test_suite:_Database_connection
3) Open up project node in project from step #1 and see if form files are showing. If not goto step #4
4) Delete project with Master/Detail form.
5) Create another java project with some form files.
6) Do step #2 and then check files in packages of the 2 java projects and see if the form files are showing.

See attached log and new screenshot of error.

Product Version: NetBeans IDE 7.1 RC1 (Build 201111171527)
Java: 1.7.0_01; Java HotSpot(TM) Client VM 21.1-b02
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 5 MackSix 2011-11-22 01:09:18 UTC
I used -J-Dorg.openide.loaders.FolderChildren.level=FINE when this happened, so the log file reflects this setting.
Comment 6 Tomas Danek 2011-11-25 14:22:36 UTC
this deserves attention for at least p3 level.
Comment 7 Jaroslav Tulach 2011-12-05 12:18:08 UTC
OK, what file has remained visible .form? Package, file name.
Comment 8 Jaroslav Tulach 2011-12-07 18:02:14 UTC
The log is good, but there seems to be many .form files. I need to know which of them was broken.
Comment 9 MackSix 2011-12-07 18:14:38 UTC
My screenshot attachment show the form files that showed. It is what goes along with the log file attachment.
Comment 10 MackSix 2011-12-07 18:16:41 UTC
Here they are:

NewMaterDetailForm.form
NewJFrame.form
NewJPanel.form
Comment 11 Jaroslav Tulach 2011-12-25 15:31:13 UTC
The log seems to indicate everything is OK on the FolderChildren side. Probably something is wrong with nodes. Please reproduce again also with 

-J-Dorg.openide.nodes.level=FINE

Thanks.
Comment 12 Jesse Glick 2012-01-12 16:40:19 UTC
*** Bug 202698 has been marked as a duplicate of this bug. ***
Comment 13 Jesse Glick 2012-01-12 16:40:32 UTC
*** Bug 207220 has been marked as a duplicate of this bug. ***
Comment 14 MackSix 2012-02-05 20:45:07 UTC
Used: -J-Dorg.openide.loaders.FolderChildren.level=FINE and -J-Dorg.openide.nodes.level=FINE

form files open: NewJFrame.form and NewJPanel.form


See attached log file.

See attached screenshot.


Product Version: NetBeans IDE 7.1 (Build 201112071828)
Java: 1.7.0_01; Java HotSpot(TM) Client VM 21.1-b02
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 15 MackSix 2012-02-05 20:46:34 UTC
Created attachment 115479 [details]
Log File

Log File from February 05 2012
Comment 16 MackSix 2012-02-05 20:47:31 UTC
Created attachment 115480 [details]
Screenshot of problem.

New Screenshot form February 05 2012
Comment 17 Jaroslav Tulach 2012-05-18 09:48:25 UTC
I would hope this problem gets fixed due to changes made for bug  208589.
Comment 18 MackSix 2012-06-02 16:16:37 UTC
(In reply to comment #17)
> I would hope this problem gets fixed due to changes made for bug  208589.

I had Dev 201206010001 running on my computer with a simple project open. The computer was in standby all night and I woke it up this morning and was browsing the Internet for a few hours and then I looked at NetBeans and the project that was open is now showing the form file. I will set the switches in the config and see if I can catch it again. 

See new screenshot.


Product Version: NetBeans IDE Dev (Build 201206010001)
Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
User directory: C:\Users\Mark\AppData\Roaming\NetBeans\dev20120601
Cache directory: C:\Users\Mark\AppData\Local\NetBeans\Cache\dev20120601
Comment 19 MackSix 2012-06-02 16:18:04 UTC
Created attachment 120240 [details]
Screenshot
Comment 20 MackSix 2012-06-11 22:24:45 UTC
Created attachment 120707 [details]
log file

Caught form files showing in project with -J-Dorg.openide.loaders.FolderChildren.level=FINE and -J-Dorg.openide.nodes.level=FINE

Product Version: NetBeans IDE Dev (Build 201206110001)
Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)


Form files showing are:

MainView.form
OpenFileView.form
SaveFileView.form

See attached messages.log and screenshot.
Comment 21 MackSix 2012-06-11 22:25:27 UTC
Created attachment 120709 [details]
Screenshot
Comment 22 MackSix 2012-06-12 00:15:34 UTC
I can repeat this using these steps:

Use Netbeans IDE with C/C++ module and Qt SDK installed and MinGW toolkit from Qt SDK installed. Use make from MinGW MYSYS "\MinGW\msys\1.0\bin\make.exe"

1) Delete all files in Netbeans cache directory.
2) Run Netbeans.
3) Open attached project in Illuminator_1.zip and wait for scanning to finish.
4) Open up Illuminator_1 tree in Project window and view source files. Observe no files with "form" extension are showing. Close tree in reverse order, but leave project open.
5) Open attached project in Qt_Application_1.zip and wait for scanning and initializing toolkit to finish.
6) Clean and Build Qt_Application_1 and wait until it finishes.
7) Run Qt_Application_1 from Project context menu and then click OK button on dialog box to close it.
8) Open up Illuminator_1 tree to view source files again.

The files with "form" extension are now showing.

Product Version: NetBeans IDE Dev (Build 201206110001)
Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 23 MackSix 2012-06-12 00:16:36 UTC
Created attachment 120711 [details]
Project to use for reproduction.
Comment 24 MackSix 2012-06-12 00:17:18 UTC
Created attachment 120712 [details]
2nd Project to use for reproduction.
Comment 25 Jaroslav Tulach 2012-09-07 19:27:46 UTC
*** Bug 217849 has been marked as a duplicate of this bug. ***
Comment 26 Tomas Pavek 2012-10-02 10:01:29 UTC
*** Bug 219161 has been marked as a duplicate of this bug. ***
Comment 27 Jaroslav Tulach 2012-11-06 08:29:18 UTC
Reproduced. Thanks for the testcase with sample projects.
Comment 28 Jaroslav Tulach 2012-11-06 08:45:13 UTC
Too much excitement. I've seen it once, but not since then. If anyone can reproduce it might be interesting to see the thread dump.
Comment 29 Marian Mirilovic 2012-11-06 10:31:59 UTC
(In reply to comment #28)
> Too much excitement. I've seen it once, but not since then. If anyone can
> reproduce it might be interesting to see the thread dump.

P3 -> P2 -> P4 ???
Comment 30 Jaroslav Tulach 2012-11-06 11:29:42 UTC
P2 would be appropriate if there was a reproducible testcase.
Comment 31 Jaroslav Tulach 2012-11-09 17:07:00 UTC
Can anyone try to produce the log files with 

-J-Dorg.openide.loaders.FolderChildren.level=FINE

while reproducing the case? Btw. most recent changes to address bug 221279#c14 may schedule additional refresh of not disappeared nodes or at least provide more detailed logging.
Comment 32 MackSix 2013-09-15 01:57:44 UTC
(In reply to Jaroslav Tulach from comment #31)
> Can anyone try to produce the log files with 
> 
> -J-Dorg.openide.loaders.FolderChildren.level=FINE
> 
> while reproducing the case? Btw. most recent changes to address bug
> 221279#c14 may schedule additional refresh of not disappeared nodes or at
> least provide more detailed logging.

It happens all the time. I have it happen after renaming a project. I just had it happen on 7.4 RC1 after NetBeans run for a long time with a small project open. It shows the form files and it shows a broken icon on a Java file.

I have log files with -J-Dorg.openide.loaders.FolderChildren.level=FINE and heap dumps.

Do you wan them?
Comment 33 MackSix 2013-09-15 02:24:45 UTC
(In reply to Jaroslav Tulach from comment #30)
> P2 would be appropriate if there was a reproducible testcase.


1. Renaming a project with other project open and nodes all collapsed. Open up other program and from files shows.

2. I had installed NetBeans 7.4 RC1 with EXE installer and uninstalled it. It left the userdir and cachedir in my user account because I run as Admin. I installed the zip installation and it used those directories and caused a projects form files to show. This time it persisted whenever I restarted NetBeans. And the icnos for the files showd as a blank white file icon and javascript file icon instead of the file with question mark. I have not tried to reproduce this yet, but I have logfile, screeshots, heapdump and I zipped up the Username and Cachedir for the time it occured.

I can provide more details and steps, log files, heap dumps, whatever else for both.
Comment 34 MackSix 2013-09-15 03:59:20 UTC
Created attachment 140087 [details]
log file, thread dump, 3 projects, jtattoo.jar library for GrumpyCatProject

Attached is log file, thread dump, 3 projects, jtatto.jar for the project GrumpyCatForm. I have the Heap Dump if needed.

Steps to reproduce:

This will happen without deleting the cache, but it seems to be easier to reproduce with a clean cache. Maybe because of more scanning being done with clean cache?

1. Open up all three projects in NetBeans 7.4 RC1.
2. Add jtattoo jar to GrumpyCatProject libraries.
3. Leave all nodes closed for all projects.
3. Open up the nodes and all the files for the Internationalization project.
4. Rename the the package in the Internationalization project (change number on the end).
5. Rename the Internationalization project (change number on the end).
6. Open up the nodes for the other 2 projects and look at the source packages.

Results: form files are showing for one or both of the other projects.

You may have to repeat this 2 or 3 times, but it always happens for me within 3 tries. This happens on JDK1.7.0_25 and JDK1.7.0_40 too. I have logfiles, threadumps, etc. for that it occurring these other JDKs. It seems like it is easier to reproduce with JDK1.8.0-ea, but it could be just a coincidence.  

Product Version: NetBeans IDE 7.4 RC1 (Build 201309112301)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b48
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b106
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\User06\AppData\Roaming\NetBeans\7.4rc1-201309112301
Cache directory: C:\Users\User06\AppData\Local\NetBeans\Cache\7.4rc1-201309112301

Could this be relates? Issue 235928
Comment 35 MackSix 2013-09-15 04:08:32 UTC
(In reply to MackSix from comment #34)
> Created attachment 140087 [details]
>
> 5. Rename the Internationalization project (change number on the end).

*** In step 5, choose to rename the folder too. ***

 
> You may have to repeat this 2 or 3 times, but it always happens for me
> within 3 tries. 

Note, when I say 3 tries, sometimes you can just rename the project & folder again a couple of times. Sometimes you may need to close NetBeans and delete cache again and try it.
Comment 36 MackSix 2013-09-15 04:40:33 UTC
Created attachment 140089 [details]
Screenshot - form files showing & one java file has wrong icon

This time it happened when I left NetBeans running for a while with the project open. I opened up the nodes and the form files were showing and one of the java files has icon missing and showing wrong "?" icon.

I have the heapdump for this, but I didn't get a threaddump, sorry.

I will attach the log file.
Comment 37 MackSix 2013-09-15 04:41:09 UTC
Created attachment 140090 [details]
Logfile - form files showing & one java file has wrong icon
Comment 38 MackSix 2013-09-15 04:42:38 UTC
Comment on attachment 140087 [details]
log file, thread dump, 3 projects, jtattoo.jar library for GrumpyCatProject

Sorry, I chose the wrong file and uploaded a duplicate. :(
Comment 39 MackSix 2013-09-15 04:43:55 UTC
Comment on attachment 140087 [details]
log file, thread dump, 3 projects, jtattoo.jar library for GrumpyCatProject

Ok, I don't know what is going on, I clicke the ling for the logfile I last uploaded and it sent me here twice and I thought I uploaded the wrong file, but I didn't. Sorry.
Comment 40 MackSix 2013-09-15 18:55:28 UTC
Created attachment 140101 [details]
Screenshot, log file, thread dump

Attached is another batch from leaving NetBeans minimized on the computer for a while without using it. I open it up, expand project nodes and form files shows. This happens every time I leave it idle. Sometimes It may be only one project shows the form files, sometimes 2 projects will show the form files.

The zip file has the screen shot, thread dump and log file. This time I got a thread dump.

I have a heap dump if needed.
Comment 41 Jaroslav Tulach 2013-09-16 16:22:47 UTC
> This happens every time I leave it idle. 

That is an interesting observation. Thanks.
Comment 42 Jaroslav Havlin 2013-09-24 14:43:27 UTC
*** Bug 225706 has been marked as a duplicate of this bug. ***
Comment 43 Jaroslav Havlin 2013-09-25 14:14:54 UTC
Thank you very much for providing the projects and other data.
Unfortunately, I haven't been able to reproduce the bug yet.
I've followed the steps to reproduce (from comment 34) at least 10 times, but
I haven't seen any form files in explorer.

> This happens every time I leave it idle.
How much time is needed? I've tried about 45 minutes, also invoked garbage
collection, but everything worked fine.

> Could this be related? Issue 235928
I don't think so.
Comment 44 MackSix 2013-09-26 02:41:14 UTC
(In reply to Jaroslav Havlin from comment #43)
> Thank you very much for providing the projects and other data.
> Unfortunately, I haven't been able to reproduce the bug yet.
> I've followed the steps to reproduce (from comment 34) at least 10 times, but
> I haven't seen any form files in explorer.
> 
> > This happens every time I leave it idle.
> How much time is needed? I've tried about 45 minutes, also invoked garbage
> collection, but everything worked fine.
> 

45 minutes is enough time, but I have not seen it lately after leaving the computer idle. I would not know why?

I just got 7.4 RC1 (Build 201309162201) to do it 2 times by using the rename routine, but both times was accompanied by a message pop-up that said the renaming of the project folder could not be done. I try again and the rename of the folder would happen, then the form files in Illuminator_1 are showing. I saw this before, but it did not always occur. When it did occur, the form files may or may not have shown. Plus sometimes they would show with out the pop-up message occurring. So I don't know if it is coincidental or it is related. It looks like it could be related. Also, I would rename a few times, then restart NetBeans and then it would occur. It always took a restart after trying a few times to try again. 

This is exhausing, I know. :)
Comment 45 MackSix 2013-09-26 07:42:27 UTC
I activated the C/C++ and PHP modules and am seeing the form files show after about 10 or 15 minutes of idle time of the IDE. No PHP Or C/C++ project is open, just the 3 attached here, except I turned GrumpyCat Project into a Maven Project. 

Coincidence?
Comment 46 MackSix 2013-09-26 07:46:31 UTC
Could this be related? 

https://netbeans.org/bugzilla/show_bug.cgi?id=235719
Comment 47 Jaroslav Havlin 2013-09-26 15:15:51 UTC
(In reply to MackSix from comment #46)
> Could this be related?
> https://netbeans.org/bugzilla/show_bug.cgi?id=235719
Maybe, I don't know, I'm sorry. I cannot reproduce that bug as well.

(In reply to MackSix from comment #45)
Thank you for new info. I've tried all of the steps to reproduce you've provided,
several times, on Windows 7, NetBeans 7.4 RC1, JDK 1.8 ea, but I haven't been
able to reproduce the bug yet. It seems it's something in system configuration
or HW, maybe the fast disk.
Comment 48 MackSix 2013-09-26 16:43:34 UTC
(In reply to Jaroslav Havlin from comment #47)
> (In reply to MackSix from comment #46)
> > Could this be related?
> > https://netbeans.org/bugzilla/show_bug.cgi?id=235719
> Maybe, I don't know, I'm sorry. I cannot reproduce that bug as well.
> 

I don't see it happen with steps on other bug now, but I saw it 2 times after adding new tool chain. It seems easy to reproduce sometimes and then sometimes not. Last night it took a few times of deleting and adding 2nd tool chain to see it happen.


> (In reply to MackSix from comment #45)
> Thank you for new info. I've tried all of the steps to reproduce you've
> provided,
> several times, on Windows 7, NetBeans 7.4 RC1, JDK 1.8 ea, but I haven't been
> able to reproduce the bug yet. It seems it's something in system
> configuration
> or HW, maybe the fast disk.

My original report was 2 years ago on a Sony Laptop, SATA-I standard hard disk. Then it occurs on an HP Laptop SATA-II standard hard disk and still on same laptop with SSD SATA III. But I noticed it before with SATA-II HD and only lately since the upgrade to SSD I see it happening when NetBeans is idle. Even if I am using the computer it will do it. Sometimes not, but usually more often than not. :) 

Thanks for trying!
Comment 49 pquiring 2014-01-03 16:23:57 UTC
This bug still exists in 7.4 final.

I find that closing and reopening the project fixes it for me.  I don't need to restart NetBeans completely.

Thanks.
Comment 50 Jaroslav Tulach 2014-02-14 11:27:10 UTC
Anyone has some details on reproducing this problem, or at least capturing log files? Otherwise I am afraid we are not going to fix this.
Comment 51 Jan Becicka 2014-02-14 14:46:25 UTC
Jardo, this bug is P3 at least, regardless if you want to fix it or not. Logs *are* attached. See attachments section.
Comment 52 MackSix 2014-07-12 02:38:33 UTC
With Build 201407070942, Java SE projects will open and everything seems fine except the form files show and although everything works fine (files open in editor, code completion works, Java projects compile and run), Java SE shows deactivated in the Options dialog and Plugin manager. Once I double click a form file, Java SE is activated and the form files go away. 

I guess the features on demand deactivated Java SE. I also tried deactivating it in the Plugin manager with the same results. Although it is deactivated, Java SE is still working.

See new screenshot.

Product Version: NetBeans IDE Dev (Build 201407070942)
Java: 1.8.0_05; Java HotSpot(TM) 64-Bit Server VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 53 MackSix 2014-07-12 02:39:25 UTC
Created attachment 148008 [details]
Java SE Deactivated But Java SE Works And Form Files Show
Comment 54 pquiring 2014-10-27 14:10:58 UTC
Created attachment 150134 [details]
messages.log (NetBeans 8.0.1)

Still occurring in 8.0.1.
Comment 55 pquiring 2014-10-27 14:14:37 UTC
(In reply to pquiring from comment #54)
> Created attachment 150134 [details]
> messages.log (NetBeans 8.0.1)
> 
> Still occurring in 8.0.1.

The files jfcraft.client.Launcher.form and jfcraft.client.Main.form is what to look for in the log file.
Comment 56 Jaroslav Tulach 2014-11-14 15:34:30 UTC
I don't think I will ever fix this, so passing to current module owner (sorry Jardo).