mhalachev commented on issue #4288: URL: https://github.com/apache/netbeans/issues/4288#issuecomment-1983879492
I can confirm that the issue still exists in NB21. Here are the steps to reproduce and an analysis what is possibly going on. ### Steps to reproduce 1. Install next version after having NetBeans already installed. (e.g. NB21 over 20). 2. Proceed with Import Settings from previous version on first run. 3. Open Start Page and navigate to What's New. ### Expected behaviour - News feed should load. ### Actual result - Error while loading content is displayed (Reload does not work). ### Workaround 1. Go to [settings directory]/config/Preferences/org/netbeans/modules/ 2. Delete welcome.properties, or just delete the date from the atom feed. 3. Restart the IDE If my understanding is correct, when settings are being imported from a previous version, `welcome.properties` is copied and it contains the date of the fetched atom feed, but the actual cached atom feed file is not copied from the old cache. `blogs.apache.org/netbeans/feed/entries/atom=Fri, 23 Feb 2024 14:36:54 GMT` Let's take look at the following: https://github.com/apache/netbeans/blob/736cf60be7411e88064c83bc947f62cd6b3b76b9/nb/welcome/src/org/netbeans/modules/welcome/content/RSSFeed.java#L341-L349 The exception caught here (and the "Error while loading content" displayed) is possibly thrown by an attempt to read the atom feed from the cache file, which, as mentioned before, in this case contains no data: https://github.com/apache/netbeans/blob/736cf60be7411e88064c83bc947f62cd6b3b76b9/nb/welcome/src/org/netbeans/modules/welcome/content/RSSFeed.java#L214-L218 Checking the cache file size and/or actual content may be considered, or even removing the SAXException catch and eventually defaulting to the next one as an attempt to reload the news feed: https://github.com/apache/netbeans/blob/736cf60be7411e88064c83bc947f62cd6b3b76b9/nb/welcome/src/org/netbeans/modules/welcome/content/RSSFeed.java#L350-L356 -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
