Bug 768135

Summary: jBPM Console does not render in Firefox
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Jeff DeLong <jdelong>
Component: jBPM ConsoleAssignee: Kris Verlaenen <kverlaen>
Status: CLOSED WONTFIX QA Contact: Zuzana Krejčová <zkrejcov>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GACC: atangrin, brms-jira, jgraham, lpetrovi, mswiders, tsurdilo
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Mac OS   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-13 14:46:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Console with no panels after logon none

Description Jeff DeLong 2011-12-15 20:55:22 UTC
Description of problem:

jBPM Console does not render in Firefox

Version-Release number of selected component (if applicable):

dev6 jbpm console from Firefox 8.0.1 on Mac 10.6.x

How reproducible:

Very

Steps to Reproduce:
1.login in to jbpm console with admin / admin from Firefox 8.0.1

  
Actual results:

half inch of white at the top the screen and the rest of the screen was pale blue

Expected results:

jBPM Console page with Tasks, Processes, etc.

Additional info:

Verified this worked fine with Safari and Chrome.

Comment 3 Kris Verlaenen 2012-01-02 19:33:55 UTC
I've not been able to confirm this issue, it seems to work fine on various versions of Firefox, including Firefox 8.0.1 on Windows XP.  I don't have a Mac to test this on unfortunately?  Can anyone verify whether they can reproduce this on a Mac?

Comment 4 Tihomir Surdilovic 2012-01-02 21:38:56 UTC
Works fine on latest Firefox 9.0.1: http://i.imgur.com/aTl7B.png on Mac. I am not able to download specifically version 8 from the update manager because 9.0.1 is the latest.

Comment 5 Jeff DeLong 2012-01-02 22:53:32 UTC
I upgraded to Firefox 9.0.1 and cleared my browser cache and I can now login and access jBPM Console okay. This issue can be closed.

Comment 6 Zuzana Krejčová 2012-01-05 11:23:39 UTC
I'd like to add, that with ER1 (and using Firefox 8.0), this issue seemed non existent. Up till now, when I got the pale-blue-with-white-strip page again. It took many tries though, much more than before. 
Also, working with the jBPM Console by myself, it always worked better than when I used Selenium WebDriver (automation) - that way was (and still is it seems) more prone to this issue.

Comment 7 Zuzana Krejčová 2012-01-17 14:05:04 UTC
Using ER2, Firefox 8.0, Selenium WebDriver, issue still present, happening more and more often. It's seriously blocking any test I might want to do. Please look at it.

Comment 8 Kris Verlaenen 2012-01-17 14:11:38 UTC
Do you think this might be an issue that only shows on Mac?  Or have you been able to reproduce this on other OSs?  Are you aware of other users being able to reproduce this? Unfortunately, no-one from the team has been able to reproduce this locally yet.

When you say that it only happens occasionally, how should we try to trigger it?  Just hitting (hard) refresh on login screen?  Or are there better ways to make it fail?

Comment 9 Zuzana Krejčová 2012-01-17 14:37:58 UTC
I'm using Fedora 15. And I've found a way around the issue just now. And a way to reproduce it as a consequence.

After filling in username and password, you need to click really fast, without a delay, on the submit button. This produces the blank page. 
The workaround for the bug is then, obviously, waiting a bit before submitting the login information.

Could you still look at the issue? We might have some really fast customers. ;)

Comment 10 Kris Verlaenen 2012-01-17 14:56:13 UTC
Ok, that should give us some more info on trying to reproduce this.  I'll let you know how it goes.

Comment 11 Lukáš Petrovický 2012-01-20 07:31:52 UTC
(We have a workaround, so no longer a TestBlocker.)

Comment 13 Maciej Swiderski 2012-04-10 14:09:59 UTC
Created attachment 576482 [details]
Console with no panels after logon

Here is a screen shot that illustrates the issue I was able to reproduce. It only happens when server was restarted but the browser with jbpm-console logon form was not reloaded by user tried to logon directly by filling in the form and submit.

Comment 14 Maciej Swiderski 2012-04-13 14:06:28 UTC
It seems like the nature of GWT application is that it is initialized when user accesses the main url that triggers entry point of the module, this is where everything is initialized and in quite few places it is initialized asynchronously which could lead to some components of the application being not yet ready when user logs into the system (as described in bz slight delay solves the issue). Same goes for the case with log off, user logs off and the page is reloaded meaning it is initialized but when server stops gwt/errai looses connection to it and the framework seems to be not ready any more.
After several hours of browsing through the code and debugging I managed to get some relevant messages from errai, this is what is printed out when trying to login after restart without reloading:
No subscribers for: AuthorizationListener<br/>Additional details:<br/> Attempt to send message to subject for which there are no subscribers

This AuthorizationListener is responsible for triggering workspace construction but as there are no subscribers it just does nothing.

Comment 15 Kris Verlaenen 2012-04-13 14:16:26 UTC
Given that we've only been able to reproduce this issue when restarting the server but not reloading the login page, how much time should we spend on trying to solve this issue as:
 - restarting the application server should not be a common use case
 - the user would probably hit refresh in this case, which would solve the issue

Comment 16 Jeff DeLong 2012-04-13 14:28:58 UTC
On 2.1 I said: "I upgraded to Firefox 9.0.1 and cleared my browser cache and I can now login
and access jBPM Console okay. This issue can be closed."

I have never seen a problem with it since.