Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » PPT download from server - error
PPT download from server - error [message #417522] Thu, 30 July 2009 10:43 Go to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
Hello,

I have a BIRT report embedded into a Seam application.
The BIRT report is leaving in a parallel folder in Tomcat, like:
webapps/
-RepContainer/
--reps/
---MYRep.rptdesign
-seamApp/
--pages/
---repPage.xhtml
---components/
----repContent.xhtml

in repContent.xhtml which is included into repPage.xhtml I am "calling"
the report MYRep.rptdesign with

<b:birt designType="frameset"
designName="..\RepContainer\reps\MYRep.rptdesign" title="MYRep Title"/>

In my development environment, everything works fine.
When I pass the code to the server (copy the folders from my local
development environment to the Tomcat in the server), everything works
fine but when I download the report (as PPT for example): it says

"+ org.eclipse.birt.report.service.api.ReportServiceException: Error
happened while running the report "

inside of the report in the one and only slide (should be more than one).
In my local environments the downloaded file looks fine.

Any idea welcome, Thanks!
Tero
Re: PPT download from server - error [message #428563 is a reply to message #417522] Thu, 30 July 2009 14:36 Go to previous messageGo to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
after looking at this further through the Tomcat log, I found an error
while loading a image for the background, so I create the same file in the
server and now the error is
WARNING: unknown protocol: c
java.net.MalformedURLException: unknown protocol: c
at java.net.URL.<init>(URL.java:574)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at
org.eclipse.birt.report.engine.emitter.EmitterUtil.getImageD ata(EmitterUtil.java:311)
at
org.eclipse.birt.report.engine.emitter.EmitterUtil.parseImag e(EmitterUtil.java:401)
at
org.eclipse.birt.report.engine.emitter.ppt.PPTWriter.drawBac kgroundImage(PPTWriter.java:676)
at
org.eclipse.birt.report.engine.emitter.ppt.device.PPTPage.dr awBackgroundImage(PPTPage.java:71)
at
org.eclipse.birt.report.engine.layout.emitter.AbstractPage.d rawBackgroundImage(AbstractPage.java:61)
at
org.eclipse.birt.report.engine.layout.emitter.PageDeviceRend er.drawBackgroundImage(PageDeviceRender.java:688)
at
org.eclipse.birt.report.engine.layout.emitter.PageDeviceRend er.drawCell(PageDeviceRender.java:419)
at
org.eclipse.birt.report.engine.layout.emitter.PageDeviceRend er.startContainer(PageDeviceRender.java:265)
at
org.eclipse.birt.report.engine.layout.emitter.PageDeviceRend er.visitContainer(PageDeviceRender.java:190)
at
org.eclipse.birt.report.engine.nLayout.area.impl.ContainerAr ea.accept(ContainerArea.java:260)
at
org.eclipse.birt.report.engine.layout.emitter.PageDeviceRend er.visitChildren(PageDeviceRender.java:202)
at
org.eclipse.birt.report.engine.layout.emitter.PageDeviceRend er.visitContainer(PageDeviceRender.java:191)
at
org.eclipse.birt.report.engine.nLayout.area.impl.ContainerAr ea.accept(ContainerArea.java:260)
...
...
I guess that's because in the report designer I had to use the file
chooser and in a "windows environment" that is
"C:\folder1\forlder2\backroung.png".

I tried to use a relative path but that's not working for the master's
page background. It is not showing in the preview, nor after launching to
Tomcat.

I had the same problem for an normal image within the report, that one is
not showing in the viewer (designer preview) but later when deploying to
Tomcat.

I have to deploy later to Unix: is the relative path for the background
image for the master page not possible? Or am I doing something wrong
there?

Thanks,
Tero
Re: PPT download from server - error [message #443291 is a reply to message #428563] Fri, 31 July 2009 14:32 Go to previous messageGo to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
Hello,

Is there a possibility to use something like file:\\xyz or url(xyz) within
the Master Page "Background image" ?

I am thinking about that because after changing from
"C:\folder1\forlder2\backroung.png" to the relative
"/forlder2/backroung.png" the error is:

31-Jul-2009 10:59:34
org.eclipse.birt.report.engine.nLayout.area.impl.PageArea
createBackgroundImage
WARNING: no protocol: /forlder2/backroung.png
java.net.MalformedURLException: no protocol: /forlder2/backroung.png
at java.net.URL.<init>(URL.java:567)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at
org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.cr eateBackgroundImage(PageArea.java:266)
at
org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.in itialize(PageArea.java:241)
at
org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.cr eateNewPage(RootArea.java:92)
at
org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.in itialize(RootArea.java:83)
at
org.eclipse.birt.report.engine.nLayout.LayoutEngine.setConta iner(LayoutEngine.java:284)
at
org.eclipse.birt.report.engine.nLayout.LayoutEngine._startCo ntainer(LayoutEngine.java:324)
at
org.eclipse.birt.report.engine.nLayout.LayoutEngine.startCon tainer(LayoutEngine.java:278)
at
org.eclipse.birt.report.engine.emitter.ContentEmitterAdapter .startPage(ContentEmitterAdapter.java:65)
at
org.eclipse.birt.report.engine.nLayout.LayoutEngine.startPag e(LayoutEngine.java:446)
at
org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.st artContent(ContentEmitterUtil.java:47)
at
org.eclipse.birt.report.engine.layout.html.buffer.PageNode.s tart(PageNode.java:49)
at org.eclipse.birt.report.engine.layout.html.buffer...
...
...

1- when using the complete path ("C:\folder1\forlder2\backroung.png") the
viewer displays the background and when trying to download the report it
generates the error described in my post above (unknown protocol: c).

2- when using relative path ("/forlder2/backroung.png") the viewer does
not display the background (but all the rest of the report) and when
trying to download the report it generates the error above (no protocol).

The funniest with the second point is that I am using a relative path for
an image within the report and that is displaying perfectly in the viewer,
so why not the background?!

Thanks for any idea,
Tero
Re: PPT download from server - error [message #444081 is a reply to message #443291] Fri, 31 July 2009 16:29 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Tero,

Are you using JBoss integration? What version of BIRT is this? I
remember there being an issue with background images in previous
versions of BIRT. Can you try to put an image in the resource folder
and then just putting the image name in the background?

Jason

Tero wrote:
> Hello,
>
> Is there a possibility to use something like file:\\xyz or url(xyz)
> within the Master Page "Background image" ?
>
> I am thinking about that because after changing from
> "C:\folder1\forlder2\backroung.png" to the relative
> "/forlder2/backroung.png" the error is:
>
> 31-Jul-2009 10:59:34
> org.eclipse.birt.report.engine.nLayout.area.impl.PageArea
> createBackgroundImage
> WARNING: no protocol: /forlder2/backroung.png
> java.net.MalformedURLException: no protocol: /forlder2/backroung.png
> at java.net.URL.<init>(URL.java:567)
> at java.net.URL.<init>(URL.java:464)
> at java.net.URL.<init>(URL.java:413)
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.cr eateBackgroundImage(PageArea.java:266)
>
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.in itialize(PageArea.java:241)
>
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.cr eateNewPage(RootArea.java:92)
>
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.in itialize(RootArea.java:83)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine.setConta iner(LayoutEngine.java:284)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine._startCo ntainer(LayoutEngine.java:324)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine.startCon tainer(LayoutEngine.java:278)
>
> at
> org.eclipse.birt.report.engine.emitter.ContentEmitterAdapter .startPage(ContentEmitterAdapter.java:65)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine.startPag e(LayoutEngine.java:446)
>
> at
> org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.st artContent(ContentEmitterUtil.java:47)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.PageNode.s tart(PageNode.java:49)
>
> at org.eclipse.birt.report.engine.layout.html.buffer...
> ..
> ..
>
> 1- when using the complete path ("C:\folder1\forlder2\backroung.png")
> the viewer displays the background and when trying to download the
> report it generates the error described in my post above (unknown
> protocol: c).
> 2- when using relative path ("/forlder2/backroung.png") the viewer does
> not display the background (but all the rest of the report) and when
> trying to download the report it generates the error above (no protocol).
> The funniest with the second point is that I am using a relative path
> for an image within the report and that is displaying perfectly in the
> viewer, so why not the background?!
>
> Thanks for any idea,
> Tero
>
Re: PPT download from server - error [message #480556 is a reply to message #444081] Mon, 17 August 2009 15:43 Go to previous messageGo to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
Jason Weathersby wrote:

> Tero,

> Are you using JBoss integration? What version of BIRT is this? I
> remember there being an issue with background images in previous
> versions of BIRT. Can you try to put an image in the resource folder
> and then just putting the image name in the background?

> Jason

Hello Jason,

I am not sure if I am using the JBoss integration... at least not in an
active way. I included it while installing/configuring Eclipse.

Version: 2.5.0.v20090611-7m9a4FTy215N3qZ5UkRE
Build id: v20090617-0630

> ... in the resource folder ...
You mean in
webapps/
-RepContainer/
--reps/
---MYRep.rptdesign
--resources/
---backroung.png
?

I tried that and the background is not showing while displaying and again
the error while downloading:

17-Aug-2009 16:55:55
org.eclipse.birt.report.engine.nLayout.area.impl.PageArea
createBackgroundImage
WARNING: no protocol: backroung.png
java.net.MalformedURLException: no protocol: backroung.png
at java.net.URL.<init>(URL.java:567)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at
org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.cr eateBackgroundImage(PageArea.java:266)
at
org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.in itialize(PageArea.java:241)
at
org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.cr eateNewPage(RootArea.java:92)
at
org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.in itialize(RootArea.java:83)
at
org.eclipse.birt.report.engine.nLayout.LayoutEngine.setConta iner(LayoutEngine.java:284)
at
org.eclipse.birt.report.engine.nLayout.LayoutEngine._startCo ntainer(LayoutEngine.java:324)
at
org.eclipse.birt.report.engine.nLayout.LayoutEngine.startCon tainer(LayoutEngine.java:278)
at
org.eclipse.birt.report.engine.emitter.ContentEmitterAdapter .startPage(ContentEmitterAdapter.java:65)
at
org.eclipse.birt.report.engine.nLayout.LayoutEngine.startPag e(LayoutEngine.java:446)
at
org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.st artContent(ContentEmitterUtil.java:47)
at
org.eclipse.birt.report.engine.layout.html.buffer.PageNode.s tart(PageNode.java:49)
at
org.eclipse.birt.report.engine.layout.html.buffer.ContainerB ufferNode.start(ContainerBufferNode.java:79)
at
org.eclipse.birt.report.engine.layout.html.buffer.ContainerB ufferNode.start(ContainerBufferNode.java:79)
at
org.eclipse.birt.report.engine.layout.html.buffer.ContainerB ufferNode.flush(ContainerBufferNode.java:48)
at
org.eclipse.birt.report.engine.layout.html.buffer.HTMLPageBu ffer.endRow(HTMLPageBuffer.java:206)
at
org.eclipse.birt.report.engine.layout.html.buffer.HTMLPageBu ffer.endContainer(HTMLPageBuffer.java:140)
at
org.eclipse.birt.report.engine.layout.html.buffer.TableBreak Buffer.endContainer(TableBreakBuffer.java:355)
at
org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.en d(HTMLStackingLM.java:42)
at
org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.la yout(HTMLAbstractLM.java:136)
at
org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:69)
at
org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.la youtChildren(HTMLStackingLM.java:26)
at
org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layou tChildren(HTMLTableLM.java:112)
at
org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.la yout(HTMLAbstractLM.java:135)
at
org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:69)
at
org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:90)
at
org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:99)
at
org.eclipse.birt.report.engine.api.impl.RenderTask$PageRange Render.render(RenderTask.java:525)
at
org.eclipse.birt.report.engine.api.impl.RenderTask.render(Re nderTask.java:220)
at
org.eclipse.birt.report.service.ReportEngineService.renderRe port(ReportEngineService.java:1461)
at
org.eclipse.birt.report.service.BirtViewerReportService.rend erReport(BirtViewerReportService.java:369)
at
org.eclipse.birt.report.service.actionhandler.BirtRenderRepo rtActionHandler.__execute(BirtRenderReportActionHandler.java :65)
at
org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(AbstractBaseActionHandler.java:90)
at
org.eclipse.birt.report.presentation.aggregation.layout.Fram esetFragment.doService(FramesetFragment.java:222)
at
org.eclipse.birt.report.presentation.aggregation.layout.Fram esetFragment.service(FramesetFragment.java:86)
at
org.eclipse.birt.report.servlet.ViewerServlet.__doGet(Viewer Servlet.java:181)
at
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPost(BirtSoapMessageDispatcherServlet.java:278)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.service(BirtSoapMessageDispatcherServlet.java:122)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
at
org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerF ilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:83)
at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.ja va:40)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter. java:90)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter. java:64)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.ja va:45)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:532)
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.ja va:56)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter. java:53)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:1 58)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:83)
at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.ja va:40)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter. java:90)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter. java:64)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.ja va:45)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter. java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java :290)
at
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleReques t(BaseFilter.java:390)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.ja va:56)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter. java:53)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:1 58)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(A uthenticatorBase.java:433)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin t.java:447)
at java.lang.Thread.run(Thread.java:595)
17-Aug-2009 16:55:56 org.eclipse.birt.report.engine.api.impl.RenderTask
render
SEVERE: An error happened while running the report. Cause:
java.lang.NullPointerException
at
org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.cr eateBackgroundImage(PageArea.java:286)
at
org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.in itialize(PageArea.java:241)
at
org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.cr eateNewPage(RootArea.java:92)
at
org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.in itialize(RootArea.java:83)
at
org.eclipse.birt.report.engine.nLayout.LayoutEngine.setConta iner(LayoutEngine.java:284)
at
org.eclipse.birt.report.engine.nLayout.LayoutEngine._startCo ntainer(LayoutEngine.java:324)
at
org.eclipse.birt.report.engine.nLayout.LayoutEngine.startCon tainer(LayoutEngine.java:278)
at
org.eclipse.birt.report.engine.emitter.ContentEmitterAdapter .startPage(ContentEmitterAdapter.java:65)
at
org.eclipse.birt.report.engine.nLayout.LayoutEngine.startPag e(LayoutEngine.java:446)
at
org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.st artContent(ContentEmitterUtil.java:47)
at
org.eclipse.birt.report.engine.layout.html.buffer.PageNode.s tart(PageNode.java:49)
at
org.eclipse.birt.report.engine.layout.html.buffer.ContainerB ufferNode.start(ContainerBufferNode.java:79)
at
org.eclipse.birt.report.engine.layout.html.buffer.ContainerB ufferNode.start(ContainerBufferNode.java:79)
at
org.eclipse.birt.report.engine.layout.html.buffer.ContainerB ufferNode.flush(ContainerBufferNode.java:48)
at
org.eclipse.birt.report.engine.layout.html.buffer.HTMLPageBu ffer.endRow(HTMLPageBuffer.java:206)
at
org.eclipse.birt.report.engine.layout.html.buffer.HTMLPageBu ffer.endContainer(HTMLPageBuffer.java:140)
at
org.eclipse.birt.report.engine.layout.html.buffer.TableBreak Buffer.endContainer(TableBreakBuffer.java:355)
at
org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.en d(HTMLStackingLM.java:42)
at
org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.la yout(HTMLAbstractLM.java:136)
at
org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:69)
at
org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.la youtChildren(HTMLStackingLM.java:26)
at
org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layou tChildren(HTMLTableLM.java:112)
at
org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.la yout(HTMLAbstractLM.java:135)
at
org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:69)
at
org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:90)
at
org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:99)
at
org.eclipse.birt.report.engine.api.impl.RenderTask$PageRange Render.render(RenderTask.java:525)
at
org.eclipse.birt.report.engine.api.impl.RenderTask.render(Re nderTask.java:220)
at
org.eclipse.birt.report.service.ReportEngineService.renderRe port(ReportEngineService.java:1461)
at
org.eclipse.birt.report.service.BirtViewerReportService.rend erReport(BirtViewerReportService.java:369)
at
org.eclipse.birt.report.service.actionhandler.BirtRenderRepo rtActionHandler.__execute(BirtRenderReportActionHandler.java :65)
at
org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(AbstractBaseActionHandler.java:90)
at
org.eclipse.birt.report.presentation.aggregation.layout.Fram esetFragment.doService(FramesetFragment.java:222)
at
org.eclipse.birt.report.presentation.aggregation.layout.Fram esetFragment.service(FramesetFragment.java:86)
at
org.eclipse.birt.report.servlet.ViewerServlet.__doGet(Viewer Servlet.java:181)
at
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPost(BirtSoapMessageDispatcherServlet.java:278)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.service(BirtSoapMessageDispatcherServlet.java:122)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
at
org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerF ilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:83)
at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.ja va:40)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter. java:90)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter. java:64)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.ja va:45)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:532)
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.ja va:56)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter. java:53)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:1 58)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:83)
at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.ja va:40)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter. java:90)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter. java:64)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.ja va:45)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter. java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java :290)
at
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleReques t(BaseFilter.java:390)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.ja va:56)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter. java:53)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:1 58)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(A uthenticatorBase.java:433)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin t.java:447)
at java.lang.Thread.run(Thread.java:595)


Thanks,
Tero
Re: PPT download from server - error [message #480568 is a reply to message #480556] Mon, 17 August 2009 16:32 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Tero,

Try one of the following.
Put the image in the resource folder and in the beforeFactory add the
following:

reportContext.getDesignHandle().findMasterPage("myMasterPage ").setProperty("backgroundImage",
"yourbackgroundimage.png" );

or

go to the advanced properties on the master page and change the
background image from c:\myimage\... to file://c:\myimage\..

You can also try option 2 with option 1. Instead of setting the image
to a file in your resource set it to a url http://.. or file://

Jason

Tero wrote:
> Jason Weathersby wrote:
>
>> Tero,
>
>> Are you using JBoss integration? What version of BIRT is this? I
>> remember there being an issue with background images in previous
>> versions of BIRT. Can you try to put an image in the resource folder
>> and then just putting the image name in the background?
>
>> Jason
>
> Hello Jason,
>
> I am not sure if I am using the JBoss integration... at least not in an
> active way. I included it while installing/configuring Eclipse.
>
> Version: 2.5.0.v20090611-7m9a4FTy215N3qZ5UkRE
> Build id: v20090617-0630
>
>> ... in the resource folder ...
> You mean in webapps/
> -RepContainer/
> --reps/
> ---MYRep.rptdesign
> --resources/
> ---backroung.png
> ?
>
> I tried that and the background is not showing while displaying and
> again the error while downloading:
>
> 17-Aug-2009 16:55:55
> org.eclipse.birt.report.engine.nLayout.area.impl.PageArea
> createBackgroundImage
> WARNING: no protocol: backroung.png
> java.net.MalformedURLException: no protocol: backroung.png
> at java.net.URL.<init>(URL.java:567)
> at java.net.URL.<init>(URL.java:464)
> at java.net.URL.<init>(URL.java:413)
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.cr eateBackgroundImage(PageArea.java:266)
>
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.in itialize(PageArea.java:241)
>
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.cr eateNewPage(RootArea.java:92)
>
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.in itialize(RootArea.java:83)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine.setConta iner(LayoutEngine.java:284)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine._startCo ntainer(LayoutEngine.java:324)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine.startCon tainer(LayoutEngine.java:278)
>
> at
> org.eclipse.birt.report.engine.emitter.ContentEmitterAdapter .startPage(ContentEmitterAdapter.java:65)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine.startPag e(LayoutEngine.java:446)
>
> at
> org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.st artContent(ContentEmitterUtil.java:47)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.PageNode.s tart(PageNode.java:49)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.ContainerB ufferNode.start(ContainerBufferNode.java:79)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.ContainerB ufferNode.start(ContainerBufferNode.java:79)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.ContainerB ufferNode.flush(ContainerBufferNode.java:48)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.HTMLPageBu ffer.endRow(HTMLPageBuffer.java:206)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.HTMLPageBu ffer.endContainer(HTMLPageBuffer.java:140)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.TableBreak Buffer.endContainer(TableBreakBuffer.java:355)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.en d(HTMLStackingLM.java:42)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.la yout(HTMLAbstractLM.java:136)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:69)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.la youtChildren(HTMLStackingLM.java:26)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layou tChildren(HTMLTableLM.java:112)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.la yout(HTMLAbstractLM.java:135)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:69)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:90)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:99)
>
> at
> org.eclipse.birt.report.engine.api.impl.RenderTask$PageRange Render.render(RenderTask.java:525)
>
> at
> org.eclipse.birt.report.engine.api.impl.RenderTask.render(Re nderTask.java:220)
>
> at
> org.eclipse.birt.report.service.ReportEngineService.renderRe port(ReportEngineService.java:1461)
>
> at
> org.eclipse.birt.report.service.BirtViewerReportService.rend erReport(BirtViewerReportService.java:369)
>
> at
> org.eclipse.birt.report.service.actionhandler.BirtRenderRepo rtActionHandler.__execute(BirtRenderReportActionHandler.java :65)
>
> at
> org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(AbstractBaseActionHandler.java:90)
>
> at
> org.eclipse.birt.report.presentation.aggregation.layout.Fram esetFragment.doService(FramesetFragment.java:222)
>
> at
> org.eclipse.birt.report.presentation.aggregation.layout.Fram esetFragment.service(FramesetFragment.java:86)
>
> at
> org.eclipse.birt.report.servlet.ViewerServlet.__doGet(Viewer Servlet.java:181)
>
> at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPost(BirtSoapMessageDispatcherServlet.java:278)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> at
> org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.service(BirtSoapMessageDispatcherServlet.java:122)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:290)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
>
> at
> org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerF ilter.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
>
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:83)
>
> at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.ja va:40)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter. java:90)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter. java:64)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.ja va:45)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:532)
> at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.ja va:56)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter. java:53)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:1 58)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
>
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:83)
>
> at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.ja va:40)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter. java:90)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter. java:64)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.ja va:45)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at
> org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter. java:178)
> at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java :290)
> at
> org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleReques t(BaseFilter.java:390)
>
> at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
> at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.ja va:56)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter. java:53)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:1 58)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:233)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
>
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(A uthenticatorBase.java:433)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:128)
>
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:102)
>
> at
> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:109)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:286)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:845)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.process(Http11Protocol.java:583)
>
> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin t.java:447)
> at java.lang.Thread.run(Thread.java:595)
> 17-Aug-2009 16:55:56 org.eclipse.birt.report.engine.api.impl.RenderTask
> render
> SEVERE: An error happened while running the report. Cause:
> java.lang.NullPointerException
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.cr eateBackgroundImage(PageArea.java:286)
>
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.in itialize(PageArea.java:241)
>
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.cr eateNewPage(RootArea.java:92)
>
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.in itialize(RootArea.java:83)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine.setConta iner(LayoutEngine.java:284)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine._startCo ntainer(LayoutEngine.java:324)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine.startCon tainer(LayoutEngine.java:278)
>
> at
> org.eclipse.birt.report.engine.emitter.ContentEmitterAdapter .startPage(ContentEmitterAdapter.java:65)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine.startPag e(LayoutEngine.java:446)
>
> at
> org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.st artContent(ContentEmitterUtil.java:47)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.PageNode.s tart(PageNode.java:49)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.ContainerB ufferNode.start(ContainerBufferNode.java:79)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.ContainerB ufferNode.start(ContainerBufferNode.java:79)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.ContainerB ufferNode.flush(ContainerBufferNode.java:48)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.HTMLPageBu ffer.endRow(HTMLPageBuffer.java:206)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.HTMLPageBu ffer.endContainer(HTMLPageBuffer.java:140)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.TableBreak Buffer.endContainer(TableBreakBuffer.java:355)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.en d(HTMLStackingLM.java:42)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.la yout(HTMLAbstractLM.java:136)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:69)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.la youtChildren(HTMLStackingLM.java:26)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layou tChildren(HTMLTableLM.java:112)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.la yout(HTMLAbstractLM.java:135)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:69)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:90)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:99)
>
> at
> org.eclipse.birt.report.engine.api.impl.RenderTask$PageRange Render.render(RenderTask.java:525)
>
> at
> org.eclipse.birt.report.engine.api.impl.RenderTask.render(Re nderTask.java:220)
>
> at
> org.eclipse.birt.report.service.ReportEngineService.renderRe port(ReportEngineService.java:1461)
>
> at
> org.eclipse.birt.report.service.BirtViewerReportService.rend erReport(BirtViewerReportService.java:369)
>
> at
> org.eclipse.birt.report.service.actionhandler.BirtRenderRepo rtActionHandler.__execute(BirtRenderReportActionHandler.java :65)
>
> at
> org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(AbstractBaseActionHandler.java:90)
>
> at
> org.eclipse.birt.report.presentation.aggregation.layout.Fram esetFragment.doService(FramesetFragment.java:222)
>
> at
> org.eclipse.birt.report.presentation.aggregation.layout.Fram esetFragment.service(FramesetFragment.java:86)
>
> at
> org.eclipse.birt.report.servlet.ViewerServlet.__doGet(Viewer Servlet.java:181)
>
> at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPost(BirtSoapMessageDispatcherServlet.java:278)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> at
> org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.service(BirtSoapMessageDispatcherServlet.java:122)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:290)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
>
> at
> org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerF ilter.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
>
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:83)
>
> at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.ja va:40)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter. java:90)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter. java:64)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.ja va:45)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:532)
> at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.ja va:56)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter. java:53)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:1 58)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
>
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:83)
>
> at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.ja va:40)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter. java:90)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter. java:64)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.ja va:45)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at
> org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter. java:178)
> at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java :290)
> at
> org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleReques t(BaseFilter.java:390)
>
> at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
> at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.ja va:56)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter. java:53)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:1 58)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:233)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
>
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(A uthenticatorBase.java:433)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:128)
>
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:102)
>
> at
> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:109)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:286)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:845)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.process(Http11Protocol.java:583)
>
> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin t.java:447)
> at java.lang.Thread.run(Thread.java:595)
>
>
> Thanks,
> Tero
>
Re: PPT download from server - error [message #480842 is a reply to message #480568] Tue, 18 August 2009 16:14 Go to previous messageGo to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
Jason Weathersby wrote:

> Tero,

> Try one of the following.
> Put the image in the resource folder and in the beforeFactory add the
> following:

>
reportContext.getDesignHandle().findMasterPage("myMasterPage ").setProperty("backgroundImage",
> "yourbackgroundimage.png" );

> or

> go to the advanced properties on the master page and change the
> background image from c:myimage... to file://c:myimage..

> You can also try option 2 with option 1. Instead of setting the image
> to a file in your resource set it to a url http://.. or file://

> Jason

Thanks Jason,

That did work (option 1). For the records: the first attempts kept
bringing the same error message, therefore I search within the "XML
Source" view for "background.png" and found an old style I did in the past
using that file as background and even if that style was not in use (!)
only after deleting it I was able to get the report running (and been able
to download it as a PPT ! great).

That's for the background picture in the master page.
For the other pictures I am using throughout the report the "relative
path" resources/picname.png which is not recognized by the "preview" tab
and that's the only drawback here (any way to solve this?).
Only within a table where I try to use the relative path for a background
for the header this is not working (not in the preview nor in the deployed
version and again causing that "java.net.MalformedURLException: no
protocol: resources/background.png" error when trying to download)

Regards,
Tero
Re: PPT download from server - error [message #481135 is a reply to message #480842] Wed, 19 August 2009 17:36 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Tero,

Can you post an example report with the problem? Also check your
preferences and see if you have set the resource folder for your design
environment.

Jason

tero wrote:
> Jason Weathersby wrote:
>
>> Tero,
>
>> Try one of the following.
>> Put the image in the resource folder and in the beforeFactory add the
>> following:
>
>>
> reportContext.getDesignHandle().findMasterPage("myMasterPage ").setProperty("backgroundImage",
>
>> "yourbackgroundimage.png" );
>
>> or
>
>> go to the advanced properties on the master page and change the
>> background image from c:myimage... to file://c:myimage..
>
>> You can also try option 2 with option 1. Instead of setting the image
>> to a file in your resource set it to a url http://.. or file://
>
>> Jason
>
> Thanks Jason,
>
> That did work (option 1). For the records: the first attempts kept
> bringing the same error message, therefore I search within the "XML
> Source" view for "background.png" and found an old style I did in the
> past using that file as background and even if that style was not in use
> (!) only after deleting it I was able to get the report running (and
> been able to download it as a PPT ! great).
>
> That's for the background picture in the master page. For the other
> pictures I am using throughout the report the "relative path"
> resources/picname.png which is not recognized by the "preview" tab and
> that's the only drawback here (any way to solve this?). Only within a
> table where I try to use the relative path for a background for the
> header this is not working (not in the preview nor in the deployed
> version and again causing that "java.net.MalformedURLException: no
> protocol: resources/background.png" error when trying to download)
>
> Regards,
> Tero
>
Re: PPT download from server - error [message #481270 is a reply to message #481135] Thu, 20 August 2009 09:50 Go to previous messageGo to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
Jason Weathersby wrote:

> Tero,

> Can you post an example report with the problem? Also check your
> preferences and see if you have set the resource folder for your design
> environment.

> Jason
____________________________________________________________ __________

Hi Jason,

the resource folder is: <Current Project Folder>

I guess this get complicated because the report is living in one project
and the pages displaying it in another?

I will build an (small) example report with the issue above and post it
here.

Thanks!
Tero
Re: PPT download from server - error [message #481338 is a reply to message #481270] Thu, 20 August 2009 14:37 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Thanks Tero. It should not be complicated. If you create a resources
directory in the project and set the preference to point to it, you
should be able to just specify the name. Then in deployment set the
resource folder (relative) in the web.xml to point to a directory you
create under the webviewer.

Jason

tero wrote:
> Jason Weathersby wrote:
>
>> Tero,
>
>> Can you post an example report with the problem? Also check your
>> preferences and see if you have set the resource folder for your
>> design environment.
>
>> Jason
> ____________________________________________________________ __________
>
> Hi Jason,
>
> the resource folder is: <Current Project Folder>
>
> I guess this get complicated because the report is living in one project
> and the pages displaying it in another?
>
> I will build an (small) example report with the issue above and post it
> here.
>
> Thanks!
> Tero
>
Previous Topic:How to display data filtered by Datetime
Next Topic:excel emitter
Goto Forum:
  


Current Time: Tue Apr 23 11:02:28 GMT 2024

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

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

Back to the top