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 105484 - DnD Bpel JBI Module from projects view into JBI Modules area => IllegalArgumentException
Summary: DnD Bpel JBI Module from projects view into JBI Modules area => IllegalArgume...
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: Composite Application (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Ramesh Dara
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-02 20:27 UTC by jlautz
Modified: 2007-06-05 22:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace for IllegalArgumentException (5.86 KB, application/octet-stream)
2007-06-02 20:30 UTC, jlautz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jlautz 2007-06-02 20:27:15 UTC
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.
Comment 1 jlautz 2007-06-02 20:30:45 UTC
Created attachment 43151 [details]
Stack trace for IllegalArgumentException
Comment 2 Ramesh Dara 2007-06-04 21:01:58 UTC
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).
Comment 3 jlautz 2007-06-05 22:28:36 UTC
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)