Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Report Preview in eclipse does not work(Preview page is blank)
Report Preview in eclipse does not work [message #826096] Wed, 21 March 2012 16:48 Go to next message
Zachary DeLuca is currently offline Zachary DeLucaFriend
Messages: 3
Registered: March 2012
Junior Member
Hi, I know there are many topics along this line, but I have not been able to find one that addresses my issue.

I create a new Report Project and then a new Report, add Data Source (Classic Models Inc. Sample Database), add Data Set with customer info (Data Set Preview Results DOES show data for the query). I then add fields from the Data Set to the Report and select Preview. The Preview page is blank, even the title of the report and the table headings DO NOT show up.

If I select the preview icon at the top and choose "View Report in Web Viewer" the BIRT Report Viewer does launch, it shows the controls and says "Showing page 1 of", but the Report section is blank.

However, if I select the Preview icon and choose "View Report as HTML" the report DOES load in the BIRT Report Viewer.

Here is my configuration:
CentOS 6.2 32-bit
All GCJ and OpenJDK uninstalled
Oracle JDK 6u31 (also tried with 7u3)
Eclipse 3.7.2 for Java Developers (added BIRT through "Install New Software...")
- Also tried with BIRT All-In-One for Linux and the Eclipse Reporting release
Firefox 10.0.3 (also tried 11.0)

I get no error messages, only this on the console where eclipse was started:

** (Eclipse:21340): DEBUG: NP_Initialize
** (Eclipse:21340): DEBUG: NP_Initialize succeeded
** (Eclipse:21340): DEBUG: NP_Initialize
** (Eclipse:21340): DEBUG: NP_Initialize succeeded
** (Eclipse:21340): DEBUG: NP_Initialize
** (Eclipse:21340): DEBUG: NP_Initialize succeeded
** (Eclipse:21340): DEBUG: NP_Initialize
** (Eclipse:21340): DEBUG: NP_Initialize succeeded
** (Eclipse:21340): DEBUG: NP_Initialize
** (Eclipse:21340): DEBUG: NP_Initialize succeeded
** (Eclipse:21340): DEBUG: NP_Initialize
** (Eclipse:21340): DEBUG: NP_Initialize succeeded
** (Eclipse:21340): DEBUG: NP_Initialize
** (Eclipse:21340): DEBUG: NP_Initialize succeeded
*** NSPlugin Wrapper *** WARNING:(../src/npw-wrapper.c:3160):invoke_NP_Initialize: assertion failed: (rpc_method_invoke_possible(g_rpc_connection))
** (Eclipse:21340): DEBUG: NP_Initialize
** (Eclipse:21340): DEBUG: NP_Initialize succeeded

I didn't know if that was related but to rule it out, I uninstalled nspluginwrapper 1.3.0 and installed version 1.4.4 from source. The above warning went away but my problem persists.

I had a web proxy set and SELinux is enabled by default, I disabled both of those just in case and it made no difference.

NOTE: If I do everything listed above on Fedora 16 64-bit, it all works fine. So there must be something about my CentOS 6.2 configuration that is not right.

Where else can I look to troubleshoot this? Any logging that I can enable, etc.? Thank you for your time!
Re: Report Preview in eclipse does not work [message #826194 is a reply to message #826096] Wed, 21 March 2012 19:35 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you open a bugzilla entry for this?
Have you tried to deploy the viewer web app on tomcat to the same machine?

Jason


On 3/21/2012 12:48 PM, Zachary DeLuca wrote:
> Hi, I know there are many topics along this line, but I have not been
> able to find one that addresses my issue.
>
> I create a new Report Project and then a new Report, add Data Source
> (Classic Models Inc. Sample Database), add Data Set with customer info
> (Data Set Preview Results DOES show data for the query). I then add
> fields from the Data Set to the Report and select Preview. The Preview
> page is blank, even the title of the report and the table headings DO
> NOT show up.
>
> If I select the preview icon at the top and choose "View Report in Web
> Viewer" the BIRT Report Viewer does launch, it shows the controls and
> says "Showing page 1 of", but the Report section is blank.
>
> However, if I select the Preview icon and choose "View Report as HTML"
> the report DOES load in the BIRT Report Viewer.
>
> Here is my configuration:
> CentOS 6.2 32-bit
> All GCJ and OpenJDK uninstalled
> Oracle JDK 6u31 (also tried with 7u3)
> Eclipse 3.7.2 for Java Developers (added BIRT through "Install New
> Software...")
> - Also tried with BIRT All-In-One for Linux and the Eclipse Reporting
> release
> Firefox 10.0.3 (also tried 11.0)
>
> I get no error messages, only this on the console where eclipse was
> started:
>
> ** (Eclipse:21340): DEBUG: NP_Initialize
> ** (Eclipse:21340): DEBUG: NP_Initialize succeeded
> ** (Eclipse:21340): DEBUG: NP_Initialize
> ** (Eclipse:21340): DEBUG: NP_Initialize succeeded
> ** (Eclipse:21340): DEBUG: NP_Initialize
> ** (Eclipse:21340): DEBUG: NP_Initialize succeeded
> ** (Eclipse:21340): DEBUG: NP_Initialize
> ** (Eclipse:21340): DEBUG: NP_Initialize succeeded
> ** (Eclipse:21340): DEBUG: NP_Initialize
> ** (Eclipse:21340): DEBUG: NP_Initialize succeeded
> ** (Eclipse:21340): DEBUG: NP_Initialize
> ** (Eclipse:21340): DEBUG: NP_Initialize succeeded
> ** (Eclipse:21340): DEBUG: NP_Initialize
> ** (Eclipse:21340): DEBUG: NP_Initialize succeeded
> *** NSPlugin Wrapper ***
> WARNING:(../src/npw-wrapper.c:3160):invoke_NP_Initialize: assertion
> failed: (rpc_method_invoke_possible(g_rpc_connection))
> ** (Eclipse:21340): DEBUG: NP_Initialize
> ** (Eclipse:21340): DEBUG: NP_Initialize succeeded
>
> I didn't know if that was related but to rule it out, I uninstalled
> nspluginwrapper 1.3.0 and installed version 1.4.4 from source. The above
> warning went away but my problem persists.
>
> I had a web proxy set and SELinux is enabled by default, I disabled both
> of those just in case and it made no difference.
>
> NOTE: If I do everything listed above on Fedora 16 64-bit, it all works
> fine. So there must be something about my CentOS 6.2 configuration that
> is not right.
>
> Where else can I look to troubleshoot this? Any logging that I can
> enable, etc.? Thank you for your time!
Re: Report Preview in eclipse does not work [message #826216 is a reply to message #826194] Wed, 21 March 2012 20:19 Go to previous messageGo to next message
Zachary DeLuca is currently offline Zachary DeLucaFriend
Messages: 3
Registered: March 2012
Junior Member
Jason,

Added to Bugzilla, I am not allowed to post a link but its bug ID 374979

The Web Viewer works properly with Tomcat 7.0.26

Thanks,
Zach
Re: Report Preview in eclipse does not work [message #826851 is a reply to message #826216] Thu, 22 March 2012 15:24 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Thanks for posting the bug id.

Jason

On 3/21/2012 4:19 PM, Zachary DeLuca wrote:
> Jason,
>
> Added to Bugzilla, I am not allowed to post a link but its bug ID 374979
>
> The Web Viewer works properly with Tomcat 7.0.26
>
> Thanks,
> Zach
Re: Report Preview in eclipse does not work [message #829583 is a reply to message #826851] Mon, 26 March 2012 14:09 Go to previous messageGo to next message
Zachary DeLuca is currently offline Zachary DeLucaFriend
Messages: 3
Registered: March 2012
Junior Member
I want to try to investigate this further, but I need a little help with what to do next. Which plugin is responsible for the Preview functionality? Is it org.eclipse.birt.report.designer.ui.preview.web? Or org.eclipse.birt.report.viewer? The latter has a directory called birt/logs, but there is only one file containing the text "The default directory to place BIRT runtime log files.".

Can I enable logging or debugging for these plugins? I suppose I can download the BIRT source and try to export my own plugins, or see what is available in terms of Debug configuration for the Product.

I am also downloading the 4.2.0M6 build to see if the error still occurs there.

Any other suggestions?

Thanks,
Zach
Re: Report Preview in eclipse does not work [message #830740 is a reply to message #829583] Wed, 28 March 2012 02:22 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

The report.viewer plugin is responsible for previewing the report. You
could check just that plugin in out and debug it.

Jason

On 3/26/2012 10:09 AM, Zachary DeLuca wrote:
> I want to try to investigate this further, but I need a little help with
> what to do next. Which plugin is responsible for the Preview
> functionality? Is it org.eclipse.birt.report.designer.ui.preview.web? Or
> org.eclipse.birt.report.viewer? The latter has a directory called
> birt/logs, but there is only one file containing the text "The default
> directory to place BIRT runtime log files.".
>
> Can I enable logging or debugging for these plugins? I suppose I can
> download the BIRT source and try to export my own plugins, or see what
> is available in terms of Debug configuration for the Product.
>
> I am also downloading the 4.2.0M6 build to see if the error still occurs
> there.
>
> Any other suggestions?
>
> Thanks,
> Zach
Re: Report Preview in eclipse does not work [message #831183 is a reply to message #830740] Wed, 28 March 2012 15:21 Go to previous messageGo to next message
S Z is currently offline S ZFriend
Messages: 3
Registered: March 2012
Junior Member
Hello!

I have the same problem: for empty report (it title only has) preview show progress bar and no more. Browser preview doesn't working too.

But there is one difference: When I run this project on my virtual machine (virtual box, windows xp sp3 rus, java 1.6.0_31-b05) then I see this situation. But the same copy of BIRT all-in-one installation running on my host PC working well. A see test report in preview without any problem!

Could you help me find sources of this difference? I am newbie in eclipse and will be gratefully for any resources how to start my investigation.
Re: Report Preview in eclipse does not work [message #831838 is a reply to message #831183] Thu, 29 March 2012 12:20 Go to previous messageGo to next message
S Z is currently offline S ZFriend
Messages: 3
Registered: March 2012
Junior Member
I found "debug report" button and press it:) The following log was happens in console:

29.03.2012 15:17:26 org.eclipse.birt.report.debug.internal.core.vm.ReportVMServer start
INFO: [Server] client accepted
29.03.2012 15:17:26 org.eclipse.birt.report.debug.internal.core.vm.ReportVMServer$1 run
INFO: [Server] enter request dispatching
29.03.2012 15:17:26 org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher configEngine
INFO: User class path received: 
29.03.2012 15:17:27 org.eclipse.birt.report.debug.internal.core.vm.ReportVMServer$1 run
WARNING: [Server] client disconnected


Then I switch to "debug" perspective and set "open generated file.." flag for html output. After "debug report" starting no additional changes in result was happened. Then I download and install jre7. All previous actions for debugging was repeated. And wonderful: html report was demonstrated!

unfortunately, preview in eclipse hangs as before:(
Re: Report Preview in eclipse does not work [message #832693 is a reply to message #831838] Fri, 30 March 2012 13:17 Go to previous message
S Z is currently offline S ZFriend
Messages: 3
Registered: March 2012
Junior Member
I make one new version of virtual PC and reinstall all software. And now my BIRT preview working well! I can see preview of any report in eclipse.

P.S. If you are interesting then one feature I found: Data source for ODBC must be system DNS, no user.
Previous Topic:How to get all default values of scalar parameter
Next Topic:What Render Options does the Report Designer use?
Goto Forum:
  


Current Time: Mon Nov 24 20:21:54 GMT 2014

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

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