Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Chart not displayed on linux (FC 4)(chart image is created, but does not show up when report run)
Chart not displayed on linux (FC 4) [message #513391] Tue, 09 February 2010 23:25 Go to next message
No real name is currently offline No real nameFriend
Messages: 7
Registered: February 2010
Junior Member
Hi,

I'm using birt 2.5.0 (everything worked fine when we were running 2.3), java 1.6 and tomcat to create a simple report that contains a chart in it. The report works perfectly when application is hosted on Windows but the image in the chart would not show up when the report is hosted on linux (FC4). I look in the temp image directory and the image file (.svg) is there under the default /report/images/sessionId/subSessionId folder. No error in the log even when it is set to finest. Any idea?

Thanks
Re: Chart not displayed on linux (FC 4) [message #513639 is a reply to message #513391] Wed, 10 February 2010 18:12 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

What browser are you using to view it? Can you change the type to png,
to check and see if it is an SVG viewer error?

Jason

chocai@yahoo.com wrote:
> Hi,
>
> I'm using birt 2.5.0 (everything worked fine when we were running 2.3),
> java 1.6 and tomcat to create a simple report that contains a chart in
> it. The report works perfectly when application is hosted on Windows
> but the image in the chart would not show up when the report is hosted
> on linux (FC4). I look in the temp image directory and the image file
> (.svg) is there under the default /report/images/sessionId/subSessionId
> folder. No error in the log even when it is set to finest. Any idea?
>
> Thanks
Re: Chart not displayed on linux (FC 4) [message #513670 is a reply to message #513639] Wed, 10 February 2010 18:51 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 7
Registered: February 2010
Junior Member
I use Firefox 3.5.7 and IE 8 and tried all different output format types including png. The .svg file loads fine on its own. Very bizarre.
Re: Chart not displayed on linux (FC 4) [message #513708 is a reply to message #513670] Wed, 10 February 2010 17:04 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Take a look at the following links:

http://wiki.eclipse.org/BIRT/FAQ/Charts2.2#Charts_not_render ing_on_Unix_systems

http://www.birt-exchange.org/forum/eclipse-birt-newsgroup-mi rror/11888-report-viewer-error.html
http://www.birt-exchange.org/forum/designing-birt-reports/11 221-charts-failing-web-viewer.html
http://www.birt-exchange.org/forum/eclipse-birt-newsgroup-mi rror/11247-birt-chartting-errors.html

A couple other things to look at:

1 - what is the image src value in the generated html. Note that if you
are using the viewer you will need to use the /preview mapping instead
of the /frameset mapping to get the img src.

2 - set the logging in the web.xml to FINE and post the log results.

Jason

chocai@yahoo.com wrote:
> I use Firefox 3.5.7 and IE 8 and tried all different output format types
> including png. The .svg file loads fine on its own. Very bizarre.
Re: Chart not displayed on linux (FC 4) [message #513721 is a reply to message #513708] Wed, 10 February 2010 23:28 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 7
Registered: February 2010
Junior Member
My server started with java.awt.headless turned on and I don't see any error in the log. The image just would not show up Sad .

html image source --> /preview?__sessionId=20100210_171252_006&__imageid=custo m954a64126ba1c68434.svg

-- preview servlet mapping
<servlet-mapping xmlns="http://java.sun.com/xml/ns/j2ee">^M
<servlet-name>EngineServlet</servlet-name>^M
<url-pattern>/preview</url-pattern>^M
</servlet-mapping>

<servlet xmlns="http://java.sun.com/xml/ns/j2ee">^M
<servlet-name>EngineServlet</servlet-name>^M
<servlet-class>org.eclipse.birt.report.servlet.BirtEngineServlet </servlet-class>^M
</servlet>

--log content after running report
Feb 10, 2010 5:12:52 PM org.eclipse.birt.report.engine.api.impl.ReportEngine openReportDesign
FINE: ReportEngine.openReportDesign: name=file:/appl/instances/MYAPP-6.0.0/PORT-80/deploy_myapp/m yapp_custom/reporting/birt/test.rptdesign, designStream=java.io.FileInputStream@a2f61b, options={3}
Feb 10, 2010 5:12:52 PM org.eclipse.birt.report.engine.api.impl.ReportEngine createGetParameterDefinitionTask
FINE: ReportEngine.createGetParameterDefinitionTask: reportRunnable=org.eclipse.birt.report.engine.api.impl.ReportRunnable@af7b3a
Feb 10, 2010 5:12:52 PM org.eclipse.birt.report.engine.api.impl.EngineTask setAppContext
FINE: EngineTask.setAppContext: context=PARENT_CLASSLOADER=WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@e24e2a
;webapplication.projectclasspath=;
Feb 10, 2010 5:12:52 PM org.eclipse.birt.report.engine.api.impl.EngineTask setLocale
FINE: EngineTask.setLocale: locale=English (United States)
Feb 10, 2010 5:12:52 PM org.eclipse.birt.report.engine.api.impl.EngineTask setAppContext
FINE: EngineTask.setAppContext: context=PARENT_CLASSLOADER=WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@e24e2a
;CHART_RESOLUTION=null;org.eclipse.birt.data.engine.dataset. cache.option=false;org.eclipse.birt.data.engine.cube.inmemor y.size=0;webapplication.projectclasspath=;BIRT_VIEWER_HTTPSE RVET_REQUEST=org.apache.catalina.connector.RequestFacade@187dc25 ;birt.viewer.resource.path=/appl/myapp/apache-tomcat-6.0.16/ webapps/ROOT;
Feb 10, 2010 5:12:52 PM org.eclipse.birt.report.engine.api.impl.EngineTask setAppContext
FINE: EngineTask.setAppContext: context=PARENT_CLASSLOADER=WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@e24e2a
;webapplication.projectclasspath=;BIRT_VIEWER_HTTPSERVET_REQ UEST=org.apache.catalina.connector.RequestFacade@187dc25;
Feb 10, 2010 5:12:52 PM org.eclipse.birt.report.engine.api.impl.ReportEngine createRunAndRenderTask
FINE: ReportEngine.createRunAndRenderTask: reportRunnable=org.eclipse.birt.report.engine.api.impl.ReportRunnable@af7b3a
Feb 10, 2010 5:12:52 PM org.eclipse.birt.report.engine.api.impl.EngineTask setAppContext
FINE: EngineTask.setAppContext: context=PARENT_CLASSLOADER=WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@e24e2a
;webapplication.projectclasspath=;
Feb 10, 2010 5:12:52 PM org.eclipse.birt.report.engine.api.impl.EngineTask setLocale
FINE: EngineTask.setLocale: locale=English (United States)
Feb 10, 2010 5:12:52 PM org.eclipse.birt.report.engine.api.impl.EngineTask setAppContext
FINE: EngineTask.setAppContext: context=PARENT_CLASSLOADER=WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@e24e2a
;CHART_RESOLUTION=null;org.eclipse.birt.data.engine.dataset. cache.option=false;org.eclipse.birt.data.engine.cube.inmemor y.size=0;webapplication.projectclasspath=;BIRT_VIEWER_HTTPSE RVET_REQUEST=org.apache.catalina.connector.RequestFacade@187dc25 ;birt.viewer.resource.path=/appl/myapp/apache-tomcat-6.0.16/ webapps/ROOT;
Feb 10, 2010 5:12:52 PM org.eclipse.birt.report.engine.api.impl.EngineTask loggerParamters
FINE: Running the report with paramters:
Feb 10, 2010 5:12:52 PM org.eclipse.birt.data.engine.odaconsumer.Connection setOdaQuerySpec
INFO: Ignoring UnsupportedOperationException thrown by ODA driver (org.eclipse.birt.report.data.oda.jdbc); cannot set query specification before prepare.
Re: Chart not displayed on linux (FC 4) [message #513890 is a reply to message #513721] Thu, 11 February 2010 15:25 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Run it again and get the new image src. Try to enter the url and see it
the image is displayed. ei
http://localhost:8080/WebViewer/preview?__sessionId=20100210 _171252_006&__imageid=custo
m954a64126ba1c68434.svg

I wonder if this is a permission issue.

Jason

chocai@yahoo.com wrote:
> My server started with java.awt.headless turned on and I don't see any
> error in the log. The image just would not show up :( .
>
> html image source -->
> /preview?__sessionId=20100210_171252_006&__imageid=custo
> m954a64126ba1c68434.svg
>
> -- preview servlet mapping
> <servlet-mapping xmlns="http://java.sun.com/xml/ns/j2ee">^M
> <servlet-name>EngineServlet</servlet-name>^M
> <url-pattern>/preview</url-pattern>^M
> </servlet-mapping>
>
> <servlet xmlns="http://java.sun.com/xml/ns/j2ee">^M
> <servlet-name>EngineServlet</servlet-name>^M
> <servlet-class>org.eclipse.birt.report.servlet.BirtEngineServlet
> </servlet-class>^M
> </servlet>
>
> --log content after running report
> Feb 10, 2010 5:12:52 PM
> org.eclipse.birt.report.engine.api.impl.ReportEngine openReportDesign
> FINE: ReportEngine.openReportDesign:
> name=file:/appl/instances/MYAPP-6.0.0/PORT-80/deploy_myapp/m
> yapp_custom/reporting/birt/test.rptdesign,
> designStream=mailto:java.io.FileInputStream@a2f61b, options={3}
> Feb 10, 2010 5:12:52 PM
> org.eclipse.birt.report.engine.api.impl.ReportEngine
> createGetParameterDefinitionTask
> FINE: ReportEngine.createGetParameterDefinitionTask:
> reportRunnable=mailto:org.eclipse.birt.report.engine.api.impl.ReportRunnable@af7b3a
>
> Feb 10, 2010 5:12:52 PM
> org.eclipse.birt.report.engine.api.impl.EngineTask setAppContext
> FINE: EngineTask.setAppContext:
> context=PARENT_CLASSLOADER=WebappClassLoader
> delegate: false
> repositories:
> /WEB-INF/classes/
> ----------> Parent Classloader:
> mailto:org.apache.catalina.loader.StandardClassLoader@e24e2a
> ;webapplication.projectclasspath=;
> Feb 10, 2010 5:12:52 PM
> org.eclipse.birt.report.engine.api.impl.EngineTask setLocale
> FINE: EngineTask.setLocale: locale=English (United States)
> Feb 10, 2010 5:12:52 PM
> org.eclipse.birt.report.engine.api.impl.EngineTask setAppContext
> FINE: EngineTask.setAppContext:
> context=PARENT_CLASSLOADER=WebappClassLoader
> delegate: false
> repositories:
> /WEB-INF/classes/
> ----------> Parent Classloader:
> mailto:org.apache.catalina.loader.StandardClassLoader@e24e2a
> ;CHART_RESOLUTION=null;org.eclipse.birt.data.engine.dataset.
> cache.option=false;org.eclipse.birt.data.engine.cube.inmemor
> y.size=0;webapplication.projectclasspath=;BIRT_VIEWER_HTTPSE
> RVET_REQUEST=mailto:org.apache.catalina.connector.RequestFacade@187dc25
> ;birt.viewer.resource.path=/appl/myapp/apache-tomcat-6.0.16/ webapps/ROOT;
> Feb 10, 2010 5:12:52 PM
> org.eclipse.birt.report.engine.api.impl.EngineTask setAppContext
> FINE: EngineTask.setAppContext:
> context=PARENT_CLASSLOADER=WebappClassLoader
> delegate: false
> repositories:
> /WEB-INF/classes/
> ----------> Parent Classloader:
> mailto:org.apache.catalina.loader.StandardClassLoader@e24e2a
> ;webapplication.projectclasspath=;BIRT_VIEWER_HTTPSERVET_REQ
> UEST=mailto:org.apache.catalina.connector.RequestFacade@187dc25;
> Feb 10, 2010 5:12:52 PM
> org.eclipse.birt.report.engine.api.impl.ReportEngine createRunAndRenderTask
> FINE: ReportEngine.createRunAndRenderTask:
> reportRunnable=mailto:org.eclipse.birt.report.engine.api.impl.ReportRunnable@af7b3a
>
> Feb 10, 2010 5:12:52 PM
> org.eclipse.birt.report.engine.api.impl.EngineTask setAppContext
> FINE: EngineTask.setAppContext:
> context=PARENT_CLASSLOADER=WebappClassLoader
> delegate: false
> repositories:
> /WEB-INF/classes/
> ----------> Parent Classloader:
> mailto:org.apache.catalina.loader.StandardClassLoader@e24e2a
> ;webapplication.projectclasspath=;
> Feb 10, 2010 5:12:52 PM
> org.eclipse.birt.report.engine.api.impl.EngineTask setLocale
> FINE: EngineTask.setLocale: locale=English (United States)
> Feb 10, 2010 5:12:52 PM
> org.eclipse.birt.report.engine.api.impl.EngineTask setAppContext
> FINE: EngineTask.setAppContext:
> context=PARENT_CLASSLOADER=WebappClassLoader
> delegate: false
> repositories:
> /WEB-INF/classes/
> ----------> Parent Classloader:
> mailto:org.apache.catalina.loader.StandardClassLoader@e24e2a
> ;CHART_RESOLUTION=null;org.eclipse.birt.data.engine.dataset.
> cache.option=false;org.eclipse.birt.data.engine.cube.inmemor
> y.size=0;webapplication.projectclasspath=;BIRT_VIEWER_HTTPSE
> RVET_REQUEST=mailto:org.apache.catalina.connector.RequestFacade@187dc25
> ;birt.viewer.resource.path=/appl/myapp/apache-tomcat-6.0.16/ webapps/ROOT;
> Feb 10, 2010 5:12:52 PM
> org.eclipse.birt.report.engine.api.impl.EngineTask loggerParamters
> FINE: Running the report with paramters:
> Feb 10, 2010 5:12:52 PM
> org.eclipse.birt.data.engine.odaconsumer.Connection setOdaQuerySpec
> INFO: Ignoring UnsupportedOperationException thrown by ODA driver
> (org.eclipse.birt.report.data.oda.jdbc); cannot set query specification
> before prepare.
>
Re: Chart not displayed on linux (FC 4) [message #513894 is a reply to message #513890] Thu, 11 February 2010 15:46 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 7
Registered: February 2010
Junior Member
I tried that and nothing showed either, body with empty <pre> tag. It looks like the code goes into some strange block of code that does nothing under some weird condition. It would be too much trouble for me to set up a linux development environment to debug this Sad
Re: Chart not displayed on linux (FC 4) [message #513901 is a reply to message #513894] Thu, 11 February 2010 11:08 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Try one more time using a chart type of PNG.

Jason

chocai@yahoo.com wrote:
> I tried that and nothing showed either, body with empty <pre> tag. It
> looks like the code goes into some strange block of code that does
> nothing under some weird condition. It would be too much trouble for me
> to set up a linux development environment to debug this :(
Re: Chart not displayed on linux (FC 4) [message #513949 is a reply to message #513901] Thu, 11 February 2010 18:43 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 7
Registered: February 2010
Junior Member
same result.
Re: Chart not displayed on linux (FC 4) [message #513963 is a reply to message #513949] Thu, 11 February 2010 19:30 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

This sounds like a permission problem.

chocai@yahoo.com wrote:
> same result.
Re: Chart not displayed on linux (FC 4) [message #513984 is a reply to message #513963] Thu, 11 February 2010 22:10 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 7
Registered: February 2010
Junior Member
ok, I stepped through the birt servlets and here are the findings. The reason the image is not showing is the servlet is not invoked at all. Any idea why?

this request invokes the BirtEngineServlet properly--> http://localhost/preview?__report=test.rptdesign&__bread crumbTrail=testchart.rptdesign

this does not go through BirtEngineServlet for some reason, and this is the real cause for the image not showing --> http://localhost/preview?__sessionId=20100211_160524_446& ;__imageid=custom62c27b126bee04d3511.png

[Updated on: Thu, 11 February 2010 22:12]

Report message to a moderator

Re: Chart not displayed on linux (FC 4) [message #514146 is a reply to message #513984] Fri, 12 February 2010 15:03 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 for this? Maybe someone on the team has seen
this one before.

Jason

chocai@yahoo.com wrote:
> ok, I stepped through the birt servlets and here are the findings. The
> reason the image is not showing is the servlet is not invoked at all.
> Any idea why?
>
> this request invokes the BirtEngineServlet
> properly--> http://localhost/preview?__report=test.rptdesign&__bread crumbTrail=testchart.rptdesign
>
>
> this does not go through BirtEngineServlet for some reason, and this is
> the real cause for the image not showing -->
> http://localhost/preview?__sessionId=20100211_160524_446& ;__imageid=custom62c27b126bee04d3511.png
>
>
>
Re: Chart not displayed on linux (FC 4) [message #514156 is a reply to message #514146] Fri, 12 February 2010 16:25 Go to previous message
No real name is currently offline No real nameFriend
Messages: 7
Registered: February 2010
Junior Member
Thanks Jason for all you help. I found the problem. It was our filtering code that prevented the servlet from being called Mad .
Previous Topic:hints for customizable/configurable/parameterizable BIRT report designs
Next Topic:How to add multiple summary columns in crosstab?
Goto Forum:
  


Current Time: Sat Apr 20 01:04:50 GMT 2024

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

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

Back to the top