Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325769

Summary: Error when the option -enableassertations is set
Product: z_Archived Reporter: Don Bergstrom <monsterdon>
Component: BIRTAssignee: Jianchao Li <jianchao.li>
Status: VERIFIED FIXED QA Contact: Xiaoying Gu <bluesoldier>
Severity: normal    
Priority: P3 CC: bluesoldier, jianchao.li, tatabow
Version: 2.5.2   
Target Milestone: 2.6.2   
Hardware: PC   
OS: Windows Server 2003   
Whiteboard:

Description Don Bergstrom CLA 2010-09-20 11:12:10 EDT
I am using an unmodified version of web enabled report viewer. When deployed under tomcat with the java option of -ea or -enableassertations, the included test report fails and throws a java.lang.ClassCastException: java.lang.AssertionError cannot be cast to java.lang.Exception error.

When the java option is changed to -da or -disableassertations then the report will run correctly.

No stack trace is produced in this instance.
Comment 1 tatabow CLA 2010-10-13 04:58:42 EDT
Hi,
same problem when deployed on Weblogic Server 9 or 10
Comment 2 Xiaoying Gu CLA 2010-10-18 05:58:45 EDT
Reproducible in 2.6.1 release build.
Comment 3 Jianchao Li CLA 2010-10-21 02:32:20 EDT
It is fixed by changing the assert statement.
Comment 4 Xiaoying Gu CLA 2010-10-21 03:30:44 EDT
Verified with daily build 2.6.2.v20101021-0630 in tomcat 6.0.