Tomcat 7 的查看会话不可用或已过期
我在 Apache Tomcat 7 中安装了 BIRT Viewer,但在应用程序上运行报告时出现此错误:
java.lang.IllegalStateException: The viewing session is not available or has expired
我在另一台 PC 上执行了相同的步骤,一切顺利。
我读了很多讨论这个问题的帖子,但是这两种解决方案都没有解决问题。 主要的一个是 这个。
I installed the BIRT Viewer in Apache Tomcat 7, but I have this error when running a report on the application:
java.lang.IllegalStateException: The viewing session is not available or has expired
I have made same steps in another PC and everything went well.
I read many posts that talk about it, but neither of the solutions have resolved the problem.
The main one was this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我遇到了这个问题,但我的问题是报告的 url 路径,看:
我的 iframe:
当 iframe 在浏览器中呈现时,url 是:
IP 后面有双斜杠,这就是问题,当我修复它时(如你可以在下面看到)它有效!
I had this issue but my problem was the url-path of report, look:
My Iframe:
When the iframe was rendered in the browser the url was:
there is double slash after IP, this was the problem, when I fixed it (as you can see below) it worked!!
虽然应用程序在 Firefox 和 Chrome 中运行良好,但仅当在 iframe 中打开报表且仅当使用框架集时,我才在 IE 浏览器中遇到相同的错误。
有两种方法可以解决此问题:
在 iframe 中打开报告之前,对某些测试报告调用 Ajax 函数。
例如:
我必须选择第二个选项,因为在我的情况下,我不能要求我的用户降低安全性或信任我们的网站。
Though application worked fine in Firefox and Chrome, I have experienced same error in IE browser only when report is opened within iframe and only when frameset is used.
There are two ways to fix this:
Before opening report in iframe, call Ajax function to some test report.
For ex:
I have to opt for second option, because in my situation I cannot ask my users to reduce security or trust our site.