[jbosstools-issues] [JBoss JIRA] (JBDS-4735) Central projects Wizard sometimes fails to open

Zbyněk Červinka (Jira) issues at jboss.org
Tue Feb 26 11:10:01 EST 2019


    [ https://issues.jboss.org/browse/JBDS-4735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13700868#comment-13700868 ] 

Zbyněk Červinka commented on JBDS-4735:
---------------------------------------

Hi [~jeffmaury], I have debugged this issue and I have discussed the details and outcomes of my work with my manager (Pavol Srna) and some colleagues. According to Pavol Srna, my work should be sufficient to fix the issue.

-> First I would like to say is, that the issue appears randomly, sometimes sooner, sometimes later and the only way (I found) to reproduce this issue is to wait until it appears (after hours testing on several OS instances, I have not been able to reproduce the issue better then I have described in the "Steps to reproduce").

-> Secondly I would like mention the JavaScript variable "openInIDE" (appears in RH Central source code), which is detailed described in the "Description" of this issue and which is really important for this issue. This variable is not set in the Red Hat Central JavaScript files, so I think the implementation is generated in the Java code and from the Java code it goes to JavaScript. The main problem is, that the "openInIDE" sometimes become undefined, which causes the issue. I am not sure if JavaScript itself make the variable undefined after it has been implemented from the Java code, or Java should give the implementation to the JS and it does not happened. Because of the non-deterministic steps to reproduce, It would be better (according to Pavol), that the issue would fix someone, who has worked on the central. I hope, that you will be able to find and fix the cause easily.

> Central projects Wizard sometimes fails to open
> -----------------------------------------------
>
>                 Key: JBDS-4735
>                 URL: https://issues.jboss.org/browse/JBDS-4735
>             Project: Red Hat JBoss Developer Studio (devstudio)
>          Issue Type: Bug
>          Components: central
>    Affects Versions: 12.9.0.GA
>         Environment: manually Fedora 28, automation
>            Reporter: Vojtech Prusa
>            Assignee: Jeff MAURY
>            Priority: Major
>             Fix For: 12.11.0.AM1
>
>         Attachments: central.tar.gz, image-2018-10-17-09-24-31-555.png, screenshot-1.png
>
>
> There is "openInIDE" used in 3 places in "main.min.js" in central source code*. When the central reloads and works normally, "openInIDE" is a function (probably defined in Java code or somewhere out of the "main.min.js" file) with following implementation:
> function openInIDE() {
>     var result = callJava(1, '9aee3b4a3f3b40ed26f47d66375b25e3', Array.prototype.slice.call(arguments));
>     if (typeof result == 'string' && result.indexOf('org.eclipse.swt.browser.error') == 0) {
>         var error = new Error(result.substring(29));
>         throw error;
>     }
>     return result;
> }
> After the issue appears, "typedef openInIDE" is undefined, which causes probably the issues.
> *Additional information to the 3 places, where "openInIDE" appears - it appears in 2 functions:
> - registerButtonClicks() - here is the "openInIDE" needed for loading and displaying the central correctly
> - delegateToIDE(a, b) - here is the "openInIDE" needed for opening the wizard to the quickstart
> OLDER DESCRIPTION (does not describes the issue enough, but I decided to keep it for more details about the issue):
> ----------------------------------------------------------------------------------------------------------------------
> Sometimes central examples wizards fail to load and modal dialog is shown instead (screen attached).
> Nothing in Error log view.
> Restarting devstudio solves the issue.
> Adding screen and central tar of:
> devstudio-12.9.0.GA-v20180928-1629-B3448/workspaces/workspace/.metadata/.plugins/org.jboss.tools.central/central 
> Addition info:
> Considering that central itests fails for this sometimes fresh installation without restart may cause this. Although it happen again after  running devstudio for some time and restarting Central view.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)



More information about the jbosstools-issues mailing list