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 45606 - Projects list empty after restart
Summary: Projects list empty after restart
Status: CLOSED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Lookup (show other bugs)
Version: 4.x
Hardware: PC All
: P1 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: RANDOM, REGRESSION
: 45415 45607 45693 45743 45749 45757 45761 45802 45809 45817 45819 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-27 03:02 UTC by _ tboudreau
Modified: 2008-12-22 22:09 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2004-06-27 03:02:13 UTC
For the last few hours, using a checkout from
yesterday, some of the time after a restart, my
open projects are there;  sometimes the projects
list is empty (though all the files I had open are
still open).

If the project list is empty and I need to get
something done, I'll just reopen openide or
whatever.  It's hit or miss whether it will be
open after another restart - sometimes the list of
projects from an earlier session will reappear
after a few sessions where I had to open things.

About 70% of the time there are no projects open
(not also that the project chooser's default dir
is reset to my home dir), then once in a while I
get a pleasant surprise.
Comment 1 Jesse Glick 2004-06-27 19:04:04 UTC
It has happened to me too recently, just in the last couple of days I
think. Not every time I restart, but some of the time. However I find
that shutting down, deleting folder-lookup.ser and lookup-stamp.txt
from $userdir/var/cache/, and restarting works reliably. I suspect
something wrong with the recent changes in lookup caching.

Note that after killing the cache and restarting, the previous list of
projects is correctly loaded; and any changes that were made in the
buggy VM session to the list of projects are ignored, i.e. presumably
not written to disk. This is consistent with the hypothesis that the
SystemOption is functioning correctly in-VM, but the persistence link
is not working properly, i.e. the connection to its lookup entry in
FL[Services/org-netbeans-modules-project-ui-OpenProjectList.settings
is not there for some reason.
Comment 2 _ tboudreau 2004-06-27 19:41:37 UTC
Making this a P2, given that I'm not the only one seeing it - it's pretty severe, since most 
of the time projects are missing on restart.
Comment 3 Milos Kleint 2004-06-28 07:06:57 UTC
happened to be quite frequently during weekend (yes, I have to restart
often because the IDE gets sluggish quite fast)
projects list disappered, vcs fs was not present..

My workaround was to open the project again.
Comment 4 Jesse Glick 2004-06-30 01:40:24 UTC
*** Issue 45693 has been marked as a duplicate of this issue. ***
Comment 5 Jesse Glick 2004-06-30 21:56:28 UTC
*** Issue 45757 has been marked as a duplicate of this issue. ***
Comment 6 Jesse Glick 2004-06-30 22:09:45 UTC
*** Issue 45743 has been marked as a duplicate of this issue. ***
Comment 7 Jesse Glick 2004-06-30 22:12:54 UTC
Causing a lot of problems. Whatever was most recently changed in
lookup needs to be reverted until the problems are better understood.
Comment 8 Milan Kubec 2004-07-01 14:51:22 UTC
*** Issue 45802 has been marked as a duplicate of this issue. ***
Comment 9 Jaroslav Tulach 2004-07-01 23:56:17 UTC
Petr Nejedly commited fix yesterday. Simple typo in my code:

  --- InheritanceTree.java	24 Jun 2004 13:48:52 -0000	1.31
  +++ InheritanceTree.java	1 Jul 2004 04:23:33 -0000	1.32
  @@ -1070,7 +1070,7 @@
               if (n.items instanceof ArrayList || n.items == null) {
                   this.items = (ArrayList)n.items;
               } else {
  -                n.items = new ArrayList (n.items);
  +                this.items = new ArrayList (n.items);
               }
           }
         
Comment 10 Jaroslav Tulach 2004-07-02 00:10:37 UTC
*** Issue 45761 has been marked as a duplicate of this issue. ***
Comment 11 Jaroslav Tulach 2004-07-02 00:27:27 UTC
Fixed by Petr's commit yesterday, here is the test to verify the fix.

openide/test/unit/src/org/openide/util/lookup/AbstractLookupBaseHid.java,v
 <--  AbstractLookupBaseHid.java
new revision: 1.13
Comment 12 Jaroslav Tulach 2004-07-02 18:47:46 UTC
*** Issue 45607 has been marked as a duplicate of this issue. ***
Comment 13 Jesse Glick 2004-07-04 05:53:08 UTC
*** Issue 45817 has been marked as a duplicate of this issue. ***
Comment 14 Jesse Glick 2004-07-04 05:53:40 UTC
*** Issue 45819 has been marked as a duplicate of this issue. ***
Comment 15 Jaroslav Tulach 2004-07-06 16:29:55 UTC
*** Issue 45749 has been marked as a duplicate of this issue. ***
Comment 16 _ ttran 2004-07-08 13:11:23 UTC
*** Issue 45809 has been marked as a duplicate of this issue. ***
Comment 17 Petr Hrebejk 2004-07-12 13:08:29 UTC
*** Issue 45415 has been marked as a duplicate of this issue. ***
Comment 18 _ tboudreau 2004-08-17 15:53:20 UTC
It's back in today's build - same behavior - sometimes projects are 
reopened, sometimes they're not.

I don't see any changes in cvs logs that particularly jump out as 
being the cause.  
Comment 19 Jaroslav Tulach 2004-08-18 09:28:14 UTC
This bug was related to a fatal typo in lookup implementation. It is
definitively fixed and definitively is not back. If you observe
similar problems, they are really not simptoms of the same problem.
Moreover everything works for me, so I am closing this. If you can
simulate the problem, please think about readjusting the priority.
Comment 20 Marian Mirilovic 2005-07-19 15:25:00 UTC
verified