负载测试vaadin 7.0.4返回错误否UIProvider [英] Load test vaadin 7.0.4 return error No UIProvider
问题描述
我想对5000个用户的vaadin应用进行负载测试.我发现了这个 https://vaadin.com/wiki/-//wiki/Main/JMeter%20Testing 并尝试与单个用户进行模拟.通过最简单的登录和注销步骤,我在播放期间遇到此错误.
I would like to load test a vaadin app with 5000 users. I found this https://vaadin.com/wiki/-/wiki/Main/JMeter%20Testing and trying to emulate with a single user. With the simplest step of Login and Logout, i encounter this error during playback.
没有UIProvider返回请求的UI
No UIProvider returned a UI for the request
您知道此错误涉及什么或如何解决该错误吗?
Any idea what is this error regards or how to troubleshoot it?
推荐答案
看起来jMeter示例是针对Vaadin 6的.Vaadin 7重构了servlet类,而Application类现在是UI类.因此,而不是像下面这样的web.xml的部分:
It looks like that jMeter example is for Vaadin 6. Vaadin 7 refactored the servlet class, and the Application class is now the UI class. So instead of that section of the web.xml looking like this:
<servlet>
<servlet-name>FeatureBrowser</servlet-name>
<servlet-class>com.vaadin.terminal.gwt.server.ApplicationServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>com.vaadin.demo.featurebrowser.FeatureBrowser</param-value>
</init-param>
<init-param>
<param-name>disable-xsrf-protection</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
它看起来像这样:
<servlet>
<servlet-name>FeatureBrowser</servlet-name>
<servlet-class>com.vaadin.server.VaadinServlet</servlet-class>
<init-param>
<param-name>UI</param-name>
<param-value>com.vaadin.demo.featurebrowser.FeatureBrowserUI</param-value>
</init-param>
<init-param>
<param-name>disable-xsrf-protection</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
假定FeatureBrowser类重命名为FeatureBrowserUI,并且将UI类子类化,并进行了Vaadin 7引入的所有其他小改动,如迁移指南中所述:
Assuming the FeatureBrowser class is renamed to FeatureBrowserUI, and subclasses the UI class, and all the other little changes Vaadin 7 introduced, as explained in the migration guide: link.
这篇关于负载测试vaadin 7.0.4返回错误否UIProvider的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!