Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » No polling with ProgressMonitorDialog and deployed application(Applications deployed to Tomcat may freeze using ProgressMonitorDialog)
No polling with ProgressMonitorDialog and deployed application [message #1693883] Wed, 29 April 2015 06:36 Go to next message
Frank Jakop is currently offline Frank JakopFriend
Messages: 8
Registered: July 2012
Junior Member
We just migrated to RAP 2.3 and encountered a very strange behaviour with applications deployed to Tomcat.

When we invoke a Runnable with ProgressMonitorDialog (fork=true) we normally see GET-requests from the client to check if there was a change in the progress and then update the UI (see from-eclipse-with-m2e-wtp.png). This works fine using Tomcat from within Eclipse via m2e-wtp.

When we deploy the very same application in a standalone Tomcat (same version, same JRE) and start the identical Runnable, the application freezes, no progress is displayed. Looking at the requests, we see that the GET-requests are missing. (see deployed-in-tomcat.png)

We also notice a different origin of the according POST-requests, the working one comes from rap-client.js, the erroneous from DropDown.js, but that might be because we started the deployed variant with -Dorg.eclipse.rap.rwt.developmentMode=true for the sake of non-minified javascript.

When the ProgressMonitorDialog freezes, we can trigger a POST by moving the dialog with the mouse. Let's say the Runnable would call ProgressMonitor.worked() 3 times, we had to move the dialog three times for watching the progress bar increase and the dialog to finish.

Has anyone a clue what's going on or where to investigate further?
Re: No polling with ProgressMonitorDialog and deployed application [message #1693892 is a reply to message #1693883] Wed, 29 April 2015 07:39 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
this is interesting. We know about only one scenario where the
ServerPush breaks:
425574: ServerPush sometimes stops working
https://bugs.eclipse.org/bugs/show_bug.cgi?id=425574
but obvious this is not the case with your application. Do you have any
proxies, servlet filters or other differences in the environments?
Regards,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: No polling with ProgressMonitorDialog and deployed application [message #1693895 is a reply to message #1693892] Wed, 29 April 2015 08:28 Go to previous messageGo to next message
Frank Jakop is currently offline Frank JakopFriend
Messages: 8
Registered: July 2012
Junior Member
Hi Ivan,
we have no proxies in between as this is only on localhost.
I compared the server.xml, context.xml and made them equal despite the only differences was session persistence (aka <Manager pathname="" />) and the encoding of the default web.xml.
Since we're using the same web.xml in the deployed application as in the eclipse'd version there are no differences, but fyi here it is:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
	version="3.1">
	<!-- optional: Text in der Titelleiste des Browsers -->
	<display-name>tolina Webanwendung</display-name>

	<context-param>
		<param-name>log4jConfigLocation</param-name>
		<param-value>/WEB-INF/log4j_server.properties</param-value>
	</context-param>

	<context-param>
		<param-name>contextClass</param-name>
		<param-value>org.springframework.web.context.support.AnnotationConfigWebApplicationContext
		</param-value>
	</context-param>
	<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>
			de.tolina.REFERENZKURZNAMEKLEIN.rwt.initialisierung.spring
		</param-value>
	</context-param>

	<context-param>
		<param-name>org.eclipse.rap.applicationConfiguration</param-name>
		<param-value>de.tolina.REFERENZKURZNAMEKLEIN.rwt.REFERENZKURZNAMEGROSSApplicationConfiguration
		</param-value>
	</context-param>

	<listener>
		<listener-class>org.springframework.web.util.Log4jConfigListener
		</listener-class>
	</listener>

	<listener>
		<listener-class>
			org.eclipse.rap.rwt.engine.RWTServletContextListener
		</listener-class>
	</listener>

	<listener>
		<listener-class>
			org.springframework.web.context.ContextLoaderListener
		</listener-class>
	</listener>

	<servlet>
		<servlet-name>RAPServlet</servlet-name>
		<servlet-class>org.eclipse.rap.rwt.engine.RWTServlet</servlet-class>
	</servlet>

	<servlet-mapping>
		<!-- Name des Servlets -->
		<servlet-name>RAPServlet</servlet-name>
		<!-- URL Pattern -->
		<url-pattern>/start</url-pattern>
		<url-pattern>/demo</url-pattern>
	</servlet-mapping>

	<session-config>
		<!-- optional: Session-Timeout -->
		<session-timeout>60</session-timeout>
	</session-config>

	<!-- Auf das Log Verzeichnis soll nicht über den Browser zugegriffen werden -->
	<security-constraint>
		<display-name>excluded</display-name>
		<web-resource-collection>
			<web-resource-name>No Access</web-resource-name>
			<url-pattern>/logs/*</url-pattern>
		</web-resource-collection>
		<auth-constraint />
		<user-data-constraint>
			<transport-guarantee>NONE</transport-guarantee>
		</user-data-constraint>
	</security-constraint>

</web-app>


Can I do anything to investigate the problem further? JavaScript debugging etc., because this is an urgent problem for us.

Frank
Re: No polling with ProgressMonitorDialog and deployed application [message #1693923 is a reply to message #1693895] Wed, 29 April 2015 10:02 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
in order to debug it on my side I need a test project (with war) to
reproduce the issue. Now I'm completely blind about the problem. Please
file a bugzilla and attach all needed files in order to reproduce the
issue there.
Thanks,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: No polling with ProgressMonitorDialog and deployed application [message #1694011 is a reply to message #1693923] Thu, 30 April 2015 06:23 Go to previous messageGo to next message
Frank Jakop is currently offline Frank JakopFriend
Messages: 8
Registered: July 2012
Junior Member
Hi, this could be a lengthy process, because the webapp with this symptom is very large. I will try to isolate the issue, but maybe it would be easier, if you could tell me which program flow would be correct when invoking the ProgressMonitorDialog, so I can debug the javascript myself.
Or maybe there's some in-depth documentation?

Thx

Frank
Re: No polling with ProgressMonitorDialog and deployed application [message #1694037 is a reply to message #1694011] Thu, 30 April 2015 08:22 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Frank,
ProgressMonitorDialog is used in all our demo applications deployed in
Tomcat (see links below) and it's working fine for me in all browsers.
You could import the bundles in your workspace and do some experimenting
with one of them in order to reproduce the issue. Please keep as posted
about the result.

[1] http://rap.eclipsesource.com/demo/release/rapdemo/#dialog
[2] http://rap.eclipsesource.com/demo/release/controls/#Dialogs
[3] http://rap.eclipsesource.com/demo/release/workbench/
Regards,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: No polling with ProgressMonitorDialog and deployed application [message #1697898 is a reply to message #1694037] Tue, 09 June 2015 12:50 Go to previous message
Frank Jakop is currently offline Frank JakopFriend
Messages: 8
Registered: July 2012
Junior Member
Finally we found the solution for this problem. It turned out to be a home-brewn problem originating in a lack of controlling in the deployment process, which resulted in the swt/jface-jars additionally slipping in the WEB-INF/lib folder.
We did not discover this first, because everything else worked fine.

Thanks for your help.

Frank
Previous Topic:Launch a program as a product (plug-in eclipse) with RAP
Next Topic:RAP Combo loses current value
Goto Forum:
  


Current Time: Fri Apr 26 18:53:47 GMT 2024

Powered by FUDForum. Page generated in 0.03233 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top