RE: Do anyone have problems with Spring Loaded and Grails 3 on Linux?

289 views
Skip to first unread message

Brad Booth

unread,
Apr 3, 2015, 12:08:04 AM4/3/15
to Olav Grønås Gjerde, grails-de...@googlegroups.com
I see same issue on windows.  I have resorted to reloading my app after pretty much any change until I have some time to look into it.

Sent from my Windows Phone

From: Olav Grønås Gjerde
Sent: ‎4/‎2/‎2015 4:23 PM
To: grails-de...@googlegroups.com
Subject: Do anyone have problems with Spring Loaded and Grails 3 on Linux?

Everytime I save a file I get this exception from Spring Loaded, on OSX everything is working fine though.

ERROR org.springsource.loaded.agent.Watcher - FileWatcher caught serious error, see cause
java.lang.IllegalStateException: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@4b672daa has been closed already
        at org.springframework.context.support.AbstractApplicationContext.assertBeanFactoryActive(AbstractApplicationContext.java:940) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:961) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
        at org.springframework.beans.factory.BeanFactory$getBean$1.call(Unknown Source) ~[na:na]
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) ~[groovy-2.4.3.jar:2.4.3]
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110) ~[groovy-2.4.3.jar:2.4.3]
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:130) ~[groovy-2.4.3.jar:2.4.3]
        at org.grails.plugins.web.GroovyPagesGrailsPlugin.onChange(GroovyPagesGrailsPlugin.groovy:322) ~[grails-plugin-gsp-3.0.0.jar:3.0.0]
        at org.grails.plugins.DefaultGrailsPlugin.notifyOfEvent(DefaultGrailsPlugin.java:768) ~[grails-core-3.0.0.jar:3.0.0]
        at grails.plugins.DefaultGrailsPluginManager.informObservers(DefaultGrailsPluginManager.java:225) ~[grails-core-3.0.0.jar:3.0.0]
        at org.grails.plugins.DefaultGrailsPlugin.notifyOfEvent(DefaultGrailsPlugin.java:792) ~[grails-core-3.0.0.jar:3.0.0]
        at org.grails.plugins.AbstractGrailsPluginManager.informOfClassChange(AbstractGrailsPluginManager.java:385) ~[grails-core-3.0.0.jar:3.0.0]
        at org.grails.dev.support.GrailsSpringLoadedPlugin.reloadEvent(GrailsSpringLoadedPlugin.java:40) ~[grails-core-3.0.0.jar:3.0.0]
        at org.springsource.loaded.TypeRegistry.fireReloadEvent(TypeRegistry.java:1794) ~[springloaded-1.2.3.RELEASE.jar:1.2.3.RELEASE]
        at org.springsource.loaded.ReloadableType.loadNewVersion(ReloadableType.java:417) ~[springloaded-1.2.3.RELEASE.jar:1.2.3.]ELEASE
        at org.springsource.loaded.TypeRegistry.loadNewVersion(TypeRegistry.java:845) ~[springloaded-1.2.3.RELEASE.jar:1.2.3.RELEASE]
        at org.springsource.loaded.agent.ReloadableFileChangeListener.fileChanged(ReloadableFileChangeListener.java:51) ~[springloaded-1.2.3.RELEASE.jar:1.2.3.RELEASE]
        at org.springsource.loaded.agent.Watcher.determineChangesSince(FileSystemWatcher.java:235) [springloaded-1.2.3.RELEASE.jar:1.2.3.RELEASE]
        at org.springsource.loaded.agent.Watcher.run(FileSystemWatcher.java:219) [springloaded-1.2.3.RELEASE.jar:1.2.3.RELEASE]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/8c90025f-803c-4c7c-ad0c-1a52b3395a73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Fabio Issamu Oshiro

unread,
Apr 5, 2015, 12:25:41 AM4/5/15
to grails-de...@googlegroups.com
I dont like spring loaded. Im always have class loading problems since it was introduced in Grails 2.
Did you try JRebel or DCEVM https://github.com/dcevm/dcevm?
Reply all
Reply to author
Forward
0 new messages