You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "mbien (via GitHub)" <gi...@apache.org> on 2026/04/02 06:00:21 UTC
Re: [PR] Improve startup cache loading performance [netbeans]
mbien commented on PR #9307:
URL: https://github.com/apache/netbeans/pull/9307#issuecomment-4174868675
tested a few failure modes. e.g using a corrupted cache or one from an older NB version and it got reset on start.
<details>
e.g cache containing invalid data would show:
```
INFO [org.netbeans.core.startup.ModuleList]: Cannot read cache
java.io.UTFDataFormatException: malformed input around byte 6
at java.base/java.io.DataInputStream.readUTF(DataInputStream.java:641)
at java.base/java.io.DataInputStream.readUTF(DataInputStream.java:550)
at org.netbeans.core.startup.ModuleList.readProps(ModuleList.java:652)
[catch] at org.netbeans.core.startup.ModuleList.readCache(ModuleList.java:626)
at org.netbeans.core.startup.ModuleList$ReadInitial.run(ModuleList.java:1583)
at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:102)
at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:494)
at org.netbeans.core.startup.ModuleList.readInitial(ModuleList.java:147)
at org.netbeans.core.startup.ModuleSystem.readList(ModuleSystem.java:280)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:171)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:141)
at org.netbeans.core.startup.Main.start(Main.java:307)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:99)
at java.base/java.lang.Thread.run(Thread.java:1583)
```
but there are various checks before that so it would fail silently in most cases without even getting to the point where it is loaded.
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists