简体   繁体   English

EC_GENERIC_REDIRECTVIEW不适用于仅在生产服务器上且加载30秒后

[英]EC_GENERIC_REDIRECTVIEW Doesn't works only on production server and after a 30sec load

I've a case I whould like to understand. 我有一个我想了解的案例。 Here is two different way to redirect to a page after a Command job: (On WCS7) 这是在Command作业后重定向到页面的两种不同方法:(在WCS7上)

First: 第一:

TypedProperty rspProp = new TypedProperty();
rspProp.put(ECConstants.EC_VIEWTASKNAME, ECConstants.EC_GENERIC_REDIRECTVIEW);
rspProp.put(ECConstants.EC_URL, "AddressBookForm");
setResponseProperties(rspProp);

Second: 第二:

TypedProperty rspProp = new TypedProperty();
rspProp.put(ECConstants.EC_VIEWTASKNAME, "AddressBookForm");
setResponseProperties(rspProp);

If the treatment of the command take less than 30 seconds, both solution works. 如果命令的处理时间少于30秒,则两种解决方案均有效。 BUT if the command takes more than 30 seconds, the first way display a "Connection reset" browser error page (same on FF, IE, Chrome, ...). 但是,如果该命令花费的时间超过30秒,则第一种方法将显示“连接重置”浏览器错误页面(与FF,IE,Chrome等相同)。

I've try to reproduce on my local toolkit, but even if the process take more than 30sec, I can't reproduce. 我尝试在本地工具包上进行复制,但是即使该过程耗时超过30秒,也无法进行复制。 (I've try until 20min :/ ). (我一直尝试到20分钟:/)。

I would like to understand why the execution time can broke the RedirectView? 我想了解为什么执行时间会中断RedirectView? And why it's only happening on a live server? 以及为什么它仅在实时服务器上发生?

Any ideas? 有任何想法吗? Thanks. 谢谢。

Not sure why the execution of RedirectView is breaking in the case of prod servers only. 不知道为什么仅在产品服务器的情况下RedirectView的执行会中断。 But as you said above Redirect flow will take more time than normal forward view. 但是正如您在上面说的那样,重定向流比正常的前向视图需要更多的时间。

PFB url of same topic. 相同主题的PFB网址。 Let me know whether this helped you in resolving your problem, 让我知道这是否有助于您解决问题,

http://deepakpadmakumar.blogspot.com/2012/05/forward-view-and-redirect-view-in-wcs.html http://deepakpadmakumar.blogspot.com/2012/05/forward-view-and-redirect-view-in-wcs.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Spring 4的通用类自动装配在测试中有效,当部署到服务器时无效 - Spring 4 autowiring of generic classes works in test, doesn't work when deployed to server AsyncTask(update)仅在首次打开应用程序时有效,但5秒钟后不会更新 - AsyncTask(update) works only when app get opened first time, but it is not updating after 5 sec RedirectView之后的Spring处理FlashAttributes - Spring Handle FlashAttributes after RedirectView 通用合并排序适用于整数,但不能以字符串结尾? - Generic Mergesort Works on Integers but doesn't finish with strings? 来自 Spring MVC 的 RedirectView 不起作用 - RedirectView from Spring MVC dont works 在不到30秒的时间内处理来自FTP服务器的100 MB +文件? - Processing 100 MB+ files from FTP server in less than 30 sec? 网站上用于Java的php exec()不起作用,但在服务器终端中起作用 - php exec() for java on website doesn't work but works in server terminal Java套接字仅适用于一个客户端,在服务器接受后被阻止 - Java socket works only for one client, blocked after server accept EC2实例上的Web应用程序似乎未加载persistence.xml - Web app on EC2 instance doesn't seem to load persistence.xml 适用于开发服务器,但不适用于Google App Engine(会话) - Works on development server but it doesn't on Google App Engine (Sessions)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM