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 28846 - IAE: I was overflooded by Warning about reading line in cache
Summary: IAE: I was overflooded by Warning about reading line in cache
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscore (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2002-11-19 07:56 UTC by dmladek
Modified: 2003-07-07 10:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Warning messages on th screen (124.33 KB, image/png)
2002-11-19 07:57 UTC, dmladek
Details
egample of netbeans.cmd.cache (109 bytes, text/plain)
2002-11-19 08:30 UTC, dmladek
Details
ide.log with warning about cache (4.31 MB, text/plain)
2002-11-19 08:46 UTC, dmladek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmladek 2002-11-19 07:56:05 UTC
Ufff, a strange thing happen to me this morning on
NB40dev-2002-1118-0100, jdk1.4.1
KDE3, kernel 2.4.18 #4, RH72
=====================================================

I left ide running during night and while today
morning while
I was reading emails...suddenly decades, hundreds
of Warning messages flooded my screen:-((( I
created snapshot for you
and adding stacktrace of IAE which I found in
hundrds in console

*********** Exception occurred ************ at Tue
Nov 19 08:42:36 CET 2002
Annotation: Line read: '' in file
/home/dm103276/.A/Build.Test/CVS/ide/vcsgeneric/src/org/netbeans/modules/vcs/advanced/CVS/netbeans.cmd.cache
[catch]java.lang.IllegalArgumentException: File
name element is missing.
        at
org.netbeans.modules.vcscore.caching.VcsCacheFile$VcsPersistentData.addSiblingsFromDisk(VcsCacheFile.java:378)
        at
org.netbeans.modules.vcscore.caching.VcsCacheFile$VcsPersistentData.doWriteToDisk(VcsCacheFile.java:316)
        at
org.netbeans.modules.vcscore.caching.VcsCacheFile$VcsPersistentData.doWriteToDisk(VcsCacheFile.java:296)
        at
org.netbeans.modules.vcscore.cache.CacheFile$PersistentData.writeToDisk(CacheFile.java:221)
        at
org.netbeans.modules.vcscore.cache.CacheReference.run(CacheReference.java:112)
        at
org.openide.util.Utilities$ActiveQueue.run(Utilities.java:2057)
        at java.lang.Thread.run(Thread.java:536)
Comment 1 dmladek 2002-11-19 07:57:45 UTC
Created attachment 7983 [details]
Warning messages on th screen
Comment 2 dmladek 2002-11-19 08:06:56 UTC
Sorry for P2 even though it is not reproductable, but I think it so
serious and this shoudl never happen. I "LOVE" programs which are able 
to floods you with their thousands of warning if they don't like
something.... 
Also another reasons for P2:
- ide.log is getting bigger and bigger
- You can't do nothing with your unsaved work- you have 2 choices:
       i) trying to click on each warning...but it is fery hard to
          be faster....
       ii) kill the ide eg. in the case that it happen when your
           away 


Maybe that there should be a mechanism in ide's core to prevent such
situation... so if you think taht is a problem of core,please reasigne
(I fell more that it should be cared by ide's core,
but definitely it cames now from your vcscore module)


Comment 3 dmladek 2002-11-19 08:30:34 UTC
Created attachment 7984 [details]
egample of netbeans.cmd.cache
Comment 4 dmladek 2002-11-19 08:39:33 UTC
Actualy, it is hard to find on which files it happens, because in 
in ide.log there is repeatedly named just one file...
But I find another "bad" cache file...attaching
also I'm gonna attach ide.log
Comment 5 dmladek 2002-11-19 08:44:54 UTC
He... I found another 2 cache files: but they're empty:

/ide/vcsgeneric/src/org/netbeans/modules/vcs/profiles/commands/CVS/netbeans.cmd.cache

/ide/vcsgeneric/src/org/netbeans/modules/vcs/profiles/resources/CVS/netbeans.cmd
.cache

so, you must satisfiend with only ide.log
Comment 6 dmladek 2002-11-19 08:46:48 UTC
Created attachment 7985 [details]
ide.log with warning about cache
Comment 7 Martin Entlicher 2003-02-21 17:19:31 UTC
This issue and issue #16295 has a common problem. There goes something
wrong in the cache IO process and it needs to be gracefully reported.
Comment 8 Martin Entlicher 2003-02-25 12:30:22 UTC
Fixed in the main trunk. The error is reported just once per affected
directory:

/cvs/vcscore/src/org/netbeans/modules/vcscore/caching/VcsCacheDir.java,v 
<--  VcsCacheDir.java
new revision: 1.46; previous revision: 1.45
/cvs/vcscore/src/org/netbeans/modules/vcscore/caching/VcsCacheFile.java,v 
<--  VcsCacheFile.java
new revision: 1.15; previous revision: 1.14
Comment 9 dmladek 2003-07-07 10:14:16 UTC
I hope it's fixed. After long, long time nothing similar happen to me
again.

Verifying on:
NetBeans IDE Dev (Build 200307030100)
1.4.2; Java HotSpot(TM) Client VM 1.4.2-b28