You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempted to move (refactor) a class from a package (call it Apkj) in a project to another existing package (call it Bpkj) in the same project. The class had been moved already from Bpkj to Apkj, and I was trying to put it back into Bpkj (yeah, I messed up and was just trying to fix it). Another class had also been successfully removed from Bpkj to Apkj before this. Error message said exception java.lang.IllegalStateException.
How to reproduce
Just pick a class and try to move it (CMD-M on a Mac). Follow the prompts on the dialog that pops up and select an appropriate package to move it to.
Did this work correctly in an earlier version?
No / Don't know
Operating System
macOS Ventrua Version 13.5.1
JDK
Java: 17.0.2; Java HotSpot(TM) 64-Bit Server VM 17.0.2+8-LTS-86
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
The full error message: Module Java Refactoring threw java.lang.IllegalStateException: java.lang.NullPointerException: Cannot read field "kind" because "tree.sym" is null. Please report a bug against Java Refactoring module and attach your var/log/messages.log.
Where exactly is this log file? On a Mac, it appears to hidden somewhere. I can't find it using a terminal (not in /var/log).
Are you willing to submit a pull request?
No
The text was updated successfully, but these errors were encountered:
you can see the log by opening View -> IDE log, on top of that log file you also see the value for User Directory, thats where the log files are.
Regarding exceptions in javac, we would need minimal reproducers for that. We have to figure out what is causing it and then likely report or fix it upstream in OpenJDK.
closing this issue since we track duplicates already: #5508 or #3725
Apache NetBeans version
Apache NetBeans 19
What happened
Attempted to move (refactor) a class from a package (call it Apkj) in a project to another existing package (call it Bpkj) in the same project. The class had been moved already from Bpkj to Apkj, and I was trying to put it back into Bpkj (yeah, I messed up and was just trying to fix it). Another class had also been successfully removed from Bpkj to Apkj before this. Error message said exception java.lang.IllegalStateException.
How to reproduce
Just pick a class and try to move it (CMD-M on a Mac). Follow the prompts on the dialog that pops up and select an appropriate package to move it to.
Did this work correctly in an earlier version?
No / Don't know
Operating System
macOS Ventrua Version 13.5.1
JDK
Java: 17.0.2; Java HotSpot(TM) 64-Bit Server VM 17.0.2+8-LTS-86
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
The full error message: Module Java Refactoring threw java.lang.IllegalStateException: java.lang.NullPointerException: Cannot read field "kind" because "tree.sym" is null. Please report a bug against Java Refactoring module and attach your var/log/messages.log.
Where exactly is this log file? On a Mac, it appears to hidden somewhere. I can't find it using a terminal (not in /var/log).
Are you willing to submit a pull request?
No
The text was updated successfully, but these errors were encountered: