Skip to content

HotswapSpringInvocationHandler cannot be cast to org.apache.cxf.frontend.ClientProxy #327

@folfix

Description

@folfix

Hi!
I am struggling with a following exception:

Caused by: java.lang.ClassCastException: org.hotswap.agent.plugin.spring.getbean.HotswapSpringInvocationHandler cannot be cast to org.apache.cxf.frontend.ClientProxy
	at org.apache.cxf.frontend.ClientProxy.getClient(ClientProxy.java:127)
	at com.company.ExampleClass.afterPropertiesSet(ExampleClass.java:40)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1837)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1774)
	... 183 common frames omitted

org.apache.cxf.frontend.ClientProxy:107 (org.apache.cxf:cxf-rt-frontend-simple:3.2.8)
debug

Hotswap start logs

HOTSWAP AGENT: 11:29:34.513 INFO (org.hotswap.agent.HotswapAgent) - Loading Hotswap agent {1.2.0} - unlimited runtime class redefinition.
HOTSWAP AGENT: 11:29:35.332 INFO (org.hotswap.agent.config.PluginRegistry) - Discovered plugins: [Hotswapper, JdkPlugin, WatchResources, ClassInitPlugin, AnonymousClassPatch, Hibernate, Hibernate3JPA, Hibernate3, Spring, Jersey1, Jersey2, Jetty, Tomcat, ZK, Logback, Log4j2, MyFaces, Mojarra, Omnifaces, Seam, ELResolver, WildFlyELResolver, OsgiEquinox, Owb, Proxy, WebObjects, Weld, JBossModules, ResteasyRegistry, Deltaspike, GlassFish]

Environment

Version 1.1.0-SNAPSHOT is working fine. Problem occurs for all of the versions newer than that.

  • JDK: Oracle Java 1.8.0_181-b13
  • DCEVM: 8u181-build2
  • Multi-module Maven project
  • Apache Tomcat/9.0.29 (war deployment)
  • Spring Core 5.1.9.RELEASE - without Spring Boot
  • cxf-core 3.2.8
  • Linux Mint 19.2 4.18.0-25-generic

org.apache.cxf.frontend.ClientProxy:107 (org.apache.cxf:cxf-rt-frontend-simple:3.2.8)
but for version 1.1.0-SNAPSHOT
debug

Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions