by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Vladimir Dvorak
    @skybber
    but you can use some old dcevm, probably from original source
    atamboli3
    @atamboli3
    Thanks Vladimir...
    As i am not aware of this things, Could you please let me know where i can get this old dcevm version (i looked out but didn't got any link or references).... Please share any link/reference if you have....
    Vladimir Dvorak
    @skybber
    atamboli3
    @atamboli3
    Thank You...
    davidezucc
    @davidezucc
    Hi all, a simple question...can HotSwapAgent hotreload resources in META-INF folder (css,js,img)?thx
    Vladimir Dvorak
    @skybber
    META-INF files are usually loaded using ClassLoader.getResource, HotswapAgent add watchResource path into this mechanism, but does not change anyway. Maintaining/ Loading resource file is done by framework/application, file can be cached in browser or even on server.
    Quintin Siebers
    @qsiebers
    New HA user here. Can HA only be used to hotswap dependency classes (in webapp) when their classes folder is added to extraClasspath configuration? Or is it possible for HA to find all hotswap-agent.properties files on the entire classpath and find dependency hotswap classes via their respective extraClasspath properties?
    Alain Tavan
    @alain57
    Hi all, just a small question :
    any plan on releasing a new version for 11.03 ? or is it needed to build the binaries from source ?
    Vladimir Dvorak
    @skybber
    currently I've no plan to do it.
    mryvz
    @mryvz
    Hello , I ve question. Im new in HotswapAgent and trying to work with thorntail (wildfly)
    i ve managed to hotswap my web application , but changes i ve made beign applied a bit late
    about every 10 secs , not as soon as i save the file , anyone knows how to solve this
    thanks btw ^^
    Alain Tavan
    @alain57
    Hi again,
    on this page : https://github.com/TravaOpenJDK/trava-jdk-11-dcevm it is written that I can build my own release
    Small question about that : do I need something special to make a build based on 11.0.4 ?
    I also saw that the travis yaml file has references to jdk10, any reason for that ? Or is this travis file not up to date ?
    Thanks in advance for your help.
    @mryvz after saving process, java build new classes and reload them this takes a bit.
    On the project i'm working building new classes takes also 10-15 secondes
    you need to wait after the IDE told you that the classes where reloaed or do you try to refresh the webpage directly after pressing save without waiting that everything was reloaded?
    Vladimir Dvorak
    @skybber
    Hi, just fork the repository, create your travis account, add forket project and build :) java10 is used for build java11 image
    forked ...
    David Brown
    @davebrown1975
    Hi all - has anyone used hotswap with success on a Grails 4 project?
    If this works well, you're likely going to have a flood of Grails developers looking to avoid being forced to use jRebel just to remain productive since Grails 4 uses a later version of spring boot so no longer has the magic behind hot-swapping of classes which was one of the attractions of the framework in the first place.
    mryvz
    @mryvz
    @alain57
    i dont think its compile issue , im using compile on save option in netbeans. Save configuration with tomcat working almost insta ,
    as you sugested i refresh page without waiting classes updated message but nothing :( ,
    in my opinion wildfly (thorntail) has internal classpath something like search deamon which has 10 secs period
    Vladimir Dvorak
    @skybber
    extraClasspath is supported on wildfly. I dont know if netbeans use JDI to hotswap classes, but extraClasspath + autohotswap could work. As I know Kotlin and Scala works with dcevm+hotswagent
    Guilherme Chafy
    @guichafy
    Hi guys, The Hotswap Agent there are support to replace JSP files in Jboss?
    Vladimir Dvorak
    @skybber
    Hi, it could work, bute there is some threads relating to JSPs at https://groups.google.com/forum/#!forum/hotswapagent , otherwise I've no personal experience with JSP hotswap
    gkna
    @gkna
    Hi, i have done successful integration of Hotswap Agent(used openjdk11) with wildfly. I have connected wildfly with remote debugger from eclipse. Code changes are getting reflefcted only for methods. If i add a new class it is not getting swapped to the wildfly, i am getting java.lang.NoClassDefFoundError. Can anyone help me how i can fix this?
    Vladimir Dvorak
    @skybber
    Are you sure that the new class is deployed to wildfly? Otherwise if you're deploying via wars it could not work
    gkna
    @gkna
    No, i am not copying the new class to wildfly. I was in an assumption new class will be moved to wildfly after compilation.
    gkna
    @gkna
    I have configured extraClasspath in hotswap-agent.properties file. This path is not getting registered and not seen any error also in the log. Other options like LOGGER=DEBUG has taken.
    gjevardat
    @gjevardat
    Hello
    I have strange behavior with the agent. I have SpringBoot + Vaadin + tomcat setup.
    For my test I have a simple thread that output string in a console.
    When I change the value of the output string, I have to reload the page to have the updated srting , but the previous string is still outputed. Actually I can see that 2 Threads are now present like if the hotswap agent did a duplication of the updated code.
    Thread t = new Thread(new Runnable() {
                @Override
                public void run() {
                    while(true) {
                        try {
                            System.err.println("within the loop 7");
                            Thread.sleep(2000);
                            if(grid.isAttached() && grid.isVisible() ) {
    
                                updateLastActiveRuns();
                            }
                        } catch (InterruptedException e1) {
    
                        }
                    }
                }
            });
            t.start();
    So basically each time I update the output string, I have a new version of the code that is spawned, concurrently to previous versions
    gjevardat
    @gjevardat
    It looks like the current session is tied to the running version of the code, and only a new session will trigger the loading of new code
    When I save updated java code I see
    HOTSWAP AGENT: 16:47:26.300 RELOAD (org.hotswap.agent.plugin.jvm.AnonymousClassPatchPlugin)
    gjevardat
    @gjevardat
    Interestingly I see in the thread stack ok the JVM :
    Daemon Thread [Thread-18] (Suspended)
    Thread.sleep(long) line: not available [native method]
    <obsolete method in<unknown declaring type>>
    Thread.run() line: 748 [local variables unavailable]
    gjevardat
    @gjevardat
    Maybe as the code never exit this run() method, the obsolete method remains forever in the JVM
    Vladimir Dvorak
    @skybber
    You got it ! Its not possible to hotswap active method !
    gjevardat
    @gjevardat
    Thanks, it seems obvious once you know it :)
    gkna
    @gkna
    I have integrated OpenJDK Hotswap and pointed wildfly JAVA_HOME to this. My eclipse IDE has connected to wildfly using remote debug. I have modified java file but change are not reflecting in the server. Any idea what is wrong here? I am struck with this issue. Any help will be appreciated.
    Vladimir Dvorak
    @skybber
    is the modified .class file deployed to server? Are you following http://hotswapagent.org/mydoc_setup_intellij_idea.html ?
    vdvornyk
    @vdvornyk
    Hi, all!
    I wondering if anyone have successfully applied HotswapProject to WebSphere ?
    Graziano Felline
    @ogipogi

    Hi all!
    I have problems to have a working DCEVM + HotwapAgent on JBOSS EAP 7.2 Docker Container setup.

    Chosen setup:

    • Gradle multi project
    • Definedhotswap-agent.properties with extraClasspathto build/classes (via docker mount) on subprojects src/main/resources.

    I managed to launch the container only with disabling JBossModules plugin.

    HotSwap Agent doesn't recognise changes during remote debug hot swapping.

    If i enable JBossModules plugin i get this error during app server start:

    HOTSWAP AGENT: 08:55:11.139 INFO (org.hotswap.agent.HotswapAgent) - Loading Hotswap agent {1.4.1} - unlimited runtime class redefinition.
    HOTSWAP AGENT: 08:55:11.957 INFO (org.hotswap.agent.config.PluginRegistry) - Discovered plugins: [JdkPlugin, Hotswapper, WatchResources, ClassInitPlugin, AnonymousClassPatch, Proxy, WebObjects, Weld, JBossModules, Undertow]
    Listening for transport dt_socket at address: 8787
    Exception in thread "main" java.lang.NoClassDefFoundError: org/hotswap/agent/util/classloader/HotswapAgentClassLoaderExt
        at org.jboss.modules.Module.<init>(Module.java:247)
        at org.jboss.modules.ModuleLoader$3.run(ModuleLoader.java:729)
        at org.jboss.modules.ModuleLoader$3.run(ModuleLoader.java:724)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.jboss.modules.ModuleLoader.defineModule(ModuleLoader.java:724)
        at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:531)
        at org.jboss.modules.DelegatingModuleLoader.preloadModule(DelegatingModuleLoader.java:57)
        at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:295)
        at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:92)
        at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:86)
        at __redirected.__DocumentBuilderFactory.changeDefaultFactory(__DocumentBuilderFactory.java:53)
        at __redirected.__JAXPRedirected.changeAll(__JAXPRedirected.java:53)
        at org.jboss.modules.Main.main(Main.java:428)

    Any idea what is wrong here? I am struck with this issue. Any help will be appreciated.

    Vladimir Dvorak
    @skybber
    Did you follow instruction from https://github.com/HotswapProjects/hotswap-docklands ?
    As I remember there is problem at windows with watching file changes at directory outside docker container, if you have linux, you should not have problem with it
    Graziano Felline
    @ogipogi
    Thank you Vladimir,
    i will now check the instructions from https://github.com/HotswapProjects/hotswap-docklands.
    I want run this setup on OSX, do you know if this setup works there?
    Vladimir Dvorak
    @skybber
    OSX should be OK
    btw, did you try last dcevm :) ?
    Graziano Felline
    @ogipogi
    yes
    Graziano Felline
    @ogipogi

    hmm, i check the config and it looks like my config i have.

    It looks like the hotswap-agent.propertiesfile is not recognized.

    Do you know if i need the JBossModules plugin for EAP 7.2?

    Vladimir Dvorak
    @skybber
    Vladimir Dvorak
    @skybber
    jbossmodules plugin was not updated for a long time, I tried to fix it in new https://github.com/HotswapProjects/HotswapAgent/releases/tag/1.4.2-SNAPSHOT
    Could you check it please for EAP 7.2?