[jbosstools-issues] [JBoss JIRA] (JBIDE-21857) Hot code replacement doesn't work on OpenShift

Andre Dietisheim (JIRA) issues at jboss.org
Tue Nov 29 11:51:03 EST 2016


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

Andre Dietisheim commented on JBIDE-21857:
------------------------------------------

[~mlabuda] basic, non-structural changes to a method work for me without any problems. There's no dialog popping up, the change is being deployed and it works:

# EXEC: Open OpenShift application wizard
# EXEC select eap64-basic-s2i template and proceed to next wizard page
# EXEC: change CONTEXT_DIR param to helloworld, 
# EXEC: click Finish and let import application to your workspace once you are prompted.
# EXEC: Create a new OpenShift 3 server adapter for the application.
# EXEC: Restart server adapter in debug mode.
# EXEC: pick "Show In > Web Browser" in the context menu of your Server adapter
# ASSERT: Browser opens up showing a page with "Hello World"
# EXEC: Open HelloService.java in Java editor, change #createHelloMessage method to return "Oh hey, hello " + name + "!". Save editor
# ASSERT: console shows up and you see rsync transferring the change
# EXEC: refresh your browser

Result:
The web browser page now shows the changed text: "Oh hey, hello World!"


> Hot code replacement 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: Rob Stryker
>             Fix For: 4.4.2.Final, 4.4.3.AM1, 4.5.0.AM1
>
>         Attachments: HCRFailure.zip
>
>
> 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
(v7.2.3#72005)


More information about the jbosstools-issues mailing list