question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HotSwap capability for SDK4 beta does not work

See original GitHub issue

I’m submitting a … (check one with “x”)

[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Expected Behavior

SDK4 with HotSwap capability should start properly according to https://github.com/Alfresco/alfresco-sdk/blob/sdk-4.0/docs/advanced-topics/hot-reloading/hotswap-agent.md#configuring-hotswapagent-in-the-project-java-11

Current Behavior

Following error can be seen (link to full log is mentioned in last section):

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
ERROR: Service 'hotswap-acs' failed to build: The command '/bin/sh -c tar -xvf $TOMCAT_DIR/trava-jdk-11-dcevm.tar.gz -C /usr/java/ &&     rm $TOMCAT_DIR/trava-jdk-11-dcevm.tar.gz &&     alternatives --install /usr/bin/java java /usr/java/dcevm-11.0.1+7/bin/java 40000 &&     alternatives --install /usr/bin/javac javac /usr/java/dcevm-11.0.1+7/bin/javac 40000 &&     alternatives --install /usr/bin/jar jar /usr/java/dcevm-11.0.1+7/bin/jar 40000 &&     alternatives --set java /usr/java/dcevm-11.0.1+7/bin/java &&     alternatives --set javac /usr/java/dcevm-11.0.1+7/bin/javac &&     alternatives --set jar /usr/java/dcevm-11.0.1+7/bin/jar &&     ln -sfn /usr/java/dcevm-11.0.1+7 /usr/java/latest &&     ln -sfn /usr/java/dcevm-11.0.1+7 /usr/java/default' returned a non-zero code: 2

Possible Solution

I tried to gunzip compressed file and adjust Dockerfile but no success

Steps to Reproduce (for bugs)

  1. Generate a new AIO SDK4 project named hotswap (whole path is /opt/alfresco/sdk/hotswap)
  2. $ cd /opt/alfresco/sdk/hotswap/hotswap-platform-docker/src/main/docker
  3. $ wget https://github.com/TravaOpenJDK/trava-jdk-11-dcevm/releases/download/dcevm-11.0.1%2B7/java11-openjdk-dcevm-linux.tar.gz
  4. $ mv java11-openjdk-dcevm-linux.tar.gz trava-jdk-11-dcevm.tar.gz # Rename TravaJDK to follow the same filename as in Dockerfile
  5. Appending commands for TravaJDK and hotswap-agent.properties to Dockerfile
  6. Appending command and volumes parts to /opt/alfresco/sdk/hotswap/docker/docker-compose.yml:
    command: ["catalina.sh", "run"]

and

      - ../../../hotswap-platform-jar/target/classes:/usr/local/tomcat/hotswap-agent/hotswap-platform-jar/target/classes
      - ../../../integration-tests/target/test-classes:/usr/local/tomcat/hotswap-agent/integration-tests/target/test-classes

Context

Hot reloading feature is not working

Your Environment

  • Testing on CentOS Linux release 7.6.1810 with OpenJDK “11.0.2” and Maven 3.6.0

Additional information

Whole log is available on my gist

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
FilipBruskacommented, Feb 4, 2019

Hi Ole, The problem with gz file was fixed by adding include/exclude params to maven-resources-plugin configuration. Anyway, I am still facing some issues. I will need to do more testing on my side and then I will provide you more info. You can expect more tomorrow.

0reactions
10SPDcommented, Dec 13, 2019

Since we just got a very large quote from JRebel folks based on annual subscription - I do not anticipate us moving to that. Any news on HotSwap from anyone?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10 does not detect a hotswap hard drive when ...
Insert disk into hotswap bay. Open a command prompt with admin rights. Run diskpart. Use the rescan command. Open computer management, disk ...
Read more >
Alfresco SDK
Alfresco SDK. Alfresco SDK 4.1 is a Maven based development kit that provides an easy to use approach to developing applications and extensions...
Read more >
vSphere support for hot-swap of local disks (2151404)
vSphere ESXi will attempt to automatically discover hot-added SAS/SATA disks or NVMe/PCIe SSDs. In some cases, a manual re-scan may be required ...
Read more >
Robust Hot Swap Design (Rev. A) - Texas Instruments
additional considerations that are introduced in this work: • Limitation on how low of a power limit Hot-Swap controllers can support.
Read more >
How does hot-swap capability improve isolated I2C interface?
Today's sensitive, high-speed serial communication devices are not all designed to support hot-swap capabilities. In isolated I 2 C buses ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found