Questions tagged [spring-loaded]

Java agent that enables class reloading in a running JVM

Spring Loaded is a JVM agent for reloading class file changes whilst a JVM is running. It transforms classes at loadtime to make them amenable to later reloading. Unlike 'hot code replace' which only allows simple changes once a JVM is running (e.g. changes to method bodies), Spring Loaded allows you to add/modify/delete methods/fields/constructors. The annotations on types/methods/fields/constructors can also be modified and it is possible to add/remove/change values in enum types.

Spring Loaded is usable on any bytecode that may run on a JVM, and is actually the reloading system used in Grails 2.

Online resources:

59 questions
1
vote
1 answer

Spring loaded stacktrace

IIUC spring-loaded enables me change java server code without redeploying and it works, but I got a ridiculously long stacktrace. What does it mean? 18:53:09: Executing external task 'bootRun'... :compileJava UP-TO-DATE :processResources…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
1
vote
0 answers

IntelliJ: Spring loaded not working on Grails 2.3.x projects

Changes to controllers and services are not compiled and reloaded automatically like STS. This however works on Grails 2.4.x. What is missing on 2.3.x? I'm using Grails 2.3.11. Update: I tried run-app -reloading but I get the following after that:…
Alexander Suraphel
  • 10,103
  • 10
  • 55
  • 90
1
vote
2 answers

Grails 2.4.3 app auto reloading not working

Unable to reload grails application at runtime, My current development environment: Grails app version 2.4.3 JDK: 1.7.0_21 I have added following setting in my BuildConfig file grails.servlet.version = "3.0" grails.reload.enabled = true Some…
Laxmi Salunkhe
  • 509
  • 1
  • 4
  • 19
1
vote
1 answer

Tomcat VirtualWebappLoader stopped working for Java classes

It has been working lovely for me until yesterday. I'm using it with SpringLoaded in my Hippo CMS project. Symptoms: - Works for changes to .ftl files - Does not work for changes to java classes e.g. MyContactFormComponent Some findings: The…
ericn
  • 12,476
  • 16
  • 84
  • 127
1
vote
1 answer

Spring loaded with maven jetty:run and eclipse

I'm running a maven project with the jetty plugin to run the web project. As I came across spring-loaded, I instantly wanted to try it out to get some decent code hotswap without using JRebel or the DCVM. How is this used within eclipse? I've…
Mark
  • 590
  • 7
  • 17
1
vote
2 answers

Grails ReloadingException when changing a service method's name

I am using Grails 2.3.8 When I change a method's name in a service class, and try to invoke it I get an error similar to this: org.springsource.loaded.ReloadException: ReloadableType.determineDispatcher(): expected…
Tegi
  • 768
  • 8
  • 14
1
vote
2 answers

STS v3.5.0.RELEASE x64 won't hot swap VM classes

I'm using windows 8.1 x64 Swedish. I tried to follow this https://www.youtube.com/watch?v=GTrNkhVnJBU guide on how to get STS to hot swap. I have Eclipse set to autobuild and I've checked that the class files are actually replaced in the target…
1
vote
3 answers

Refreshing Thymeleaf pages with Spring loaded

I followed the demo of spring loaded from here http://www.youtube.com/watch?v=GTrNkhVnJBU It works great for class changes but is there a way to get it working for the view layer, specifically Spring MVC with Thymeleaf templates.
Bahadır Yağan
  • 5,577
  • 3
  • 35
  • 39
0
votes
0 answers

Difference in load balancer behavior

I noticed that load balancer has different behavior pattern in certain scenario. When using discovery with load balancer and one of the services is restarted on different port - then if services are running on Spring Boot 2.3.8-RELEASE, other…
0
votes
1 answer

springloaded- reloading of classes not happening

I was going through spring documentation for reloading classes without restarting containers, but when I am trying to do the same by adding springloaded dependency reloading isn't happening, am I missing something?
Vikrant Chaudhary
  • 629
  • 1
  • 7
  • 12
0
votes
1 answer

Springloaded's clearLocalVariableTableParameterNameDiscovererCache gives IllegalArgumentException on code recompile

I'm using springloaded in a maven project (a Hippo CMS project) and all appears to work ok, but I do keep getting this error every time IDEA recompiles a class. [INFO] [talledLocalContainer] 04-Aug-2017 10:50:59.743 SEVERE [FileSystemWatcher:…
ssol
  • 23
  • 1
  • 4
0
votes
1 answer

error while using springloaded in jboss startup

I am using springloaded agent in jboss and it is giving me error in startup. Error is related to logmanager and desvribed in https://github.com/spring-projects/spring-loaded/issues/94. I am able to resolve this issue after making following changes…
dharmendra
  • 11
  • 1
  • 2
0
votes
1 answer

Error opening zip file or JAR manifest missing

When I am running "grails run-app -Dserver.port=8005" getting followin error. Please somebody help me on this. Thanks in advance!! Error opening zip file or JAR manifest missing :…
SatishY
  • 69
  • 1
  • 4
  • 10
0
votes
1 answer

Springloaded not found with Spring Boot 2 and Maven

I am trying to start with Spring Loaded with my Spring Boot project, but don't know why it does not want to work. My pom.xml looks like that: org.springframework.boot
Marek Urbanowicz
  • 12,659
  • 16
  • 62
  • 87
0
votes
1 answer

Hot reload using Spring not working

I need the Spring boot application of mine to hot reload when a particular input file has changed. I have added the spring loaded plugin as shown below.
AnOldSoul
  • 4,017
  • 12
  • 57
  • 118