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 26096 - NPEs and other UndeclaredException after big checkout
Summary: NPEs and other UndeclaredException after big checkout
Status: RESOLVED WORKSFORME
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscore (show other bugs)
Version: 3.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Richard Gregor
URL:
Keywords:
: 24340 34813 (view as bug list)
Depends on: 32089
Blocks:
  Show dependency tree
 
Reported: 2002-07-29 16:34 UTC by dmladek
Modified: 2004-09-24 08:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stacktraces of 2 NPE (1.84 KB, text/plain)
2002-07-29 16:35 UTC, dmladek
Details
stacktraces of some additional E (2.81 KB, text/plain)
2002-07-29 16:37 UTC, dmladek
Details
NPE and UndeclaredE (ITE) stacktraces (16.09 KB, text/plain)
2003-07-16 17:32 UTC, dmladek
Details
stacktrace associated with issue (8.42 KB, text/plain)
2004-02-25 22:21 UTC, _ gtzabari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmladek 2002-07-29 16:34:32 UTC
Product Version       = NetBeans IDE 3.4 RC 1
  IDE Versioning        = IDE/1 spec=2.23
impl=200207252340
  Operating System      = Linux version 2.4.18
running on i386
  Java; VM; Vendor      = 1.4.1-rc; Java
HotSpot(TM) Client VM 1.4.1-rc-b18; Sun Microsystems
Inc.
  Java Home             =
/usr/java/j2sdk1.4/sun/jdk1.4.1/jre
  System Locale; Encod. = cs_CZ; ISO-8859-2
  Home Dir; Current Dir = /home.local/danielm;
/DISKS/storage3/forte/NBdev-last/netbeans/bin
  IDE Install; User Dir =
/home.local/danielm/NBdev-last;
/home.local/danielm/.netbeans/3.4
=================================================================

I have mounted netbeans sources. And c. 10
fstreeview over it to have sources in apropriate
classpath...

Because of issue #23839 , I unmount my G-CVS FS
and monted again with different pserver name
(which is kind of allias to previous one).
I remember after thet in RunTime TAB there were 2
nodes for one G-CVS FS:-(

But OK.

I continued work:
I performed big checkout of those modules:
 core, openide, openidex, jemmy, jelly,
jellytools, junit, xtest,
 vcscore, vcsgeneric, javacvs, diff
and maybe others.

Lot's of it has been already checkouted.
Checkout command failed after it realy checkouted
many of mentioned modules.

And then IDE almost freeze... some NPE, OOME, etc
Exceptions were thrown.
see their stacktraces
Comment 1 dmladek 2002-07-29 16:35:45 UTC
Created attachment 6928 [details]
stacktraces of 2 NPE
Comment 2 dmladek 2002-07-29 16:37:28 UTC
Created attachment 6929 [details]
stacktraces of  some additional E
Comment 3 Martin Entlicher 2003-02-07 20:18:50 UTC
The OOME is already mentioned in checkout performance issues.
I'll fix the NPE.
Comment 4 Martin Entlicher 2003-02-07 20:21:17 UTC
The NPE is somewhat strange and might be caused by some inconsistent
state caused by the OOME. Anyway it's fixed:

/cvs/vcscore/src/org/netbeans/modules/vcscore/commands/CommandOutputCollector.java,v 
<--  CommandOutputCollector.java
new revision: 1.11; previous revision: 1.10
Comment 5 dmladek 2003-07-16 17:28:31 UTC
And what's about the InvocationTargetException?
BTW: even the NPE wasn't fixed:-( Or it somehow get broken...

At least the performance is OK... But I have now very good PC (2GHz
CPU, 1GB RAM :), so no OOME,
but NPE and undeclaredExceptions still persist
in NB351-RC1 #200307142350

And also, my whole CP has troubles for a few seconds when those Es
were thrown...

But they have different stacktraces, please se the attachment (all in
one, if you don't mind:)


Reproduction:
==============
-I have mounted several JavaCVS and G-CVS FSs.
-I also install the newest fstree module from
 update center... But I didn't use it 'cause
 repro is possible without using it (but might
 inflence the fact it is istaled?!?!?)
-I've already had one G-CVS FS mounted where 
 its' working dir was nb_all of all sources of 
 the ide.
-I deleted the content of this G-CVS FS from external tool (bash:) and
invoked CVS->Checkout...
-There I selected "standard" module and said I want release35 as a
revision.

-Well, the big checkout started....
Before it finished (or at the same time as it finished, not sure) the
2 Exceptions Windows popuped with NPE and UndeclaredE which I
attaching as only one text attachment...

Please investigate it,
thanks

Comment 6 dmladek 2003-07-16 17:32:02 UTC
Created attachment 10998 [details]
NPE and UndeclaredE (ITE) stacktraces
Comment 7 Martin Entlicher 2003-07-25 12:33:41 UTC
Probably because you delete the directory structure outside of NB this
has affected the cache structure.
Scheduling for NB 4.0.
Comment 8 Martin Entlicher 2003-08-08 10:35:42 UTC
*** Issue 24340 has been marked as a duplicate of this issue. ***
Comment 9 Martin Entlicher 2003-08-08 11:33:53 UTC
Depends on caching system re-design (issue #32089). This problem
should be addressed by the re-design.
Comment 10 Martin Entlicher 2003-08-21 11:02:25 UTC
*** Issue 34813 has been marked as a duplicate of this issue. ***
Comment 11 _ gtzabari 2004-02-25 22:21:59 UTC
Created attachment 13654 [details]
stacktrace associated with issue
Comment 12 _ gtzabari 2004-03-31 15:40:09 UTC
I'm still getting this issue in 3.6 RC1. Isn't this something we
should fix before we go final?
Comment 13 Martin Entlicher 2004-04-20 13:57:48 UTC
Issue #32089 is scheduled for promotion D, after it will be resolved,
this problem should disappear.
Comment 14 _ pkuzel 2004-08-20 17:45:10 UTC
With patch there are constant memory requirements.

On the other hand many files stay [local] after initial refresh
recursivelly that pupulates cache files. They need to be refreshed
again to show proper statuses.

Most folders are marked [local] even after subsequent refresh. Most of
inproperly annotated folders are in disk cache content. There is
inconstency between disk cache content and it's visualization. Few of
them is missing in disk cache content. There is inconsistency between
disk cache content and real state (assuming the refresh should update
it - it connects to server).

Files are OK, but it would be better to show no status until known
instead of current behaviour - marking them as [local] and rediplaying
later on with proper status got from cache. It can flicker.

So there are serious side effects that does not direclty link to
actual code changes. At my level of understanding the code.
Comment 15 _ pkuzel 2004-08-20 17:46:36 UTC
Ignore previous unrelated comment, please.
Comment 16 Richard Gregor 2004-09-24 08:18:20 UTC
I can't reproduce this issue in fresh dev build 040924. Closing as
worksforme.