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

java.lang.RuntimeException: org.hotswap.agent.javassist.NotFoundException #103

Closed
hatecko23 opened this Issue Dec 7, 2015 · 9 comments

Comments

Projects
None yet
4 participants
@hatecko23
Contributor

hatecko23 commented Dec 7, 2015

sometimes I get this error:

java.lang.RuntimeException: org.hotswap.agent.javassist.NotFoundException: net.sf.cglib.proxy.MethodInterceptor
    at org.hotswap.agent.plugin.spring.getbean.EnhancerProxyCreater.create(EnhancerProxyCreater.java:91)
    at org.hotswap.agent.plugin.spring.getbean.EnhancerProxyCreater.createProxy(EnhancerProxyCreater.java:78)
    at org.hotswap.agent.plugin.spring.getbean.ProxyReplacer.register(ProxyReplacer.java:46)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:296)
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1125)
    at cz.datalite.helpers.SpringApplicationContext.getBean(SpringApplicationContext.java:61)
    at cz.datalite.helpers.SpringHelper.getBean(SpringHelper.java:36)
    at cz.datalite.zis.unicomp.components.DLUnikomp.(DLUnikomp.java:59)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
    at java.lang.Class.newInstance(Class.java:433)
    at org.zkoss.zk.ui.metainfo.impl.ComponentDefinitionImpl.newInstance(ComponentDefinitionImpl.java:312)
    at org.zkoss.zk.ui.metainfo.impl.ComponentDefinitionImpl.newInstance(ComponentDefinitionImpl.java:299)
    at org.zkoss.zk.ui.metainfo.ComponentInfo.newInstance(ComponentInfo.java:624)
    at org.zkoss.zk.ui.impl.AbstractUiFactory.newComponent(AbstractUiFactory.java:96)
    at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:809)
    at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:778)
    at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:687)
    at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:651)
    at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:824)
    at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:778)
    at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:687)
    at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:651)
    at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:824)
    at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:778)
    at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:687)
    at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:651)
    at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:824)
    at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:778)
    at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:687)
    at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:749)
    at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:709)
    at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:651)
    at org.zkoss.zk.ui.impl.UiEngineImpl.createComponents(UiEngineImpl.java:1032)
    at org.zkoss.zk.ui.impl.AbstractExecution.createComponents0(AbstractExecution.java:246)
    at org.zkoss.zk.ui.impl.AbstractExecution.createComponents(AbstractExecution.java:238)
    at org.zkoss.zk.ui.Executions.createComponents(Executions.java:179)
    at cz.datalite.helpers.ZKHelper.openDetailWindow(ZKHelper.java:386)
    at cz.datalite.helpers.ZKHelper.openDetailWindow(ZKHelper.java:348)
    at cz.datalite.zk.ZisHelper.openDetailWindow(ZisHelper.java:100)
    at cz.datalite.zis.web.komponenty.UnikompDetailController.openTop(UnikompDetailController.java:134)
    at cz.datalite.zis.web.desktop.components.impl.DetailComponentOpenerImpl.openUnicomp(DetailComponentOpenerImpl.java:205)
    at cz.datalite.zis.web.desktop.components.impl.DetailComponentOpenerImpl.openComponent(DetailComponentOpenerImpl.java:252)
    at cz.datalite.zis.web.prikaz.PrikazDetailPanelController.openKomponenty(PrikazDetailPanelController.java:370)
    at sun.reflect.GeneratedMethodAccessor561.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at org.zkoss.bind.impl.ParamCall.call(ParamCall.java:111)
    at org.zkoss.bind.impl.BinderImpl.doExecute(BinderImpl.java:1738)
    at cz.datalite.zk.bind.AnnotationBinder.resumeCommand(AnnotationBinder.java:65)
    at cz.datalite.zk.annotation.invoke.CommandInvoker.invoke(CommandInvoker.java:75)
    at cz.datalite.zk.annotation.processor.InvokeListener.invoke(InvokeListener.java:58)
    at cz.datalite.zk.bind.AnnotationBinder.doExecute(AnnotationBinder.java:52)
    at org.zkoss.bind.impl.BinderImpl.doCommand(BinderImpl.java:1499)
    at org.zkoss.bind.impl.BinderImpl.access$1500(BinderImpl.java:108)
    at org.zkoss.bind.impl.BinderImpl$CommandEventListener.onEvent0(BinderImpl.java:1375)
    at org.zkoss.bind.impl.BinderImpl$CommandEventListener.onEvent(BinderImpl.java:1327)
    at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2742)
    at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2713)
    at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2654)
    at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)
    at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1717)
    at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1502)
    at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1212)
    at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:600)
    at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:482)
    at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:491)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
    at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
    at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
    at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at cz.datalite.spring.auth.SwitchUserKeyFilter.doFilter(SwitchUserKeyFilter.java:73)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    at org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter.doFilter(AbstractPreAuthenticatedProcessingFilter.java:94)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
    at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:180)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
    at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
    at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: org.hotswap.agent.javassist.NotFoundException: net.sf.cglib.proxy.MethodInterceptor
    at org.hotswap.agent.javassist.ClassPool.get(ClassPool.java:445)
    at org.hotswap.agent.plugin.spring.getbean.EnhancerProxyCreater.buildProxyCallbackClass(EnhancerProxyCreater.java:221)
    at org.hotswap.agent.plugin.spring.getbean.EnhancerProxyCreater.getProxyCreationMethod(EnhancerProxyCreater.java:115)
    at org.hotswap.agent.plugin.spring.getbean.EnhancerProxyCreater.create(EnhancerProxyCreater.java:83)
    ... 132 more


@skybber

This comment has been minimized.

Show comment
Hide comment
@skybber

skybber Dec 7, 2015

Contributor

Have you this problems with version 0.3?

Contributor

skybber commented Dec 7, 2015

Have you this problems with version 0.3?

@hatecko23

This comment has been minimized.

Show comment
Hide comment
@hatecko23

hatecko23 Dec 7, 2015

Contributor

I dont know, i have no tested version 0.3. I have version 0.2.1. If new version 0.3 is stable i can use

Contributor

hatecko23 commented Dec 7, 2015

I dont know, i have no tested version 0.3. I have version 0.2.1. If new version 0.3 is stable i can use

@erkieh

This comment has been minimized.

Show comment
Hide comment
@erkieh

erkieh Dec 8, 2015

Contributor

Which Spring version are you using?
Oh and what is this version 0.2.1 you mention? I can't see a release whit this number.
0.2 Does not have the classes indicated in the stacktrace. Some fixes were applied to the spring plugin in december 2014, if you don't have those, try the 0.3.

Contributor

erkieh commented Dec 8, 2015

Which Spring version are you using?
Oh and what is this version 0.2.1 you mention? I can't see a release whit this number.
0.2 Does not have the classes indicated in the stacktrace. Some fixes were applied to the spring plugin in december 2014, if you don't have those, try the 0.3.

@hatecko23

This comment has been minimized.

Show comment
Hide comment
@hatecko23

hatecko23 Dec 8, 2015

Contributor

I have use spring in version 3.2.3.

Contributor

hatecko23 commented Dec 8, 2015

I have use spring in version 3.2.3.

@skybber

This comment has been minimized.

Show comment
Hide comment
@skybber

skybber Dec 8, 2015

Contributor

I've checked the changes in HA and there WERE updates in Spring after v0.2 release as @erkieh has written. I'm sorry for my misinformation.

Contributor

skybber commented Dec 8, 2015

I've checked the changes in HA and there WERE updates in Spring after v0.2 release as @erkieh has written. I'm sorry for my misinformation.

@hatecko23

This comment has been minimized.

Show comment
Hide comment
@hatecko23

hatecko23 Dec 8, 2015

Contributor

Ok, i will try use HA last version and will inform.

Contributor

hatecko23 commented Dec 8, 2015

Ok, i will try use HA last version and will inform.

@ashimoon

This comment has been minimized.

Show comment
Hide comment
@ashimoon

ashimoon Jan 6, 2016

I just wanted to add my comments here - I just ran into the same issue using the latest 0.3 release of hotswap-agent.jar.

When I downgraded back to my previous .jar version (not sure what version it is, from Feb 2015), it worked again just fine.

ashimoon commented Jan 6, 2016

I just wanted to add my comments here - I just ran into the same issue using the latest 0.3 release of hotswap-agent.jar.

When I downgraded back to my previous .jar version (not sure what version it is, from Feb 2015), it worked again just fine.

@erkieh

This comment has been minimized.

Show comment
Hide comment
@erkieh

erkieh Jan 14, 2016

Contributor

It seems my method for detecting cglib repackaging does not work correctly, since SpringNamingPolicy and cglib were addded at different times. Cglib was repackaged 3.2.0 and SpringNamingPolicy added in 3.2.8
So versions between those will not work.

Contributor

erkieh commented Jan 14, 2016

It seems my method for detecting cglib repackaging does not work correctly, since SpringNamingPolicy and cglib were addded at different times. Cglib was repackaged 3.2.0 and SpringNamingPolicy added in 3.2.8
So versions between those will not work.

erkieh added a commit to erkieh/HotswapAgent that referenced this issue Jan 15, 2016

@hatecko23

This comment has been minimized.

Show comment
Hide comment
@hatecko23

hatecko23 Mar 11, 2016

Contributor

Thank you for your help. After installing the latest version of HA (0.3 - stable) solves this problem.

PS: Tested for about a month.

Contributor

hatecko23 commented Mar 11, 2016

Thank you for your help. After installing the latest version of HA (0.3 - stable) solves this problem.

PS: Tested for about a month.

@hatecko23 hatecko23 closed this Mar 11, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment