java.lang.ClassCastException

com.sun.proxy.$Proxy56 cannot be cast to org.jboss.lang.Annotation


Solutions on the web19620

Solution icon of stackoverflow
com.sun.proxy.$Proxy56 cannot be cast to org.jboss.lang.Annotation

Solution icon of github
com.sun.proxy.$Proxy26 cannot be cast to org.openqa.selenium.internal.Locatable

Solution icon of github
com.sun.proxy.$Proxy1220 cannot be cast to org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter

Solution icon of googlegroups
via Google Groups by Jatin Puri, 1 month ago
com.sun.proxy.$Proxy0 cannot be cast to com.sun.jna.Library

Solution icon of web
via JIRA by Michal Malohlava, 10 months ago
com.sun.proxy.$Proxy19 cannot be cast to water.api.API

Solution icon of oraclecommunity
via Oracle Community by srikanth.patlolla, 1 year ago
com.sun.proxy.$Proxy4 cannot be cast to oracle.jdbc.OracleConnection

Solution icon of stackoverflow
com.sun.proxy.$Proxy0 cannot be cast to org.andrea.myexample.myDeclarativeTransactionSpring.StudentJDBCTemplate

Solution icon of stackoverflow
com.sun.proxy.$Proxy22 cannot be cast to books.pointejb.UserViewBean

Solution icon of stackoverflow
com.sun.proxy.$Proxy36 cannot be cast to org.hibernate.engine.spi.SessionImplementor

Solution icon of stackoverflow
com.sun.proxy.$Proxy62 cannot be cast to org.springframework.integration.context.IntegrationObjectSupport

Stack trace

  • java.lang.ClassCastException: com.sun.proxy.$Proxy56 cannot be cast to org.jboss.lang.Annotation at org.jboss.lang.AnnotationHelper.getAnnotation(AnnotationHelper.java:80) at org.jboss.lang.AnnotationHelper.isAnnotationPresent(AnnotationHelper.java:61) at org.jboss.ws.integration.jboss.DeployerInterceptorJSE.isWebserviceDeployment(DeployerInterceptorJSE.java:125) at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:76) at org.jboss.ws.integration.jboss.DeployerInterceptorJSE.create(DeployerInterceptorJSE.java:74) at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180) at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) at com.sun.proxy.$Proxy39.create(Unknown Source) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) at com.sun.proxy.$Proxy8.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)

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.