java.lang.ClassCastException

com.sun.proxy.$Proxy95 cannot be cast to com.netflix.zuul.ZuulFilter

Solutions on the web19030

  • via GitHub by szantopeter
    , 10 months ago
    com.sun.proxy.$Proxy95 cannot be cast to com.netflix.zuul.ZuulFilter
  • via Stack Overflow by rvv1980
    , 10 months ago
    com.sun.proxy.$Proxy95 cannot be cast to com.my.validator.FieldMatch
  • com.sun.proxy.$Proxy151 cannot be cast to oracle.jdbc.driver.OracleConnection
  • Stack trace

    • java.lang.ClassCastException: com.sun.proxy.$Proxy95 cannot be cast to com.netflix.zuul.ZuulFilter at org.springframework.cloud.netflix.zuul.ZuulFilterInitializer.contextInitialized(ZuulFilterInitializer.java:58)[spring-cloud-netflix-core-1.1.0.RELEASE.jar:1.1.0.RELEASE] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4809)[tomcat-embed-core-8.0.33.jar:8.0.33] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5251)[tomcat-embed-core-8.0.33.jar:8.0.33] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)[tomcat-embed-core-8.0.33.jar:8.0.33] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)[tomcat-embed-core-8.0.33.jar:8.0.33] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)[tomcat-embed-core-8.0.33.jar:8.0.33] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_66] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_66] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_66] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_66]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.