Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Internet Explorer 9 not displaying BIRT 2.5 reports
icon9.gif  Internet Explorer 9 not displaying BIRT 2.5 reports [message #698547] Tue, 19 July 2011 16:40 Go to next message
Brian  is currently offline Brian Friend
Messages: 3
Registered: July 2011
Junior Member
I've inherited a system built around BIRT 2.5 and the embedded BIRT viewer.

The reports seem to work fine in Chrome, Firefox and versions of IE previous to 9 but in IE 9 they fail to show and I can only get a blank screen with no error message.

The strange thing is, if I use the developer tools in IE 9 and set the document mode to IE7 or IE8 then refresh the page the reports work as expected.

Does anyone have any idea how to resolve this? I have a feeling that it may be JavaScript related somehow. I know that I'm in an old version of BIRT but unfortunately upgrading isn't an option right now.

Thanks.
Re: Internet Explorer 9 not displaying BIRT 2.5 reports [message #698617 is a reply to message #698547] Tue, 19 July 2011 20:16 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you verify that you have cookies enabled?

Jason

On 7/19/2011 12:40 PM, Brian wrote:
> I've inherited a system built around BIRT 2.5 and the embedded BIRT viewer.
> The reports seem to work fine in Chrome, Firefox and versions of IE
> previous to 9 but in IE 9 they fail to show and I can only get a blank
> screen with no error message.
> The strange thing is, if I use the developer tools in IE 9 and set the
> document mode to IE7 or IE8 then refresh the page the reports work as
> expected.
>
> Does anyone have any idea how to resolve this? I have a feeling that it
> may be JavaScript related somehow. I know that I'm in an old version of
> BIRT but unfortunately upgrading isn't an option right now.
>
> Thanks.
Re: Internet Explorer 9 not displaying BIRT 2.5 reports [message #703440 is a reply to message #698617] Wed, 27 July 2011 15:20 Go to previous messageGo to next message
Brian  is currently offline Brian Friend
Messages: 3
Registered: July 2011
Junior Member
Hi Jason,

Yes, cookies are enabled.

To clarify, in IE 9 I just get the "Processing, please wait..." message -- the report never actually renders. In other browsers, including earlier versions of IE the report renders fine.

In IE 9, when debugging I've noticed I get a JavaScript error in this section of AbstractBaseReportDocument.js.

if (BrowserUtility.isIE) {
    var reportContainer = this.__instance.firstChild;

    if (reportContainer != null) {
        var scrollBarWidth = BrowserUtility._getScrollBarWidth(reportContainer, width, height);
        var containerWidth = "100%";

        if (height < reportContainer.offsetHeight && width > scrollBarWidth) {
	     containerWidth = (width - scrollBarWidth) + "px";
        }
        reportContainer.style.overflowX = "visible";
        reportContainer.style.overflowY = "visible";
        reportContainer.style.position = "relative";
        reportContainer.style.width = containerWidth;
    }
}


The actual error is:
Unable to set value of the property 'overflowX': object is null or undefined

When I toggle IE 9's Document Mode between 9 and 8 I can see that the type and content of reportContainer varies between the two modes.
Re: Internet Explorer 9 not displaying BIRT 2.5 reports [message #703466 is a reply to message #703440] Wed, 27 July 2011 15:36 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

What url are you using?
I assume you can not try with 3.7?
What happens if you put an if( reportContainer.style != null ){ around
the reportContainer lines?

Jason


On 7/27/2011 11:20 AM, Brian wrote:
> Hi Jason,
>
> Yes, cookies are enabled.
> To clarify, in IE 9 I just get the "Processing, please wait..." message
> -- the report never actually renders. In other browsers, including
> earlier versions of IE the report renders fine.
>
> In IE 9, when debugging I've noticed I get a JavaScript error in this
> section of AbstractBaseReportDocument.js.
>
> if (BrowserUtility.isIE) {
> var reportContainer = this.__instance.firstChild;
>
> if (reportContainer != null) {
> var scrollBarWidth = BrowserUtility._getScrollBarWidth(reportContainer,
> width, height);
> var containerWidth = "100%";
>
> if (height < reportContainer.offsetHeight && width > scrollBarWidth) {
> containerWidth = (width - scrollBarWidth) + "px";
> }
> reportContainer.style.overflowX = "visible";
> reportContainer.style.overflowY = "visible";
> reportContainer.style.position = "relative";
> reportContainer.style.width = containerWidth;
> }
> }
>
>
> The actual error is:
> Unable to set value of the property 'overflowX': object is null or
> undefined
>
> When I toggle IE 9's Document Mode between 9 and 8 I can see that the
> type and content of reportContainer varies between the two modes.
>
Re: Internet Explorer 9 not displaying BIRT 2.5 reports [message #703482 is a reply to message #703466] Wed, 27 July 2011 16:05 Go to previous messageGo to next message
Brian  is currently offline Brian Friend
Messages: 3
Registered: July 2011
Junior Member
The report is embedded in an IFRAME, so the URL is something like:
...://test.dom/birt-viewer/output?__report=organisation.rptdesign$period=3&userId=2

If I check update the JavaScript to check that the reportContainer isn't null, I don't get the same error but the report still fails to render. Interestingly, when I debug the JavaScript in IE I see this:

In IE 9 reportContainer is a type of Object, Text
In IE 8 reportContainer is DispHTMLDivElement

I'm working on getting a 3.7 environment setup on a sandbox as we speak. I can't upgrade to 3.7 on the environment that's showing this bug, as this is a mirror of a production environment.
Re: Internet Explorer 9 not displaying BIRT 2.5 reports [message #703517 is a reply to message #703482] Wed, 27 July 2011 16:36 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Why are you using the output mapping? Can you open a bug for this?

Jason

On 7/27/2011 12:05 PM, Brian wrote:
> The report is embedded in an IFRAME, so the URL is something like:
> ...://test.dom/birt-viewer/output?__report=organisation.rptdesign$period=3&userId=2
>
>
> If I check update the JavaScript to check that the reportContainer isn't
> null, I don't get the same error but the report still fails to render.
> Interestingly, when I debug the JavaScript in IE I see this:
>
> In IE 9 reportContainer is a type of Object, Text
> In IE 8 reportContainer is DispHTMLDivElement
>
> I'm working on getting a 3.7 environment setup on a sandbox as we speak.
> I can't upgrade to 3.7 on the environment that's showing this bug, as
> this is a mirror of a production environment.
Re: Internet Explorer 9 not displaying BIRT 2.5 reports [message #780687 is a reply to message #698547] Thu, 19 January 2012 04:09 Go to previous messageGo to next message
Shane Allred is currently offline Shane AllredFriend
Messages: 24
Registered: January 2012
Junior Member
Was there ever a solution found to this problem? I'm having the exact same problem using the Birt 3.7 Viewer. I've tried setting the X-UA-Compatible meta tag, which didn't seem to help with the error. The viewer runs fine in IE 9 in compatibility mode and fine outside of an iframe.

The JavaScript Error is as follows:

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3)
Timestamp: Thu, 19 Jan 2012 03:13:01 UTC

Message: Unable to set value of the property 'overflowX': object is null or undefined
Line: 171
Char: 5
Code: 0
URI: localhost:8443/birt/webcontent/birt/ajax/ui/report/AbstractBaseReportDocument.js
Re: Internet Explorer 9 not displaying BIRT 2.5 reports [message #780878 is a reply to message #780687] Thu, 19 January 2012 18:55 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Shane,

can you add your issue to this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=350736
Also how are you running it with an iframe? Or just the standard viewer
with no customizations?

Jason

On 1/18/2012 11:09 PM, Shane Allred wrote:
> Was there ever a solution found to this problem? I'm having the exact
> same problem using the Birt 3.7 Viewer. I've tried setting the
> X-UA-Compatible meta tag, which didn't seem to help with the error. The
> viewer runs fine in IE 9 in compatibility mode and fine outside of an
> iframe.
>
> The JavaScript Error is as follows:
>
> User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64;
> Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
> 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3)
> Timestamp: Thu, 19 Jan 2012 03:13:01 UTC
>
> Message: Unable to set value of the property 'overflowX': object is null
> or undefined
> Line: 171
> Char: 5
> Code: 0
> URI:
> localhost:8443/birt/webcontent/birt/ajax/ui/report/AbstractBaseReportDocument.js
>
Re: Internet Explorer 9 not displaying BIRT 2.5 reports [message #780904 is a reply to message #780878] Thu, 19 January 2012 21:21 Go to previous messageGo to next message
Shane Allred is currently offline Shane AllredFriend
Messages: 24
Registered: January 2012
Junior Member
I am running the viewer in an iframe. I haven't modified the viewer code at all.

The error seems to occur when I use frameset. The preview works fine, but for my requirements I really need to use the frameset with the different export options (csv, excel, pdf, etc.).

The viewer seems to run fine in IE 9 in compatibility mode. It also runs fine outside of an iframe. It seems to be the exact same issue that Brian logged in this thread.

Does anyone know of a temporary workaround/fix?

I'll log the bug as requested.
Re: Internet Explorer 9 not displaying BIRT 2.5 reports [message #781148 is a reply to message #780904] Fri, 20 January 2012 17:56 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Have you tried the BIRT tag libraries? I am trying reproduce this error
and I can not seem to do that.

Jason

On 1/19/2012 4:21 PM, Shane Allred wrote:
> I am running the viewer in an iframe. I haven't modified the viewer code
> at all.
>
> The error seems to occur when I use frameset. The preview works fine,
> but for my requirements I really need to use the frameset with the
> different export options (csv, excel, pdf, etc.).
>
> The viewer seems to run fine in IE 9 in compatibility mode. It also runs
> fine outside of an iframe. It seems to be the exact same issue that
> Brian logged in this thread.
> Does anyone know of a temporary workaround/fix?
>
> I'll log the bug as requested.
Re: Internet Explorer 9 not displaying BIRT 2.5 reports [message #781155 is a reply to message #781148] Fri, 20 January 2012 18:14 Go to previous messageGo to next message
Shane Allred is currently offline Shane AllredFriend
Messages: 24
Registered: January 2012
Junior Member
I am running a PHP application so was trying to run the reports in an iframe to avoid using the Java Bridge. The reports work fine in IE9 outside of an iframe. Have you tryed using an iframe?

I assume the tag libraries require the use of JSP pages?

Thanks
Re: Internet Explorer 9 not displaying BIRT 2.5 reports [message #782387 is a reply to message #781155] Mon, 23 January 2012 16:27 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

I tried it with an iframe in a jsp page and it worked for me.
I tried this with BIRT 2.5.2.

Jason


On 1/20/2012 1:14 PM, Shane Allred wrote:
> I am running a PHP application so was trying to run the reports in an
> iframe to avoid using the Java Bridge. The reports work fine in IE9
> outside of an iframe. Have you tryed using an iframe?
>
> I assume the tag libraries require the use of JSP pages?
>
> Thanks
Re: Internet Explorer 9 not displaying BIRT 2.5 reports [message #784902 is a reply to message #782387] Sat, 28 January 2012 05:42 Go to previous messageGo to next message
Shane Allred is currently offline Shane AllredFriend
Messages: 24
Registered: January 2012
Junior Member
It works on all browsers for me except IE 9. Did you try IE 9? If you run IE 9 in compatibility mode, it works for me as well.

Thanks
Re: Internet Explorer 9 not displaying BIRT 2.5 reports [message #786591 is a reply to message #784902] Mon, 30 January 2012 15:58 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

What mode are you running IE 9 in when it fails?

Jason

On 1/28/2012 12:42 AM, Shane Allred wrote:
> It works on all browsers for me except IE 9. Did you try IE 9? If you
> run IE 9 in compatibility mode, it works for me as well.
>
> Thanks
Re: Internet Explorer 9 not displaying BIRT 2.5 reports [message #786621 is a reply to message #698547] Mon, 30 January 2012 16:49 Go to previous message
Shane Allred is currently offline Shane AllredFriend
Messages: 24
Registered: January 2012
Junior Member
I was finally able to get the following to work:

Added the following headers to my PHP script:

header('X-UA-Compatible: IE=7');
header('X-UA-Compatible: IE=EmulateIE7');

Deleted the browser cache and completely closed IE 9. Now I no longer get the JavaScript error running on IE 9.

Thanks

Shane
Previous Topic:Error While Creating Data Source
Next Topic:Birt Client side scripting
Goto Forum:
  


Current Time: Fri Apr 19 09:44:31 GMT 2024

Powered by FUDForum. Page generated in 0.02565 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top