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

Getting java.lang.NoClassDefFoundError: org/springframework/core/io/Resource with hotswap-agent-1.1.0-SNAPSHOT(latest version) #184

Closed
sachinkakkar7 opened this issue Mar 16, 2017 · 3 comments
Labels

Comments

@sachinkakkar7
Copy link

Hi,

I have properly configured DCEVM and Hotswap agent. Whenever I make a change, save and re-compile a file(name-DestinationResource. It has annotations) using IntelliJ, the below logs are seen in JBoss' console

RedefineClasses-0x1: Redefinition with revision number 0 started!
RedefineClasses-0x1: loading new class versions (1)
RedefineClasses-0x1: Class being reloaded: com/att/adtm/auth/destination/resource/DestinationResource
RedefineClasses-0x1: 1 classes affected
RedefineClasses-0x1: Redefine order:
RedefineClasses-0x1: com/att/adtm/auth/destination/resource/DestinationResource
RedefineClasses-0x1: Processing affected class com/att/adtm/auth/destination/resource/DestinationResource (1 of 1)
RedefineClasses-0x1: Comparing different class versions of class com/att/adtm/auth/destination/resource/DestinationResource
RedefineClasses-0x1: Super class is com/att/adtm/common/resource/AdtmBaseResource
RedefineClasses-0x1: Linking class 0/1 com/att/adtm/auth/destination/resource/DestinationResource
RedefineClasses-0x1: All classes loaded!
RedefineClasses-0x1: Finished verification!
RedefineClasses-0x1: Loaded new class versions!
RedefineClasses-0x1: doit_prologue finished!
RedefineClasses-0x1: Before updating instances
RedefineClasses-0x1: After updating instances
RedefineClasses-0x1: Copying static field value for field LOGGERUTIL old_offset=104 new_offset=104
RedefineClasses-0x1: Copying static field value for field MAX_ADDRESS_COUNT old_offset=108 new_offset=108
RedefineClasses-0x1: GC Operation epilogue

But as soon as I press F6(during debugging)I get the below exception.

16:46:43,752 ERROR [stderr] (Thread-276) Exception in thread "Thread-276" java.lang.NoClassDefFoundError: org/springframework/core/io/Resource
16:46:43,793 ERROR [stderr] (Thread-276) at java.lang.Class.getDeclaredMethods0(Native Method)
16:46:43,947 ERROR [stderr] (Thread-276) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
16:46:49,070 ERROR [stderr] (Thread-276) at java.lang.Class.getDeclaredMethod(Class.java:2128)
16:46:49,137 ERROR [stderr] (Thread-276) at org.hotswap.agent.plugin.spring.scanner.ClassPathBeanRefreshCommand.executeCommand(ClassPathBeanRefreshCommand.java:72)
16:46:49,708 ERROR [stderr] (Thread-276) at org.hotswap.agent.command.impl.CommandExecutor.run(CommandExecutor.java:25)
16:46:49,712 ERROR [stderr] (Thread-276) Caused by: java.lang.ClassNotFoundException: org.springframework.core.io.Resource

Here is what I am using

  1. DCEVM-light-8u112-installer.jar + hotswap-agent-1.1.0-SNAPSHOT(latest version) + Java 1.8.0_111
  2. Deployed an un-exploded EAR in JBOSS 7.
  3. Code is using spring and hibernate frameworks

Please suggest a possible solution to this problem.

@skybber
Copy link
Contributor

skybber commented Mar 16, 2017

May be same problem as in #183

@sachinkakkar7
Copy link
Author

That's right.

@skybber skybber closed this as completed Mar 16, 2017
@skybber skybber reopened this Mar 16, 2017
@skybber skybber added the bug label Mar 19, 2017
@skybber
Copy link
Contributor

skybber commented Mar 19, 2017

fixed in snapshot 1.1.0-SNAPHOT

@skybber skybber closed this as completed Mar 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants