Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357314 - Exception Cause lost (swallowed) in OSGILauncher
Summary: Exception Cause lost (swallowed) in OSGILauncher
Status: CLOSED DUPLICATE of bug 346984
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.5.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact: Hao Zhou CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-10 19:12 EDT by Michael Vorburger CLA
Modified: 2011-11-09 21:31 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Vorburger CLA 2011-09-10 19:12:59 EDT
At least in the 2.5.0 branch the OSGILauncher has a bug causing it to loose ("swallow") root cause Exception if there are any start-up issues:

In http://dev.eclipse.org/viewcvs/viewvc.cgi/source/org.eclipse.birt.core/src/org/eclipse/birt/core/framework/osgi/OSGILauncher.java?view=markup&revision=1.19&root=BIRT_Project&pathrev=BIRT_2_5_0_Branch :

line 95 of OSGILauncher should be changed from

   throw new CoreException( ex.getMessage( ), ex );

to

   throw new CoreException( ex.getMessage( ), new Object[0], ex );


Please see http://mifosforge.jira.com/browse/MIFOS-5119 for more.

I've noticed that in the current HEAD that code was changed a bit, and this problem may not be there anymore, but I haven't tested it and thought I'd let you know about it anyways - if only to apply to some older maintenance branch where this still occurs, if you have any.
Comment 1 Gang Liu CLA 2011-10-28 05:06:52 EDT
fixed in 3.7.0

*** This bug has been marked as a duplicate of bug 346984 ***