by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    mkamalov
    @mkamalov
    Ok Thanks
    Sorry, I don't work with java agents I thought it is something special :)
    Vladimir Dvorak
    @skybber
    have you java11?
    mkamalov
    @mkamalov
    No 8
    Vladimir Dvorak
    @skybber
    ok
    ha should be compiled with j11, probably you will have problem to build it on j8
    but n problem with debug on j8
    mkamalov
    @mkamalov
    Ok thanks I'm going to set breakpoint on failed lines in HA and if find something interesting will write here.
    Vladimir Dvorak
    @skybber
    I'm not sure if the breakpoints will work for you since this method is called from instrumentation, I had problem with it in eclipse, it didn't stop there. But no problem in executeCommand() callbackack, that is called in separated thread. If you have Idea then it will work.
    mkamalov
    @mkamalov
    Hi Vladimir
    I can't build Git HA repo
    should I use some special command to build?
    I used mvn clean install
    mkamalov
    @mkamalov
    Vladimit HA uses methods introduced in Java 9. How you compile HA on Java 8?
    mkamalov
    @mkamalov
    I've got it I have to compile it with java 11 and HA code checks Java version and uses different methods in implementation
    Vladimir Dvorak
    @skybber
    yep, j8 uses different way
    mkamalov
    @mkamalov
    I think my problem in 150ms hack
    Class<?> clazz = classLoader.loadClass(className);
    Method m = clazz.getDeclaredMethod(HOTSWAP_AGENT_CLINIT_METHOD, new Class[] {}); My log says that no method found in class.
    It it not clean where the code that updates this class in the classloader between ctClass.addConstructor(haClinit) line and Class<?> clazz = classLoader.loadClass(className);
    mkamalov
    @mkamalov
    Please, could you explain?
    Vladimir Dvorak
    @skybber
    method public static void patch(final CtClass ctClass is called from HotswapTransformer.transform, it adds $$ha$clinit method to class. Then the class is reloaded by dcevm, so the actual class reinitialization must be called in callback using scheduler.scheduleCommand. Class is now redefined after 150ms since the class can have be proxied by dynamic proxies (com.sun.proxy, etc...).
    davidezucc
    @davidezucc
    Rajkumar
    @rajsennimalai
    How to use hotswapper plugin withouy using IDE. I'm starting wildfly server with hotswapagent and altjvm options. I have a exploded war file with hotswap-agent.properties file with watchresources and extraclasspath pointing to the class folder. Whenever the classes files are getting changes ,the changes are not hotreloaded. Am i missing any configurations?
    Vladimir Dvorak
    @skybber
    @rajkumar: loot at autoHostawaphttp://hotswapagent.org/mydoc_configuration.html
    Rajkumar
    @rajsennimalai
    HI Vlaadimir,
    I have checked the documentation..But still classes are not getting reloaded. Look at https://stackoverflow.com/questions/55687372/hotswapper-plugin-is-not-reloading-classes-in-web-project for description
    Vladimir Dvorak
    @skybber
    even with autoHostawap=true in hotswap-agent.properties?
    Rajkumar
    @rajsennimalai
    Yes Vladimir
    Vladimir Dvorak
    @skybber
    and extraClasspath=your_build_path ?
    Rajkumar
    @rajsennimalai
    Mapped to target/classes folder
    LOGGER=trace
    extraClasspath=/home/user/HotSwapTest/target/classes
    webappDir=/home/user/HotSwapTest/src/main/webapp
    watchResources=/home/user/HotSwapTest/target/classes
    autoHotswap=true
    autoHotswap.port=8000
    Vladimir Dvorak
    @skybber
    I've pushed cosmetic fix in HotSwapperJpda.java , but I can't just help you with this, I'll check it soon ...
    Rajkumar
    @rajsennimalai
    Ok...thanks
    atamboli3
    @atamboli3

    Hi, i am looking for An Open source alternative for JRebel, but i am dealing with JAVA 1.6 , will your solution will support with this java version?
    if YES, Could you please tell me what i need to do...???

    Thank You...

    Vladimir Dvorak
    @skybber
    1.6 is too old. HA need j7 at least, j6 does not have generics <> that are necessary
    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.