Open janboksay opened 5 years ago
EDIT: I've tried version 1.3.1-SNAPSHOT (with Maven's tests skipped), the identical result occurs.
Same goes for injecting. Newly added field with @Inject is not injected. I presume every Spring annotation isn't working from now onward.
The Spring plugin for HotSwap agent was inicialized and hooked onto the class loader, however. (see the log for more details)
i have same issue with following log:
HOTSWAP AGENT: 13:23:53.131 RELOAD (org.hotswap.agent.plugin.spring.scanner.ClassPathBeanDefinitionScannerAgent) - Registering Spring bean 'RSController' HOTSWAP AGENT: 13:23:53.235 INFO (org.hotswap.agent.plugin.spring.getbean.DetachableBeanHolder) - 239 Spring proxies reset
env:
jdk : 1.7.0_79
hotswap-agent : 1.3.0
spring : 3.1.3.RELEASE
I have added a unit test for Spring MVC and it seems to work. (for Spring 4.3, 5.0, 5.1, 5.2) Same goes for @Inject
. I therefore propose to close this issue.
I have added a unit test for Spring MVC and it seems to work. (for Spring 4.3, 5.0, 5.1, 5.2) Same goes for
@Inject
. I therefore propose to close this issue.
@Inject
is not our main problem (might be for @dymice ) - our main problem is changing a value inside @RequestMapping
to a different URL, which has to be done very often in our project and leads to constantly rebuilding / reloading .war etc.
I just added a unit test for @RequestMapping
. Works with Spring 4.3.0. I'll setup a sample project to check with your versions.
I just added a unit test for
@RequestMapping
. Works with Spring 4.3.0. I'll setup a sample project to check with your versions.
Thank you very much. Unfortunately I am not going to be able to test it out - I am currently working on a C# project. In a few months however I should be back to Java - I will be able to test it out then.
Ok, I tested both Spring 4.2.6.RELEASE and 3.1.3.RELEASE with the latest Release. I used the following controller method:
@RequestMapping(value = "/h5", method = RequestMethod.GET) @ResponseBody public String home(Locale locale, Model model) {
counted the /h5
value up and checked if the hot reload works. Both Spring versions worked like a charm.
Ok, I tested both Spring 4.2.6.RELEASE and 3.1.3.RELEASE with the latest Release. I used the following controller method:
@RequestMapping(value = "/h5", method = RequestMethod.GET) @responsebody public String home(Locale locale, Model model) {
counted the
/h5
value up and checked if the hot reload works. Both Spring versions worked like a charm.
But isn't that only for java 11?
Java jdk1.8.0_181 with altjvm 25.71-b01-dcevmlight-26
We need 8 (most projects in our company are written in it). :(
Also forgive me, I no longer remember any of this stuff (what DCEVM or whatever that abbreviation is) because I haven't used it / seen it in a year. It's been too long.
Beans are hotSwapped correctly (I can add methods, and such, and hotswapping will be done correctly in the deployed application), but changing a mapping value inside a controller won't trigger remapping.
Versions and stuffs:
Java jdk1.8.0_181 with altjvm 25.71-b01-dcevmlight-26 Hotswap agent 1.3.0 Maven WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) Spring MVC 4.2.6.RELEASE Hibernate Core 5.0.7.Final hibernate Search 5.5.1.Final Lucene - LUCENE_CURRENT
Don't know if you need those, but I'll throw them in for good measure: XNIO version 3.3.4.Final PicketBox 4.9.4.Final Undertow 1.3.15.Final JBoss Modules version 1.5.1.Final JBoss MSC version 1.2.6.Final JBoss Remoting version 4.0.18.Final JBossWS 5.1.3.Final (Apache CXF 3.1.4)
PS: There are some WARNINGs about some classes not having default constructors and HotSwap Agent is thus unable to reload them - those are read-only classes, so reloading is not needed.
I've set the level of HotSwap logging to debugging, so that you may see what exactly is loaded, etc. in the log (also added controller xml definitions to the start of the log file). I'm adding the log to this issue.
The only thing that I did to produce the log was to -
BugReportHotSwapAgent.txt