jmborer opened a new issue, #9359:
URL: https://github.com/apache/netbeans/issues/9359
### 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](https://github.com/user-attachments/files/26971687/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
--
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