Problem ession timeout or no document available

Options
lpurba
edited February 11, 2022 in Analytics #1
Hi all,<br />
<br />
I have a question regarding the image. Like 2 weeks ago, I have created a report with an image on the top of the report, and everything worked fine. I developed this report on the server (FreeBSD) not on my local machine (Windows XP).<br />
<br />
Just now, I tried to open the same report, but the report does not display the image. And then I tried using the sample from <a class='bbc_url' href='http://www.eclipse.org/birt/phoenix/examples/solution/ProductCatalog.rptdesign'>http://www.eclipse.org/birt/phoenix/examples/solution/ProductCatalog.rptdesign</a&gt; and still the image is missing. But when I tried the same file on my local machine, it works fine, the image is there.<br />
<br />
And also, when I clicked on TOC button, it displayed an exception (session timeout or no document available). I tried to restart the tomcat server, but it still gives me the same exception, and no image is displayed.<br />
<br />
Below are the exceptions that I am getting by clicking on TOC:<br />
org.eclipse.birt.report.service.actionhandler.BirtGetTOCActionHandler.__checkDocumentExists(Unknown Source)<br />
org.eclipse.birt.report.service.actionhandler.AbstractGetTOCActionHandler.prepareParameters(Unknown Source)<br />
org.eclipse.birt.report.service.actionhandler.AbstractGetTOCActionHandler.__execute(Unknown Source)<br />
org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(Unknown Source)<br />
org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor.__executeAction(Unknown Source)<br />
org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.executeAction(Unknown Source)<br />
org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleGetToc(Unknown Source)<br />
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />
java.lang.reflect.Method.invoke(Method.java:324)<br />
org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.process(Unknown Source)<br />
org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUpdatedObjects(Unknown Source)<br />
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />
java.lang.reflect.Method.invoke(Method.java:324)<br />
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)<br />
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)<br />
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)<br />
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)<br />
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)<br />
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)<br />
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)<br />
org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)<br />
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)<br />
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(Unknown Source)<br />
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)<br />
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)<br />
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<br />
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)<br />
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)<br />
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)<br />
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)<br />
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)<br />
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)<br />
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)<br />
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)<br />
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)<br />
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)<br />
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)<br />
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)<br />
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)<br />
java.lang.Thread.run(Thread.java:534)<br />
<br />
Any idea? Should I restart the server, not only tomcat?<br />
<br />
Thanks!<br />
-Laurent

Comments

  • lpurba
    edited December 31, 1969 #2
    Options
    Hi all,
    Does anybody any pointers about this issue?
    Thanks!
    -Laurent
  • lpurba
    edited December 31, 1969 #3
    Options
    Guys, any idea?

    Thanks!
    -Laurent
  • Virgil Dodson
    Virgil Dodson E admin
    edited December 31, 1969 #4
    Options
    Hi Laurent,<br />
    <br />
    Are you getting any error messages? There are several ways of putting images into a BIRT report using URLs, from the file system, from the BIRT resource folder, and by embedding them. The example you referenced below has the image embedded which would be the least likely to cause problems finding the image.<br />
    <br />
    Is it possible that this is a headless server with no display adapter available? If so, you might try adding "-Djava.awt.headless=true" as a JVM argument or as part of the server configuration script. <br />
    <br />
    More information about headless mode can be found here: <a class='bbc_url' href='http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/'>http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/</a&gt;
    Warning No formatter is installed for the format ipb
  • hewb
    edited December 31, 1969 #5
    Options
    Hi, Laurent:

    BIRT designer has not been tested on FreeBSD server. From the error message, it shows that BIRT viewer can't find the generated document that is passed through http session. (the missing image may have the same cause) This seems to me an issue in tomcat on FREEBSD server. Can you please check if you can run other web apps that requires session support on the tomcat/FreeBSD platform? If yes, please file a bug for that.

    thanks,
    wenbin
  • lpurba
    edited December 31, 1969 #6
    Options
    Thanks for your replies.
    I will try as both of you suggested, and hopefully come out with something.

    -Laurent
  • lpurba
    edited December 31, 1969 #7
    Options
    Hi all,<br />
    <br />
    Since I did not mention in my previous thread that I was developing this report using reverse proxy (Apache -> Tomcat), I found the solution for this problem (session timeout). (sorry about that 8-) )<br />
    <br />
    So I added these after enable proxy module in my apache:<br />
    ProxyPass /report/ <a class='bbc_url' href='http://192.168.14.161:8080/'>http://192.168.14.161:8080/</a><br />
    ProxyPassReverse /report/ <a class='bbc_url' href='http://192.168.14.161:8080/'>http://192.168.14.161:8080/</a><br />
    ProxyPassReverseCookiePath / /report/<br />
    <br />
    The "Session timeout..." exception is gone, but the image is still not showing up on the report.<br />
    <br />
    I don't know if this is related to BIRT or not, but if anybody had similar issue and was able to figure it out, I'd appreciate if you could share it.<br />
    <br />
    Thanks!<br />
    -Laurent
  • hewb
    edited December 31, 1969 #8
    Options
    Hi, Laurent:<br />
    <br />
    We didn't test the sample BIRT viewer on a reverse proxy configuration. One quick way to check why the image link is broken is to type the image URL in browser to see if the reverse proxy can direct the request correctly.<br />
    <br />
    You may also want to try the iPortal for BIRT report. <a class='bbc_url' href='http://www.birt-exchange.com/modules/wfdownloads/staticdls_index.php'>http://www.birt-exchange.com/modules/wfdownloads/staticdls_index.php</a><br />
    <br />
    iPortal has been tested on different deployment configurations, including reverse proxy configuration. <br />
    <br />
    -wenbin
  • lpurba
    edited December 31, 1969 #9
    Options
    Hi wenbin,<br />
    <br />
    I did as you told me by typing the image URL in browser too see if the reverser proxy can direct the request, and I did work.<br />
    <br />
    <a class='bbc_url' href='http://192.168.14.161:8080/WebViewerExample/birt_161.jpg'>http://192.168.14.161:8080/WebViewerExample/birt_161.jpg</a><br />
    <a class='bbc_url' href='http://localhost/report/birt_161.jpg'>http://localhost/report/birt_161.jpg</a><br />
    <br />
    The above 2 links show the image.<br />
    <br />
    But when I have that image in the report, for some reason it didn't show up.<br />
    <br />
    Any idea?<br />
    <br />
    Thanks!<br />
    -Laurent<br />
    <br />
    <br />
    <blockquote class='ipsBlockquote' data-author="hewb"><p>Hi, Laurent:<br />
    <br />
    We didn't test the sample BIRT viewer on a reverse proxy configuration. One quick way to check why the image link is broken is to type the image URL in browser to see if the reverse proxy can direct the request correctly.<br />
    <br />
    You may also want to try the iPortal for BIRT report. <a class='bbc_url' href='http://www.birt-exchange.com/modules/wfdownloads/staticdls_index.php'>http://www.birt-exchange.com/modules/wfdownloads/staticdls_index.php</a><br />
    <br />
    iPortal has been tested on different deployment configurations, including reverse proxy configuration. <br />
    <br />
    -wenbin</p></blockquote>