apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.68k stars 853 forks source link

Module Java Refactoring threw java.lang.IllegalStateException: java.lang.NullPointerException. #3800

Open RobertScharpf opened 2 years ago

RobertScharpf commented 2 years ago

Apache NetBeans version

Apache NetBeans 13

What happened

Refactor->Move of one java source file to another project. messages.log

How to reproduce

Refactor->Move a java source file from one project to another project and different target Source Package.

Did this work correctly in an earlier version?

Apache NetBeans 12.6

Operating System

windows 10, version 21H2, OS Build 19044.1586

JDK

1.8.0_312; OpenJDK 64-Bit Server VM 25.312-b07; Amazon.com Inc.

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

Upgraded to Netbeans 13 today and moved 6 java sources to another project. Error occurred for all moves. However, move succeeded.

Are you willing to submit a pull request?

No

Code of Conduct

Yes

lburaggi commented 2 years ago

I also have an error while Refactoring, and I think it could be the same reported here by RobertScharpf messages.log LuxotticaGroupXlsPOLoaderTest.dump.txt Error The error is generated while renaming a method in a class that is not related to the file reported as unparseable in the log The log says there is a

ALL [null]: An error occurred during parsing of 'C:\JavaProjects\VisionGroup\hermesVsg\src\test\java\it\sv\hermes\purchord\service\LuxotticaGroupXlsPOLoaderTest.java'. Please report a bug against java/source and attach dump file 'C:\Users\luca\AppData\Roaming\NetBeans\13\var\log\LuxotticaGroupXlsPOLoaderTest.dump'.

but actually this is not true: not only the file looks correct but if I remove it from the project an identical error is generated having an other file as target.

lburaggi commented 2 years ago

I am using NB 13 with JDK 17 on Windows 10 I also cleared the NB cache and restarted but the error is still there