Bug 521407 - Exception while generating BIRT report for a model project having row and columns with custom dimension
Summary: Exception while generating BIRT report for a model project having row and col...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 4.4.2   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Birt-Report-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-25 04:33 EDT by Robi Sharma CLA
Modified: 2017-08-25 04:33 EDT (History)
0 users

See Also:


Attachments
the usecase causing issue (414.77 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-08-25 04:33 EDT, Robi Sharma CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robi Sharma CLA 2017-08-25 04:33:53 EDT
Created attachment 269974 [details]
the usecase causing issue

I am getting an exception while generating an BIRT report from ".emf" file in RSA.

--------------------------------------------------------
Caused by: java.lang.IllegalArgumentException: "fromUnits"must be one of the absolute units(CM, IN, MM, PT, PC).
	at org.eclipse.birt.report.model.api.util.DimensionUtil.convertTo(DimensionUtil.java:97)
	at org.eclipse.birt.report.engine.ir.DimensionType.convertTo(DimensionType.java:111)
_________________________________________________________________________

Below is the EMF file content causing problem :
 <ownedComment xmi:id="_AYAUgIcaEeehaaXDPUTWeA" annotatedElement="_ieg8QIcZEeehaaXDPUTWeA">
      <body>&lt;p>&lt;/p>&lt;table border=&quot;1&quot;>&lt;col width=&quot;50.0%&quot;>&lt;/col>&lt;col width=&quot;50.0%&quot;>&lt;/col>&lt;tr style='height:59;'>&lt;td>&lt;p>a row1&lt;/p>&lt;/td>&lt;td>&lt;p>c row1&lt;/p>&lt;/td>&lt;/tr>&lt;tr style='height:109;'>&lt;td>&lt;p>b row2&lt;/p>&lt;/td>&lt;td>&lt;p>f row2&lt;/p>&lt;/td>&lt;/tr>&lt;/table>&lt;p>&lt;/p></body>
    </ownedComment>

Inparameter “fromUnits” is string and can be null or “”.

In “Blank Package.emx” line 12 contains:

… /tr>&lt;tr style='height:59;'>&lt;t …

There we get problem with style-height which creates problem in BIRT processing. When I remove this part by using text editor Word DOC will work.