[
https://issues.jboss.org/browse/JBIDE-21857?page=com.atlassian.jira.plugi...
]
Andre Dietisheim edited comment on JBIDE-21857 at 11/30/16 2:17 PM:
--------------------------------------------------------------------
[~mlabuda] The hot code replace dialog shows up for me even if I dont manually connect the
JMX.
The steps for me:
# ASSERT: have jboss-helloworld running in OpenShift (create it via eap64-basic-s2i
template), the source code for it imported to a workspace project and a server adapter for
it
# EXEC: open HelloService and change it to the following:
{code:title=HelloService}
public class HelloService {
private static final String MAGIC_STRING = "42";
String createHelloMessage(String name) {
return "Hello " + name + ", the magic string is " +
MAGIC_STRING + "!";
}
}
{code}
and save the editor
Result:
"Hot code replace failed" dialog pops up, which is expected.
!hot-code-replace-failed.png!
I filed the issues due to its poor usability to JBIDE-23602.
# EXEC: in "Hot Code Replace Failed" dialog: hit "Restart Module"
# EXEC: unfold the server adapter and see in what state the JMX node and the adapter is:
Result:
!jmx-connected-adapter-synchronized.png!
The adapter is synchronized for me, and the JMX is now connected.
[~mlabuda] What makes you think that debugging is out-of-sync as stated in the steps
above?
I though can confirm that any change from now on - even non-structural changes - will
trigger the "Hot Code Replace Failed" dialog.
[~rob.stryker] Can you please chime in and comment the fact that the dialog now always
shows up?
was (Author: adietish):
[~mlabuda] The hot code replace dialog shows up for me even if I dont manually connect the
JMX.
The steps for me:
# ASSERT: have jboss-helloworld running in OpenShift (create it via eap64-basic-s2i
template), the source code for it imported to a workspace project and a server adapter for
it
# EXEC: open HelloService and change it to the following:
{code:title=HelloService}
public class HelloService {
private static final String MAGIC_STRING = "42";
String createHelloMessage(String name) {
return "Hello " + name + ", the magic string is " +
MAGIC_STRING + "!";
}
}
{code}
and save the editor
Result:
"Hot code replace failed" dialog pops up, which is expected.
!hot-code-replace-failed.png!
I filed the issues due to its poor usability to JBIDE-23602.
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, hot-code-replace-failed.png
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)