This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The Java source code editor repeatedly issued errors after I created a new session bean and then changed the name of the bean implementation class and remote interface .java files using the project navigator. I changed the name by clicking on the names of the files in the Source Packages navigator and respelling their names. The IDE offered to refactor all occurrences, including commenting, which I accepted. Then, when clicking in the editor pane corresponding to the newly-created .java files, it threw reapeated and varying exceptions. I was trying to create a session bean to use numerous entity beans that NetBeans 5.5 auto-generated from tables in the bundled Derby Database. Since it was impossible to edit the session bean files, I deleted them and created a new session bean (stateless w/ remote interface), calling it ReladexBean. After opening the newly-created files in the source editor, repeated exceptions were again thrown. I closed the tabs for those two files and then deleted the .java files. Then I recreated the session bean, this time calling it simply "Reladex". This did not throw any exceptions.
Created attachment 29371 [details] NetBeans 5.5 Preview session log
Looks like this issue could be related to the JavaPersistenceGenerator.
It looks like the problem is the NPE from JPGenerator which is probably the same problem as in issue 74117 (different line bcs the code was changed). There is a workaround for this NPE (see 74117). If you can still reproduce please reopen with new stack trace. *** This issue has been marked as a duplicate of 74117 ***