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.
Seen with NetBeans IDE Dev (Build 200705311200) 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 Windows XP version 5.1 running on x86 en_US (nb); Cp1252 1. Have a BPEL project containing a BPEL JBI module in the project pane. Either SynchronousSample or TravelReservationService from the samples will do. 2. Create a new composite app Project and open in the CASA editor. 3. Try to DnD the BPEL JBI module (*.bpel file) from the BPEL project to the JBI modules area of the CASA Editor. ==> IllegalArgumentException. Stack trace attached from using TravelReservationService.bpel.
Created attachment 43151 [details] Stack trace for IllegalArgumentException
Fixed CasaEditor by checking arguments before the call to ProjectManager.findProject. The ProjectManager.findProject again checks the arguments to throw IllegalArgumentexception. I am not very sure of the quality improvement of the product to check repeatedly the validity of arguments but it will certainly degrade the performance. If I were owning the ProjectManager, I would check the arguments and would return NULL (And log the illegal argument usage) in stead of throwing IllegalArgumentException (which will enforce every function to check arguments before usage taking more CPU cycles).
Verified fixed in Product Version: NetBeans IDE Dev (Build 200706050000) Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)