I ran into a problem this morning. Started NetBeans 13 (as a snap on debian) and as soon as I tried to save a changed java file NetBeans froze completely. Killed it and tried again, same result each time.
Everything was working fine the last time I did this before today. After a dog walk in the woods it hit me it could be related to my jdk cleanup with sdkman. It turned out that my current maven project has a project specific java platform, but now non existing. Can NetBeans handle this with more grace than just a freeze? My messages.log ends with Even though the source level of /home/patrik/git/java/jotasync/src/main/java:/home/patrik/git/java/jotasync/src/main/resources is set to: 17, java.lang.AssertionError cannot be found on the bootclasspath: Changing source level to 1.3 WARNING [org.netbeans.TopSecurityManager]: use of system property netbeans.user has been obsoleted in favor of InstalledFileLocator/Places at org.netbeans.modules.java.source.parsing.JavacParser.createDumpFile(JavacParser.java:1284) SEVERE [org.openide.util.Exceptions] An error occurred during parsing of '/home/patrik/git/java/jotasync/src/main/java/se/trixon/jota/client/ui/App.java'. Please report a bug against java/source and attach dump file '/home/patrik/snap/netbeans/58/var/log/App.dump'. An error occurred during parsing of '/home/patrik/git/java/jotasync/src/main/java/se/trixon/jota/client/ui/App.java'. Please report a bug against java/source and attach dump file '/home/patrik/snap/netbeans/58/var/log/App.dump'. Caused: com.sun.tools.javac.code.Symbol$CompletionFailure: class file for java.lang.Boolean not found Caused: java.lang.IllegalStateException: com.sun.tools.javac.code.Symbol$CompletionFailure: class file for java.lang.Error not found at com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383) at org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:769) at org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:539) at org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:140) at org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608) at org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239) at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702) [catch] at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) ALL [null]: An error occurred during parsing of '/home/patrik/git/java/jotasync/src/main/java/se/trixon/jota/client/ui/App.java'. Please report a bug against java/source and attach dump file '/home/patrik/snap/netbeans/58/var/log/App.dump'. SEVERE [null]: Last record repeated again. INFO [org.netbeans.modules.bugtracking.BugtrackingManager]: Loading stored repositories took 51 millis. INFO [org.netbeans.ui.metrics.bugtracking]: USG_ISSUE_TRACKING_REPOSITORY