簡體   English   中英

查看會話不可用或已隨Tomcat 7過期

[英]The viewing session is not available or has expired with Tomcat 7

我在Apache Tomcat 7中安裝了BIRT Viewer,但是在應用程序上運行報告時出現此錯誤:

java.lang.IllegalStateException: The viewing session is not available or has expired

我在另一台PC上執行了相同的步驟,並且一切順利。

我讀了很多關於它的文章,但是沒有一個解決方案可以解決問題。 主要的是這個

盡管該應用程序在Firefox和Chrome中運行良好,但僅當在iframe中打開報表並且僅在使用框架集時,我才在IE瀏覽器中遇到了相同的錯誤。

有兩種方法可以解決這個問題:

  1. 將IE中的安全性降低到較低水平或將站點添加到受信任的站點。
  2. 在iframe中打開報告之前,請對某些測試報告調用Ajax函數。

    例如:

     ajaxRequest.open("GET","http://localhost:8080/birt/frameset?__report=test.rptdesign"); 

我必須選擇第二種選擇,因為在我的情況下,我不能要求用戶降低安全性或信任我們的網站。

我遇到了這個問題,但我的問題是報告的網址路徑,請看:

我的iframe:

<iframe src="#{var.ipserver}/birt/frameset?__report=report/report/balance/balance_card.rptdesign" width="900" height="600"/> 

在瀏覽器中呈現iframe時,網址為:

<iframe src="http://192.168.0.111//birt/frameset?__report=report/balance/balance_card.rptdesign" width="900" height="600"></iframe>

IP后有雙斜杠,這就是問題所在,當我修復它時(如下所示),它起作用了!!

  <iframe src="#{var.ipserver}birt/frameset?__report=report/report/balance/balance_card.rptdesign" width="900" height="600"/> 

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM