[jbosstools-issues] [JBoss JIRA] (JBDS-4571) SWTException prevents Getting Started tab from populating
Leo Ufimtsev (JIRA)
issues at jboss.org
Mon Oct 2 15:12:01 EDT 2017
[ https://issues.jboss.org/browse/JBDS-4571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13471065#comment-13471065 ]
Leo Ufimtsev commented on JBDS-4571:
------------------------------------
Like:
{code:java}
execute(
"var ua = navigator.userAgent,tem,M=ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\\/))\\/?\\s*(\\d+)/i) || [];" + //$NON-NLS-1$
"if(/trident/i.test(M[1])){" + //$NON-NLS-1$
"tem=/\\brv[ :]+(\\d+)/g.exec(ua) || [];" + //$NON-NLS-1$
"return 'IE '+ '_' + (tem[1]||'');" + //$NON-NLS-1$
"}" + //$NON-NLS-1$
//get Mozilla(XulRunner) version
"var rv = ua.match(/rv:(\\d{1,2}[.]\\d{1,2})/i);" + //$NON-NLS-1$
"if(rv != null) {" + //$NON-NLS-1$
"return 'Mozilla' + '_' + rv[1];" + //$NON-NLS-1$
"}" + //$NON-NLS-1$
"M=M[2]? [M[1], M[2]]: [navigator.appName, navigator.appVersion, '-?'];" + //$NON-NLS-1$
"if((tem=ua.match(/version\\/(\\d+)/i))!=null) {" + //$NON-NLS-1$
"M.splice(1,1,tem[1]);" + //$NON-NLS-1$
"}"); //$NON-NLS-1$
; //$NON-NLS-1$
String result = (String) evaluate("return M[0] + '_' + M[1];");
{code}
> SWTException prevents Getting Started tab from populating
> ---------------------------------------------------------
>
> Key: JBDS-4571
> URL: https://issues.jboss.org/browse/JBDS-4571
> Project: Red Hat JBoss Developer Studio (devstudio)
> Issue Type: Bug
> Components: central, central-update, upstream
> Affects Versions: 11.0.0.GA
> Environment: Fedora 26 x86_64
> webkitgtk4-2.16.6-1.fc26.x86_64
> devstudio-11.0.0.GA-installer-standalone.jar
> openjdk version "1.8.0_144"
> OpenJDK Runtime Environment (build 1.8.0_144-b01)
> OpenJDK 64-Bit Server VM (build 25.144-b01, mixed mode)
> Reporter: Roland Grunberg
> Assignee: Nick Boldt
> Fix For: 11.x
>
>
> # Using the Devstudio installer ($ java -jar /notnfs/Downloads/devstudio-11.0.0.GA-installer-standalone.jar), I installed in '/notnfs/devstudio' (not in a home folder), with the default system JVM.
> # On startup (can be from the install, or separately), create a workspace in $HOME/workspace-devstudio.
> # Red Hat Central view loads, with the 'Do Not Enter' icon and the text 'An exception was raised in Javascript'. Clicking on the 'Details >>' button shows the full stacktrace, and it is not logged into the Error Log view.
> Note that switching to the Software/Update tab gets the Red Hat Central view to become populated with the correct content so the issue seems isolated to the 'Getting Started' tab.
> https://paste.fedoraproject.org/paste/Y5jrMNBt86LoEAsqIGykTg
> The relevant part seems to be :
> org.eclipse.swt.SWTException: An exception was raised in JavaScript
> at org.eclipse.swt.browser.WebKit$Webkit2JavascriptEvaluator.evaluate(WebKit.java:1273)
> at org.eclipse.swt.browser.WebKit.evaluate(WebKit.java:1324)
> at org.eclipse.swt.browser.WebBrowser.evaluate(WebBrowser.java:409)
> at org.eclipse.swt.browser.Browser.evaluate(Browser.java:663)
> at org.eclipse.swt.browser.Browser.evaluate(Browser.java:610)
> at org.jboss.tools.central.internal.browser.VersionedBrowser.<init>(VersionedBrowser.java:51)
> at org.jboss.tools.central.editors.GettingStartedHtmlPage.createBrowserSection(GettingStartedHtmlPage.java:188)
> at org.jboss.tools.central.editors.GettingStartedHtmlPage.createFormContent(GettingStartedHtmlPage.java:175)
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jbosstools-issues
mailing list