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 20997 - make cache more robust against Ctrl+C
Summary: make cache more robust against Ctrl+C
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on: 20830
Blocks: 20168
  Show dependency tree
 
Reported: 2002-02-28 11:58 UTC by David Simonek
Modified: 2008-12-23 08:37 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 David Simonek 2002-02-28 11:58:36 UTC
I'm reporting problems with cache:
if you break IDE session by pressing Ctrl+C, cache is not
consistent and IDE will not start anymore, until you clean the cache
manually. This should be more robust IMO.
----------------------------
java.io.IOException: org.xml.sax.SAXException: Premature end of input.
: file:/c:/Netbeans/Configs/MainTrunk/cache/all-layers.xml
        at
org.netbeans.core.projects.SystemFileSystem.create(SystemFileSystem.java:404)
        at
org.netbeans.core.projects.SessionManager.create(SessionManager.java:72)
        at
org.netbeans.core.NonGui.createDefaultFileSystem(NonGui.java:233)
        at
org.netbeans.core.NbTopManager.getRepository(NbTopManager.java:316)
        at org.netbeans.core.NonGui.run(NonGui.java:447)
        at org.netbeans.core.Main.run(Main.java:213)
        at
org.openide.TopManager.initializeTopManager(TopManager.java:120)
        at org.openide.TopManager.getDefault(TopManager.java:81)
        at org.netbeans.core.Main.main(Main.java:346)
        at org.netbeans.core.TopThreadGroup.run(TopThreadGroup.java:81)
        at java.lang.Thread.run(Thread.java:484)
Cannot add System filesystem: c:\Netbeans\Configs\MainTrunk\system,
exiting...
Comment 1 Jesse Glick 2002-02-28 12:44:20 UTC
Some other desirable misc. fixes:

- write stamp in hex
- zero-pad hex numbers
- NOI18N in XMLFileSystem
- use new File(URI) in ModuleLayeredFileSystem on 1.4 (maybe?)
Comment 2 Jesse Glick 2002-03-01 13:52:59 UTC
Have patch, need to test some.
Comment 3 Jesse Glick 2002-03-04 12:34:13 UTC
See issue #21036 for commit details.
Comment 4 Marian Mirilovic 2005-07-12 08:49:25 UTC
closed