Problem ession timeout or no document available

lpurbalpurba Junior Member
edited December 31, 1969 in Designing Analytics Reports
Hi all,



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).



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 http://www.eclipse.org/birt/phoenix/examples/solution/ProductCatalog.rptdesign and still the image is missing. But when I tried the same file on my local machine, it works fine, the image is there.



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.



Below are the exceptions that I am getting by clicking on TOC:

org.eclipse.birt.report.service.actionhandler.BirtGetTOCActionHandler.__checkDocumentExists(Unknown Source)

org.eclipse.birt.report.service.actionhandler.AbstractGetTOCActionHandler.prepareParameters(Unknown Source)

org.eclipse.birt.report.service.actionhandler.AbstractGetTOCActionHandler.__execute(Unknown Source)

org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(Unknown Source)

org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor.__executeAction(Unknown Source)

org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.executeAction(Unknown Source)

org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleGetToc(Unknown Source)

sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

java.lang.reflect.Method.invoke(Method.java:324)

org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.process(Unknown Source)

org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUpdatedObjects(Unknown Source)

sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

java.lang.reflect.Method.invoke(Method.java:324)

org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)

org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)

org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)

org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)

org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)

org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)

org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(Unknown Source)

javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)

java.lang.Thread.run(Thread.java:534)



Any idea? Should I restart the server, not only tomcat?



Thanks!

-Laurent

Comments

  • lpurbalpurba Junior Member
    edited December 31, 1969
    Hi all,
    Does anybody any pointers about this issue?
    Thanks!
    -Laurent
  • lpurbalpurba Junior Member
    edited December 31, 1969
    Guys, any idea?

    Thanks!
    -Laurent
  • VirgilVirgil Administrator EM admin
    edited December 31, 1969
    Hi Laurent,



    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.



    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.



    More information about headless mode can be found here: http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/

    Virgil Dodson
    OpenText Analytics Developer Community
    https://forums.opentext.com/forums/categories/analytics

  • hewbhewb Junior Member
    edited December 31, 1969
    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
  • lpurbalpurba Junior Member
    edited December 31, 1969
    Thanks for your replies.
    I will try as both of you suggested, and hopefully come out with something.

    -Laurent
  • lpurbalpurba Junior Member
    edited December 31, 1969
    Hi all,



    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-) )



    So I added these after enable proxy module in my apache:

    ProxyPass /report/ http://192.168.14.161:8080/

    ProxyPassReverse /report/ http://192.168.14.161:8080/

    ProxyPassReverseCookiePath / /report/



    The "Session timeout..." exception is gone, but the image is still not showing up on the report.



    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.



    Thanks!

    -Laurent
  • hewbhewb Junior Member
    edited December 31, 1969
    Hi, Laurent:



    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.



    You may also want to try the iPortal for BIRT report. http://www.birt-exchange.com/modules/wfdownloads/staticdls_index.php



    iPortal has been tested on different deployment configurations, including reverse proxy configuration.



    -wenbin
  • lpurbalpurba Junior Member
    edited December 31, 1969
    Hi wenbin,



    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.



    http://192.168.14.161:8080/WebViewerExample/birt_161.jpg

    http://localhost/report/birt_161.jpg



    The above 2 links show the image.



    But when I have that image in the report, for some reason it didn't show up.



    Any idea?



    Thanks!

    -Laurent





    Hi, Laurent:



    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.



    You may also want to try the iPortal for BIRT report. http://www.birt-exchange.com/modules/wfdownloads/staticdls_index.php



    iPortal has been tested on different deployment configurations, including reverse proxy configuration.



    -wenbin

Sign In or Register to comment.