Apache NetBeans version
Apache NetBeans 29
What happened
I don't know how and when this happens, but sometimes I get a notification and when checkin the logs I see for example:
SEVERE [org.openide.util.Exceptions]
An error occurred during parsing of 'C:\projects\nimbus\master\4-Implementation\services\persistence\src\main\java\ch\skyguide\nimbus\service\persistence\PersistenceService.java'. Please report a bug against java/source and attach dump file 'C:\Users\borerjc\AppData\Roaming\NetBeans\29\var\log\PersistenceService_1.dump'.
Caused by: java.lang.IllegalStateException: java.lang.ClassCastException
at com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
at org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:765)
at org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:536)
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:241)
at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:288)
at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:545)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1403)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2012)
Caused by: java.lang.ClassCastException
An error occurred during parsing of 'C:\projects\nimbus\master\4-Implementation\services\persistence\src\main\java\ch\skyguide\nimbus\service\persistence\PersistenceService.java'. Please report a bug against java/source and attach dump file 'C:\Users\borerjc\AppData\Roaming\NetBeans\29\var\log\PersistenceService_1.dump'.
ALL [null]: An error occurred during parsing of 'C:\projects\nimbus\master\4-Implementation\services\persistence\src\main\java\ch\skyguide\nimbus\service\persistence\PersistenceService.java'. Please report a bug against java/source and attach dump file 'C:\Users\borerjc\AppData\Roaming\NetBeans\29\var\log\PersistenceService_1.dump'.
SEVERE [null]: Last record repeated again.
When this happens, the code parsing is broken ans consequently the completion and syntax colouring.
Language / Project Type / NetBeans Component
Java Maven Project
How to reproduce
I don't know since this happens sometimes, but never predictably. Hereafter the dump file.
PersistenceService_1.zip
Did this work correctly in an earlier version?
No / Don't know
Operating System
Windows 10 version 10.0 running on amd64; UTF-8; en_US (nb)
JDK
OpenJDK Runtime Environment 25.0.2+10-LTS
Apache NetBeans packaging
Community provided installer
Anything else
No response
Are you willing to submit a pull request?
No
Apache NetBeans version
Apache NetBeans 29
What happened
I don't know how and when this happens, but sometimes I get a notification and when checkin the logs I see for example:
When this happens, the code parsing is broken ans consequently the completion and syntax colouring.
Language / Project Type / NetBeans Component
Java Maven Project
How to reproduce
I don't know since this happens sometimes, but never predictably. Hereafter the dump file.
PersistenceService_1.zip
Did this work correctly in an earlier version?
No / Don't know
Operating System
Windows 10 version 10.0 running on amd64; UTF-8; en_US (nb)
JDK
OpenJDK Runtime Environment 25.0.2+10-LTS
Apache NetBeans packaging
Community provided installer
Anything else
No response
Are you willing to submit a pull request?
No