[
https://issues.jboss.org/browse/JBDS-4571?page=com.atlassian.jira.plugin....
]
Nick Boldt edited comment on JBDS-4571 at 10/3/17 2:54 PM:
-----------------------------------------------------------
1. Build the PR:
{code}
git clone
https://github.com/jbosstools/jbosstools-central && cd
jbosstools-central
hub co
mvn clean install
{code}
2. download
https://www.eclipse.org/downloads/download.php?file=/technology/epp/downl...
and unpack it somewhere
3. Install latest webkitgtk4
{code}
$➔ sudo yum install webkitgtk4 # update to 2.16.6-1.fc24
$➔ sudo dnf list installed | grep -E "^webkitgtk4"
webkitgtk4.x86_64 2.16.6-1.fc24 @updates
webkitgtk4-jsc.x86_64 2.16.6-1.fc24 @updates
webkitgtk4-plugin-process-gtk2.x86_64 2.14.3-1.fc24 @updates
{code}
4. Launch Eclipse using JDK 1.8u121 and SWT_WEBKIT2=1 exported
{code}
$➔ /usr/bin/java -version
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-b14)
OpenJDK 64-Bit Server VM (build 25.121-b14, mixed mode)
$➔ export SWT_WEBKIT2=1
$➔ ./eclipse -consolelog -vm /usr/bin/java
{code}
5. Install *JBoss Central Community* feature from
http://download.jboss.org/jbosstools/oxygen/snapshots/updates/
!install-central-latest-snapshot-on-epp-java-bundle.png|thumbnail!
Restart when prompted.
6. check Central - see error:
{code}
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)
...{code}
!central-broken.png|thumbnail!
7. Once the build is done, install the updated version of Central from
file:///path/to/jbosstools-central/site/target/repository/
(to be continued)
was (Author: nickboldt):
1. Build the PR:
{code}
git clone
https://github.com/jbosstools/jbosstools-central && cd
jbosstools-central
hub co
mvn clean install
{code}
2. download
https://www.eclipse.org/downloads/download.php?file=/technology/epp/downl...
and unpack it somewhere
3. Install latest webkitgtk4
{code}
$➔ sudo yum install webkitgtk4 # update to 2.16.6-1.fc24
$➔ sudo dnf list installed | grep -E "^webkitgtk4"
webkitgtk4.x86_64 2.16.6-1.fc24 @updates
webkitgtk4-jsc.x86_64 2.16.6-1.fc24 @updates
webkitgtk4-plugin-process-gtk2.x86_64 2.14.3-1.fc24 @updates
{code}
4. Launch Eclipse using JDK 1.8u121 and SWT_WEBKIT2=1 exported
{code}
$➔ /usr/bin/java -version
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-b14)
OpenJDK 64-Bit Server VM (build 25.121-b14, mixed mode)
$➔ export SWT_WEBKIT2=1
$➔ ./eclipse -consolelog -vm /usr/bin/java
{code}
5. Install *JBoss Central Community* feature from
*http://download.jboss.org/jbosstools/oxygen/snapshots/updates/*
!install-central-latest-snapshot-on-epp-java-bundle.png|thumbnail!
Restart when prompted.
6. check Central - see error:
{code}
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)
...{code}
!central-broken.png|thumbnail!
7. Once the build is done, install the updated version of Central from
file:///path/to/jbosstools-central/site/target/repository/
(to be continued)
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.1.0.AM3
Attachments: central-broken.png,
install-central-latest-snapshot-on-epp-java-bundle.png
# 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)