OpenLiberty / OpenLiberty/liberty-tools-eclipse
SVT: App does not restart after doing Hot code replacement while Debugger is started.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 16
- Forks
- 20
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 16
Description
I have installed Liberty Tools Eclipse 25.0.6 - as part of this TER - https://github.ibm.com/websphere/system-test/issues/1498
I started the Debugger, and while it is still running, I tried to change the method signature.
I tried to change the method signature - from private void issueEndLinesHtmlTest(PrintWriter out) to private void issueEndLinesHtmlTest(PrintWriter out, String test)
and saved the file.
However, the App didn't restart, and I did not see any pop-up for the Hot Code Replacement.
The only message I see in the console is that the app source compilation was successful:
[[1;34mINFO[m] [AUDIT ] CWWKZ0001I: Application AcmeWebEjbEar started in 269.746 seconds.
[[1;34mINFO[m] AcmeAnnuityWeb source compilation was successful.
[[1;34mINFO[m] AcmeAnnuityWeb source compilation was successful.
Steps to recreate:
- Get the Acme App from this repo (acme-ee10 branch) - https://github.ibm.com/was-svt/acme-ee/tree/acme-ee10
- Update the acme-ee/pom.xml with this for Liberty Maven Plugin.
<!-- Enable liberty-maven plugin -->
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>3.11.4</version>
<configuration>
<stripVersion>true</stripVersion>
<keepTempContainerfile>false</keepTempContainerfile>
</configuration>
</plugin>
- Start the App in Debug mode using the Liberty Tools.
- Make a change in the method com.ibm.wssvt.acme.annuity.web.AnnuityWebServlet,
fromprivate void issueEndLinesHtmlTest(PrintWriter out)toprivate void issueEndLinesHtmlTest(PrintWriter out, String test) - The App does not restart as expected.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in Liberty Tools Eclipse with the Liberty Maven Plugin 3.11.4, using the AcmeAnnuityWeb change in com.ibm.wssvt.acme.annuity.web.AnnuityWebServlet while the debugger is running. Trace the debugger and hot-code-replacement handling from that scenario; it is done when the application restarts and the expected Hot Code Replacement prompt appears after the method signature change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100