[JBoss JIRA] (JBIDE-21857) Hot class reload doesn't work on OpenShift
by Thomas Mäder (JIRA)
[ https://issues.jboss.org/browse/JBIDE-21857?page=com.atlassian.jira.plugi... ]
Thomas Mäder commented on JBIDE-21857:
--------------------------------------
When looking at what is happening inside the Eclipse debugger, you can see that the VM is asked for all classe with the full class names of the class being changed (MemberRegistration). The VM returns > 1 class, in fact one class for each web app restart. It seems the first (incompatible) class version is still present in the VM, preventing later class changes from being applied.
> Hot class reload doesn't work on OpenShift
> ------------------------------------------
>
> Key: JBIDE-21857
> URL: https://issues.jboss.org/browse/JBIDE-21857
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.3.1.Beta2
> Reporter: Fred Bricon
> Assignee: Thomas Mäder
> Priority: Blocker
> Fix For: 4.3.1.CR1
>
>
> When enabling debug mode on an EAP server deployed on OpenShift, locally changing a class file will :
> - work sometimes when only the content of the method changed, but could fail in some other occasions with the Debugger saying the JDK is out of sync
> - will always fail if a method signature changed, the debugger saying JDK is out of sync
> Restarting the deployed module (with the .dodeploy flag) doesn't fixes the issue (as opposed to the same tweak ahen running on a local EAP server)
> This may be caused by running OpenJDK? Does it support the same level of debugging as Oracle JDK?
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years
[JBoss JIRA] (JBDS-3676) BrowserSim cannot start on openjdk (windows)
by Ilya Buziuk (JIRA)
[ https://issues.jboss.org/browse/JBDS-3676?page=com.atlassian.jira.plugin.... ]
Ilya Buziuk commented on JBDS-3676:
-----------------------------------
Today I tried to use openjfx but got error on dll level when tried to launch BrowserSim:
{code}
java.lang.UnsatisfiedLinkError: C:\Program Files\Zulu\zulu-8\jre\bin\glass.dll: Can't find dependent libraries
Stack trace:
java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: C:\Program Files\Zulu\zulu-8\jre\bin\glass.dll: Can't find dependent libraries
at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:267)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:211)
at javafx.embed.swt.FXCanvas.initFx(FXCanvas.java:295)
at javafx.embed.swt.FXCanvas.<init>(FXCanvas.java:259)
at org.jboss.tools.browsersim.browser.javafx.JavaFXBrowser.<init>(JavaFXBrowser.java:51)
at org.jboss.tools.browsersim.browser.WebKitBrowserFactory.createBrowser(WebKitBrowserFactory.java:28)
at org.jboss.tools.browsersim.ui.skin.ResizableSkin.createControls(ResizableSkin.java:92)
at org.jboss.tools.browsersim.ui.BrowserSim.initSkin(BrowserSim.java:176)
at org.jboss.tools.browsersim.ui.BrowserSim.open(BrowserSim.java:155)
at org.jboss.tools.browsersim.ui.BrowserSim.open(BrowserSim.java:130)
at org.jboss.tools.browsersim.ui.launch.BrowserSimRunner.main(BrowserSimRunner.java:119)
Caused by: java.lang.UnsatisfiedLinkError: C:\Program Files\Zulu\zulu-8\jre\bin\glass.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1821)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at com.sun.glass.utils.NativeLibLoader.loadLibraryFullPath(NativeLibLoader.java:201)
at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:94)
at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:39)
at com.sun.glass.ui.Application.loadNativeLibrary(Application.java:112)
at com.sun.glass.ui.Application.loadNativeLibrary(Application.java:120)
at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39)
at com.sun.glass.ui.win.WinApplication$1.run(WinApplication.java:118)
at com.sun.glass.ui.win.WinApplication$1.run(WinApplication.java:91)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.glass.ui.win.WinApplication.<clinit>(WinApplication.java:91)
at com.sun.glass.ui.win.WinPlatformFactory.createApplication(WinPlatformFactory.java:39)
at com.sun.glass.ui.win.WinPlatformFactory.createApplication(WinPlatformFactory.java:36)
at com.sun.glass.ui.Application.run(Application.java:146)
at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:257)
... 10 more
{code}
I guess I need to play with building openjfx more - BrowserSim should work against openjfx, cause the main differences between javafx and openfx are
- absence of ON2 VP6 video codec (owned by google)
- absence of WebStart/Browser Embedded application deployment technology
^ both are not used by BrowserSim
As Max said openjfx is not included to currently released distros and one should build it manually from scratch. I'm not aware of the plans about adding openjfx to redhat distro of openjdk (zulu is not going to do that in a short run) but some people are interested in it - https://support.azul.com/hc/communities/public/questions/201638904-REQUES... . So, if we want to add openfx support I guess it should be added not to installer but to openjdk
> BrowserSim cannot start on openjdk (windows)
> --------------------------------------------
>
> Key: JBDS-3676
> URL: https://issues.jboss.org/browse/JBDS-3676
> Project: Developer Studio (JBoss Developer Studio)
> Issue Type: Bug
> Components: browsersim
> Affects Versions: 9.1.0.CR1
> Reporter: Jan Richter
> Assignee: Ilya Buziuk
> Labels: havoc, openjdk
>
> Running JBDS on Azul OpenJDK 8, Windows 10.
> Starting BrowserSim fails with the following error:
> {noformat}
> BrowserSim has failed to start with the following error:
> "To use BrowserSim please install Safari or run BrowserSim with Oracle Java 7u7 and higher."
> Also see BrowserSim FAQ.
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years
[JBoss JIRA] (JBIDE-21857) Hot class reload doesn't work on OpenShift
by Fred Bricon (JIRA)
[ https://issues.jboss.org/browse/JBIDE-21857?page=com.atlassian.jira.plugi... ]
Fred Bricon commented on JBIDE-21857:
-------------------------------------
OK so it seems we can reproduce the same behavior locally:
- deploy jboss kitchensink on a local WF or EAP server, in debug mode
- register a new member, to make sure the classes are loaded
- add a new print() { System.err.println("print")} method in MemberRegistration(), called in register(Member member)
- saving the file, a dialog will open telling you code can't be replaced. Select to restart the module
- register a new member, the console will display "print"
- change print() to display "print again"
- saving the file, a dialog will open telling you code can't be replaced <-- this is bad, we expect the debugger to load the non structural change ob the fly
> Hot class reload doesn't work on OpenShift
> ------------------------------------------
>
> Key: JBIDE-21857
> URL: https://issues.jboss.org/browse/JBIDE-21857
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.3.1.Beta2
> Reporter: Fred Bricon
> Assignee: Thomas Mäder
> Priority: Blocker
> Fix For: 4.3.1.CR1
>
>
> When enabling debug mode on an EAP server deployed on OpenShift, locally changing a class file will :
> - work sometimes when only the content of the method changed, but could fail in some other occasions with the Debugger saying the JDK is out of sync
> - will always fail if a method signature changed, the debugger saying JDK is out of sync
> Restarting the deployed module (with the .dodeploy flag) doesn't fixes the issue (as opposed to the same tweak ahen running on a local EAP server)
> This may be caused by running OpenJDK? Does it support the same level of debugging as Oracle JDK?
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years
[JBoss JIRA] (JBIDE-21847) Start port forwarding button is disabled after starting and stopping it
by Viacheslav Kabanovich (JIRA)
[ https://issues.jboss.org/browse/JBIDE-21847?page=com.atlassian.jira.plugi... ]
Viacheslav Kabanovich commented on JBIDE-21847:
-----------------------------------------------
[~mlabuda], if I attach a trial pull request that I assume may solve the issue, do you have an opportuninty to build with it and test?
> Start port forwarding button is disabled after starting and stopping it
> -----------------------------------------------------------------------
>
> Key: JBIDE-21847
> URL: https://issues.jboss.org/browse/JBIDE-21847
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.3.1.CR1
> Reporter: Marián Labuda
> Assignee: Viacheslav Kabanovich
> Labels: openshift_v3, port_forwarding_wizard
> Fix For: 4.3.1.CR1, 4.4.0.Alpha1
>
> Attachments: video.ogg-2.ogv
>
>
> In Port Forwarding wizard when I start port forwarding, then stop it, the button Start All is disabled and it is not possible to start port forwarding again. Well, both buttons after starting and stopping are disabled, only OK is enabled.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years