Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 202331 - Cannot generate BIRT reports with TPTP 4.4.1, JDK 1.4 and BIRT 2.1.x
Summary: Cannot generate BIRT reports with TPTP 4.4.1, JDK 1.4 and BIRT 2.1.x
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P1 critical (vote)
Target Milestone: ---   Edit
Assignee: Sheldon Lee-Loy CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 202947
Blocks:
  Show dependency tree
 
Reported: 2007-09-05 16:55 EDT by Sheldon Lee-Loy CLA
Modified: 2016-05-05 10:36 EDT (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 Sheldon Lee-Loy CLA 2007-09-05 16:55:38 EDT
When a user tries to generate a BIRT report using TPTP 4.4.1 and JDK 1.4 an exception is thrown.  The report complains about a unsupported d protocol.  The reason is that the report is trying to open an xml file on the D drive.  This protocol is used when desigining the report and should not be used during runtime.  What happens is that BIRT report engine tries to first open an XML stream in memory.  If this fails it tries to open a default file on the d drive.  

From the BIRT download page only BIRT 2.1.x is able to work JDK 1.4.  BIRT 2.1.x requires GEF 3.2, EMF  2.2 and eclipse 3.2.

TPTP 4.4.1 can work with JDK 1.4 when using EMF 2.2.4 and eclipse 3.3.1.

Note that there's some decrepencies between EMF versions and Eclipse versions.  I fear that this may cause some conflicts when trying to run BIRT 2.1.x and TPTP 4.4.1.  Resulting in generating blank reports.

On another note I was able to generate reports with BIRT 2.1.x and TPTP 4.3.1 since the dependencies for TPTP 4.3.1 and BIRT 2.1.x are the same.
Comment 1 Paul Slauenwhite CLA 2007-09-07 13:37:04 EDT
According to the BIRT download site (http://www.eclipse.org/birt/phoenix/build/#introduction), using BIRT 2.1.3 with the following depednancies is supported:

Eclipse 3.1.3
GMF 3.1.3
EMF 2.2
JRE 1.4.2

Sheldon is investigating the root cause the of this problem.
Comment 2 Paul Slauenwhite CLA 2007-09-10 12:05:14 EDT
Joe is working today on isolating the problem to either our BIRT report generators or BIRT.
Comment 3 Sheldon Lee-Loy CLA 2007-09-10 16:27:00 EDT
I was able to get the reports working with Sun's JDK 1.4

If I compile org.eclipse.tptp.platform.report.birt and replace the org.eclipse.tptp.platform.report.birt_XXX.jar with my new compiled version the reports get generated.  I used the following jdk to compile the org.eclipse.tptp.platform.report.birt plugin.

Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_11-b06)
Java HotSpot(TM) Client VM (build 1.4.2_11-b06, mixed mode)

I was told that TPTP is compiled with an IBM jdk.  I'm not sure why this is causing a problem.  

I'm wondering if I use IBM's JDK 1.4 will work?  I have to try this.
Comment 4 Paul Slauenwhite CLA 2007-09-11 09:38:19 EDT
(In reply to comment #2)
> Joe is working today on isolating the problem to either our BIRT report
> generators or BIRT.
> 

Correction, Sheldon.
Comment 5 Sheldon Lee-Loy CLA 2007-09-11 12:01:51 EDT
(In reply to comment #3)

I figured out the reason this is happening.


TPTP 4.4.1 is compiled with BIRT 2.2.  As a result the org.eclipse.birt.report.data.oda.xml.Constants.APPCONTEXT_INPUTSTREAM BIRT 2.2 value is inlined in the TPTP 4.4.1 class.  Now, if I use TPTP 4.4.1 with BIRT 2.1.x the reports break because BIRT 2.1.x is expecting a different constant value.  

I opened BIRT Bug #202947 to resolve this problem.
Comment 6 Sheldon Lee-Loy CLA 2007-09-12 10:11:51 EDT
The work around is to compile the TPTP 4.4.1 code base using BIRT 2.1.3 as suggested by bug 202947
Comment 7 Paul Slauenwhite CLA 2007-09-17 09:32:59 EDT
Resolved since dependent defect (202947) has been fixed.

Sheldon, can you:

1) Confirm 202947.
2) If resolved, have the 4.4.1 builds use this BIRT driver.
3) Update the hours worked on triaging this defect.

Thanks Sheldon for your help!
Comment 8 Paul Slauenwhite CLA 2008-06-27 08:54:05 EDT
Closing by default since not closed by the originator in the 7+ months since being resolved.  

Please reopen if the issue is still present in the latest TPTP release or the resolution is not correct.