Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring 4.3.1 errors on latest master: ClassNotFoundException: org.springframework.core.io.Resource #140

Closed
pearj opened this Issue Jul 29, 2016 · 7 comments

Comments

Projects
None yet
4 participants
@pearj
Copy link

pearj commented Jul 29, 2016

I have build the latest hotswap agent, as I noticed some changes for Spring 4.x, however I've noticed that I get this error on some changes when using Spring 4.3.1

23:44:04,264 ERROR [stderr] (Thread-270) Exception in thread "Thread-270" java.lang.NoClassDefFoundError: org/springframework/core/io/Resource
23:44:04,267 ERROR [stderr] (Thread-270)        at java.lang.Class.getDeclaredMethods0(Native Method)
23:44:04,268 ERROR [stderr] (Thread-270)        at java.lang.Class.privateGetDeclaredMethods(Class.java:2625)
23:44:04,272 ERROR [stderr] (Thread-270)        at java.lang.Class.getDeclaredMethod(Class.java:2015)
23:44:04,273 ERROR [stderr] (Thread-270)        at org.hotswap.agent.plugin.spring.scanner.ClassPathBeanRefreshCommand.executeCommand(ClassPathBeanRefreshCommand.java:72)
23:44:04,274 ERROR [stderr] (Thread-270)        at org.hotswap.agent.command.impl.CommandExecutor.run(CommandExecutor.java:25)
23:44:04,278 ERROR [stderr] (Thread-270) Caused by: java.lang.ClassNotFoundException: org.springframework.core.io.Resource
23:44:04,279 ERROR [stderr] (Thread-270)        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
23:44:04,280 ERROR [stderr] (Thread-270)        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
23:44:04,281 ERROR [stderr] (Thread-270)        at java.security.AccessController.doPrivileged(Native Method)
23:44:04,283 ERROR [stderr] (Thread-270)        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
23:44:04,284 ERROR [stderr] (Thread-270)        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
23:44:04,285 ERROR [stderr] (Thread-270)        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
23:44:04,287 ERROR [stderr] (Thread-270)        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
23:44:04,288 ERROR [stderr] (Thread-270)        ... 5 more

What causes this? Is this error expected? Should HotswapAgent be able to reprocess annotations?

@edudant

This comment has been minimized.

Copy link
Contributor

edudant commented Dec 29, 2016

This should work in current version. Please reopen if still valid.

@edudant edudant closed this Dec 29, 2016

@sachinkakkar7

This comment has been minimized.

Copy link

sachinkakkar7 commented Mar 16, 2017

Hi,
Can we please re-open this issue? This issue is still happening with latest hotswap agent jar.

@skybber skybber reopened this Mar 16, 2017

@skybber

This comment has been minimized.

Copy link
Contributor

skybber commented Mar 16, 2017

Have you this problem on Wildfly or on another appserver?

@sachinkakkar7

This comment has been minimized.

Copy link

sachinkakkar7 commented Mar 16, 2017

I am having this problem with JBoss Application Server 7.

@skybber

This comment has been minimized.

Copy link
Contributor

skybber commented Mar 16, 2017

Is the error message same like in #184 ?

@sachinkakkar7

This comment has been minimized.

Copy link

sachinkakkar7 commented Mar 16, 2017

That's correct. Its similar to #184

@skybber

This comment has been minimized.

Copy link
Contributor

skybber commented Mar 19, 2017

fixed in snapshot 1.1.0-SNAPHOT

@skybber skybber closed this Mar 19, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.