请求参数被丢弃
我们的应用程序有一个奇怪的问题。一些数据在应用程序 UI 中出现和消失。 UI是使用struts、hibernate、Spring开发的。这是一个偶发事件,不可能总是重现。下次刷新页面时会取回数据。
我的意思是,当我们登录到 Web 应用程序时,记录列表会出现在一个实例上。有时,即使没有人修改或更新信息,这些记录也不存在
以下是环境组件: 1.Oracle 11g 2.Oracle JDBC驱动程序10.2.0.2.0 3. 雄猫5.0.28 4.Linux:2.6.9-100.Elhugemem(i386) 5. JVM 1.5.0_05-b05
此外,我们在 Oracle 中使用相同的表空间来托管所有用户,而且我们有很多用户。
关于这一点的一个新信息。我已将其确定为请求级别。我们在request&中设置参数;不知何故,一些请求参数被丢弃,所有这些都是间歇性发生的。
还有其他人有同样的问题吗?如果是?解决了吗以及解决方案是什么。
WE have a strange issue with our application. Some of the data appears and disappears from the application UI. The UI is developed using struts, hibernate , Spring. This is a sporadic event and can't be always reproduced. The next refresh of the page gets back the data.
I mean when we log into the web application the list of records are present on one instance. Sometimes these records are not present even when no one has modified or updated the information
The following are the environment components:
1. Oracle 11g
2. Oracle JDBC Driver 10.2.0.2.0
3. Tomcat 5.0.28
4. Linux: 2.6.9-100.Elhugemem (i386)
5. JVM 1.5.0_05-b05
Also we are using the same tablespace in Oracle to to host all users and we have many of them.
One new information on this. I have nailed it down to the request level. We set the parameters in request & somehow some of the request parameters are getting dropped, and all this happens intermittently.
Did anyone else have the same issue? If Yes? Was it resolved and what was the solution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我从未见过甚至听说过 Tomcat 或 Struts 删除请求参数,因此也许您认为删除的那些参数一开始就不会发送到服务器。
如果是,那么 Struts 可能不会将它们带入您的操作中。您应该检查 ActionForm(如果您使用 Struts 1)或操作(如果您使用 Struts 2)中参数的定义。一个简单的字母大小写差异(假设您的班级中有“getTitle/setTitle”,并且表单中有“Title”而不是“title”)会导致问题。
I never seen or even heard of Tomcat or Struts dropping request parameters, so maybe those parameters you think are dropped are never sent to the server in the first place.
If they are, than maybe Struts does not bring them in your action. You should check the definitions of your parameters in the ActionForm ( if you use Struts 1) or in the action (if you use Struts 2). A simple letter case difference ( say you have 'getTitle/setTitle' in your class and 'Title' instead of 'title' in your form ) will lead to problems.