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 189248 - Ignore broken caches in ModuleList
Summary: Ignore broken caches in ModuleList
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 6.x
Hardware: Other Linux
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-05 10:29 UTC by Jaroslav Tulach
Modified: 2010-10-29 07:07 UTC (History)
0 users

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 Jaroslav Tulach 2010-08-05 10:29:44 UTC
> I'm getting the exception below when I
> try to start my app with netbeans, after a few successful attempts.  Looks
> like a problem reading the cache, but can we avoid letting these kinds
> of exceptions cause startup to fail?  Is there anything we can do to,
> for instance, catch them and just rebuild the cache if we detect that it
> is corrupted?
> 
> Note that it's possible that I used control+C at the console to
> terminate the my app instance after one of the successful startup
> attempts, and that could well be the reason for the corrupted cache.
> Nevertheless, we shouldn't allow something like this to prevent startup
> from succeeding on subsequent runs.
> 
> Aug 3, 2010 1:18:59 PM org.netbeans.core.startup.ModuleList readInitial
> WARNING: null
> java.io.EOFException
>     at
> java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.j
> ava:2554) at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at
> org.netbeans.core.startup.ModuleList.readCache(ModuleList.java:633) at
> org.netbeans.core.startup.ModuleList$ReadInitial.run(ModuleList.java:1497)
>     at
> org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:125)
>     at
> org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:542)
>     at
> org.netbeans.core.startup.ModuleList.readInitial(ModuleList.java:168) at
> org.netbeans.core.startup.ModuleSystem.readList(ModuleSystem.java:272)
>     at org.netbeans.core.startup.Main.getModuleSystem(Main.java:171)
>     at org.netbeans.core.startup.Main.start(Main.java:302)
>     at
> org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:114) at
> java.lang.Thread.run(Thread.java:619)
Comment 1 Jaroslav Tulach 2010-08-05 13:11:10 UTC
core-main#e57b2569594c rooted at release69_base

Please make sure this fix which increases robustness makes its way to some patch for 6.9. Thanks.
Comment 2 Quality Engineering 2010-08-06 03:20:11 UTC
Integrated into 'main-golden', will be available in build *201008060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e57b2569594c
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #189248: Problems reading cache shall not prevent the start of the system
Comment 3 Jaroslav Tulach 2010-08-30 15:15:41 UTC
Merged to release691 clone as
http://hg.netbeans.org/release691/rev/85a199cf945e