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.

Bug 73912 - IDE confused by changing name of EJB session bean
Summary: IDE confused by changing name of EJB session bean
Status: RESOLVED DUPLICATE of bug 74117
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-23 08:25 UTC by multiverse
Modified: 2006-05-13 21:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NetBeans 5.5 Preview session log (234.33 KB, text/plain)
2006-03-23 08:27 UTC, multiverse
Details

Note You need to log in before you can comment on or make changes to this bug.
Description multiverse 2006-03-23 08:25:47 UTC
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.
Comment 1 multiverse 2006-03-23 08:27:06 UTC
Created attachment 29371 [details]
NetBeans 5.5 Preview session log
Comment 2 Erno Mononen 2006-04-14 09:12:48 UTC
Looks like this issue could be related to the JavaPersistenceGenerator.
Comment 3 Pavel Buzek 2006-05-13 21:35:46 UTC
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 ***