{"action":"closed","issue":{"url":"https://api.github.com/repos/HotswapProjects/HotswapAgent/issues/45","repository_url":"https://api.github.com/repos/HotswapProjects/HotswapAgent","labels_url":"https://api.github.com/repos/HotswapProjects/HotswapAgent/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/HotswapProjects/HotswapAgent/issues/45/comments","events_url":"https://api.github.com/repos/HotswapProjects/HotswapAgent/issues/45/events","html_url":"https://github.com/HotswapProjects/HotswapAgent/issues/45","id":44544999,"number":45,"title":"Exceptions when reloading Spring related classes","user":{"login":"Kidlike","id":5050182,"avatar_url":"https://avatars.githubusercontent.com/u/5050182?v=3","gravatar_id":"","url":"https://api.github.com/users/Kidlike","html_url":"https://github.com/Kidlike","followers_url":"https://api.github.com/users/Kidlike/followers","following_url":"https://api.github.com/users/Kidlike/following{/other_user}","gists_url":"https://api.github.com/users/Kidlike/gists{/gist_id}","starred_url":"https://api.github.com/users/Kidlike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kidlike/subscriptions","organizations_url":"https://api.github.com/users/Kidlike/orgs","repos_url":"https://api.github.com/users/Kidlike/repos","events_url":"https://api.github.com/users/Kidlike/events{/privacy}","received_events_url":"https://api.github.com/users/Kidlike/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2014-10-01T09:35:29Z","updated_at":"2016-12-29T06:58:14Z","closed_at":"2016-12-29T06:58:14Z","body":"Hi,\n\nHere are some of the exceptions thrown when I recompile the classes while in debug mode:\n\n```\nException in thread \"Thread-17\" HOTSWAP AGENT: 9:32:13.911 ERROR (org.hotswap.agent.plugin.spring.scanner.ClassPathBeanRefreshCommand) - Error refreshing class com/company/cts/training/domain/TrainingCertification$22 in classLoader ContextLoader@1349563128\njava.lang.reflect.InvocationTargetException\n    at sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source)\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n    at java.lang.reflect.Method.invoke(Method.java:606)\n    at org.hotswap.agent.plugin.spring.scanner.ClassPathBeanRefreshCommand.executeCommand(ClassPathBeanRefreshCommand.java:73)\n    at org.hotswap.agent.command.impl.CommandExecutor.run(CommandExecutor.java:25)\nCaused by: java.lang.IllegalArgumentException: Illegal arguments method org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.isCandidateComponent([interface org.springframework.core.type.classreading.MetadataReader]) on org.springframework.context.annotation.ClassPathBeanDefinitionScanner@3e281ac9, params [org.springframework.core.type.classreading.SimpleMetadataReader@54c8ce83]\n    at org.hotswap.agent.util.ReflectionHelper.invoke(ReflectionHelper.java:49)\n    at org.hotswap.agent.plugin.spring.scanner.ClassPathBeanDefinitionScannerAgent.isCandidateComponent(ClassPathBeanDefinitionScannerAgent.java:306)\n    at org.hotswap.agent.plugin.spring.scanner.ClassPathBeanDefinitionScannerAgent.resolveBeanDefinition(ClassPathBeanDefinitionScannerAgent.java:224)\n    at org.hotswap.agent.plugin.spring.scanner.ClassPathBeanDefinitionScannerAgent.refreshClass(ClassPathBeanDefinitionScannerAgent.java:130)\n    ... 5 more\nCaused by: java.lang.IllegalArgumentException: java.lang.ClassCastException@4d38eed8\n    at sun.reflect.GeneratedMethodAccessor133.invoke(Unknown Source)\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n    at java.lang.reflect.Method.invoke(Method.java:606)\n    at org.hotswap.agent.util.ReflectionHelper.invoke(ReflectionHelper.java:47)\n    ... 8 more\n\nHOTSWAP AGENT: 9:32:13.912 ERROR (org.hotswap.agent.plugin.spring.scanner.ClassPathBeanRefreshCommand) - Error refreshing class com/company/cts/training/controllers/UserTrainingAssignmentController in classLoader ContextLoader@1349563128\njava.lang.reflect.InvocationTargetException\n    at sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source)\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n    at java.lang.reflect.Method.invoke(Method.java:606)\n    at org.hotswap.agent.plugin.spring.scanner.ClassPathBeanRefreshCommand.executeCommand(ClassPathBeanRefreshCommand.java:73)\n    at org.hotswap.agent.command.impl.CommandExecutor.run(CommandExecutor.java:25)\nCaused by: java.lang.IllegalArgumentException: Illegal arguments method org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.isCandidateComponent([interface org.springframework.core.type.classreading.MetadataReader]) on org.springframework.context.annotation.ClassPathBeanDefinitionScanner@3e281ac9, params [org.springframework.core.type.classreading.SimpleMetadataReader@19d71fa8]\n    at org.hotswap.agent.util.ReflectionHelper.invoke(ReflectionHelper.java:49)\n    at org.hotswap.agent.plugin.spring.scanner.ClassPathBeanDefinitionScannerAgent.isCandidateComponent(ClassPathBeanDefinitionScannerAgent.java:306)\n    at org.hotswap.agent.plugin.spring.scanner.ClassPathBeanDefinitionScannerAgent.resolveBeanDefinition(ClassPathBeanDefinitionScannerAgent.java:224)\n    at org.hotswap.agent.plugin.spring.scanner.ClassPathBeanDefinitionScannerAgent.refreshClass(ClassPathBeanDefinitionScannerAgent.java:130)\n    ... 5 more\nCaused by: java.lang.IllegalArgumentException: java.lang.ClassCastException@2a21ef14\n    at sun.reflect.GeneratedMethodAccessor133.invoke(Unknown Source)\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n    at java.lang.reflect.Method.invoke(Method.java:606)\n    at org.hotswap.agent.util.ReflectionHelper.invoke(ReflectionHelper.java:47)\n    ... 8 more\n\nHOTSWAP AGENT: 9:32:13.929 ERROR (org.hotswap.agent.plugin.spring.scanner.ClassPathBeanRefreshCommand) - Error refreshing class com/company/cts/site/domain/UserSiteRole_$$_javassist_48 in classLoader ContextLoader@1349563128\njava.lang.reflect.InvocationTargetException\n    at sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source)\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n    at java.lang.reflect.Method.invoke(Method.java:606)\n    at org.hotswap.agent.plugin.spring.scanner.ClassPathBeanRefreshCommand.executeCommand(ClassPathBeanRefreshCommand.java:73)\n    at org.hotswap.agent.command.impl.CommandExecutor.run(CommandExecutor.java:25)\nCaused by: java.lang.IllegalArgumentException: Illegal arguments method org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.isCandidateComponent([interface org.springframework.core.type.classreading.MetadataReader]) on org.springframework.context.annotation.ClassPathBeanDefinitionScanner@3e281ac9, params [org.springframework.core.type.classreading.SimpleMetadataReader@49e3c6d]\n    at org.hotswap.agent.util.ReflectionHelper.invoke(ReflectionHelper.java:49)\n    at org.hotswap.agent.plugin.spring.scanner.ClassPathBeanDefinitionScannerAgent.isCandidateComponent(ClassPathBeanDefinitionScannerAgent.java:306)\n    at org.hotswap.agent.plugin.spring.scanner.ClassPathBeanDefinitionScannerAgent.resolveBeanDefinition(ClassPathBeanDefinitionScannerAgent.java:224)\n    at org.hotswap.agent.plugin.spring.scanner.ClassPathBeanDefinitionScannerAgent.refreshClass(ClassPathBeanDefinitionScannerAgent.java:130)\n    ... 5 more\nCaused by: java.lang.IllegalArgumentException: java.lang.ClassCastException@23cb7d87\n    at sun.reflect.GeneratedMethodAccessor133.invoke(Unknown Source)\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n    at java.lang.reflect.Method.invoke(Method.java:606)\n    at org.hotswap.agent.util.ReflectionHelper.invoke(ReflectionHelper.java:47)\n    ... 8 more\n```\n\nI am running this jvm:\n\n```\nHOTSWAP AGENT: 10:29:33.958 INFO (org.hotswap.agent.HotswapAgent) - Loading Hotswap agent {0.1-beta4} - unlimited runtime class redefinition.\nHOTSWAP AGENT: 10:29:34.795 INFO (org.hotswap.agent.config.PluginRegistry) - Discovered plugins: [Hotswapper, AnonymousClassPatch, WatchResources, Hibernate, Spring, Jersey2, Jetty, Tomcat, ZK, Logback, JSF, Seam, ELResolver]\njava version \"1.7.0_65\"\nOpenJDK Runtime Environment (IcedTea 2.5.2) (7u65-2.5.2-3~14.04)\nDynamic Code Evolution 64-Bit Server VM (build 24.51-b03-dcevmfull-3, mixed mode)\n```\n\nBare in mind that the codebase in this application is big (several mlocs). When I clicked compile in 1 class in debug mode, 450 classes where reloaded. Several had similar exceptions.\nI would have to run the test again if you want a full and clean log.\n\nDoes this look like something that could be an environment/setup issue or is it a bug in the agent?\n\nThanks!\n"}}
{"actor":{"display_login":"edudant"}}