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

Summary: make cache more robust against Ctrl+C
Product: platform Reporter: David Simonek <dsimonek>
Component: Module SystemAssignee: Jesse Glick <jglick>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 20830    
Bug Blocks: 20168    

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