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.
Summary: | Get ClassCastException if delete *.bpel file from project tree | ||
---|---|---|---|
Product: | soa | Reporter: | _ hong_lin <hong_lin> |
Component: | BPEL Project | Assignee: | Denis Anisimov <ads> |
Status: | CLOSED FIXED | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
_ hong_lin
2006-06-21 01:54:05 UTC
assigning to Denis as BPELDataObject is in stack. Feel free to reassign if not your problem. There are two issues actually in this bug. One - ClassCastException. It appears when user open editor but don't change BPEL file. It seems this is origiannly bug inside NB InstanceContent implementation . I don't want to start discussion about this problem with NB gyus, so I just put into InstanceContent fake objec. The problem with InstanceContent it seems appear when one tries to delete smth. but InstanceContent is empty. When InstanceContent has some object inside it then all is ok. And there is no methods in InstanceContent that can be used for query its non-emptiness. The second - NPE. It appears when user dosn't open at all editor for BPEL. In this case InstanceContent was not initialized via lookup bootstrapping. And trying to remove smth from null instance of InstanceContent cause NPE. One need to check initialized InstanceContent before add/remove smth to/from it. Both issues are fixed. Verified the bug is fixed in nightly 060725 |