Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-813

CLONE - #annotationType() of javax.enterprise:cdi-api not compatible with AbstractAnnotationLiteral

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Sun JRE6, tomcat6, MyFaces 2.1.10, OWB 1.1.8

      Description

      StackTrace:

      SCHWERWIEGEND: sun.reflect.generics.reflectiveObjects.TypeVariableImpl cannot be cast to java.lang.Class
      java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.TypeVariableImpl cannot be cast to java.lang.Class
      at javax.enterprise.util.AnnotationLiteral.getTypeParameter(AnnotationLiteral.java:101)
      at javax.enterprise.util.AnnotationLiteral.annotationType(AnnotationLiteral.java:117)
      at org.apache.webbeans.annotation.AbstractAnnotationLiteral.equals(AbstractAnnotationLiteral.java:38)
      at java.util.HashMap.put(HashMap.java:376)
      at java.util.HashSet.add(HashSet.java:200)
      at org.apache.webbeans.component.AbstractOwbBean.addQualifier(AbstractOwbBean.java:417)
      at org.apache.webbeans.util.WebBeansUtil.getManagerBean(WebBeansUtil.java:682)
      at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:153)
      at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:128)
      at org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:90)
      at org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:85)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:563)
      at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1399)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
      at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1500)
      at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:670)
      at org.apache.catalina.manager.ManagerServlet.doPut(ManagerServlet.java:435)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:640)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Thread.java:662)

        Attachments

        1. OWB-813.patch
          2 kB
          Thomas Andraschko

          Issue Links

            Activity

              People

              • Assignee:
                tandraschko Thomas Andraschko
                Reporter:
                tandraschko Thomas Andraschko
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: