java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.GenericArrayTypeImpl cannot be cast to java.lang.Class

Coderanch | Siegfried Heintze | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Wanted: Help serializing Generic Maps!

    Coderanch | 8 years ago | Siegfried Heintze
    java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.GenericArrayTypeImpl cannot be cast to java.lang.Class
  2. 0

    Netbeans & Woodstox: ClassCastException: JAXBContextImpl Cannot Be Cast to JAXBContext - Ruben Laguna’s blog

    rubenlaguna.com | 1 year ago
    java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to javax.xml.bind.JAXBContext
  3. 0

    [CONF-20985] The default template packages are not available - Atlassian JIRA

    atlassian.com | 2 years ago
    java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to javax.xml.bind.JAXBContext
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ClassCastException when project has bad Maven config

    GitHub | 2 years ago | kcbabo
    java.lang.ClassCastException: org.jboss.tools.fuse.transformation.dozer.config.FieldDefinition$JaxbAccessorF_content cannot be cast to com.sun.xml.internal.bind.v2.runtime.reflect.Accessor
  6. 0

    Netbeans & Woodstox: ClassCastException: JAXBContextImpl Cannot Be Cast to JAXBContext - Ruben Laguna’s blog

    rubenlaguna.com | 9 months ago
    java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to javax.xml.bind.JAXBContext

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      sun.reflect.generics.reflectiveObjects.GenericArrayTypeImpl cannot be cast to java.lang.Class

      at com.sun.xml.internal.bind.v2.model.impl.RuntimeModelBuilder.createArrayInfo()
    2. Java RT
      JAXBContext.newInstance
      1. com.sun.xml.internal.bind.v2.model.impl.RuntimeModelBuilder.createArrayInfo(Unknown Source)
      2. com.sun.xml.internal.bind.v2.model.impl.RuntimeModelBuilder.createArrayInfo(Unknown Source)
      3. com.sun.xml.internal.bind.v2.model.impl.ModelBuilder.getTypeInfo(Unknown Source)
      4. com.sun.xml.internal.bind.v2.model.impl.TypeRefImpl.calcRef(Unknown Source)
      5. com.sun.xml.internal.bind.v2.model.impl.TypeRefImpl.getTarget(Unknown Source)
      6. com.sun.xml.internal.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(Unknown Source)
      7. com.sun.xml.internal.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(Unknown Source)
      8. com.sun.xml.internal.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(Unknown Source)
      9. com.sun.xml.internal.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(Unknown Source)
      10. java.util.AbstractList$Itr.next(Unknown Source)
      11. com.sun.xml.internal.bind.v2.model.impl.ModelBuilder.getClassInfo(Unknown Source)
      12. com.sun.xml.internal.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(Unknown Source)
      13. com.sun.xml.internal.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(Unknown Source)
      14. com.sun.xml.internal.bind.v2.model.impl.ModelBuilder.getClassInfo(Unknown Source)
      15. com.sun.xml.internal.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(Unknown Source)
      16. com.sun.xml.internal.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(Unknown Source)
      17. com.sun.xml.internal.bind.v2.model.impl.ModelBuilder.getTypeInfo(Unknown Source)
      18. com.sun.xml.internal.bind.v2.model.impl.TypeRefImpl.calcRef(Unknown Source)
      19. com.sun.xml.internal.bind.v2.model.impl.TypeRefImpl.getTarget(Unknown Source)
      20. com.sun.xml.internal.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(Unknown Source)
      21. com.sun.xml.internal.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(Unknown Source)
      22. com.sun.xml.internal.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(Unknown Source)
      23. com.sun.xml.internal.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(Unknown Source)
      24. java.util.AbstractList$Itr.next(Unknown Source)
      25. com.sun.xml.internal.bind.v2.model.impl.ModelBuilder.getClassInfo(Unknown Source)
      26. com.sun.xml.internal.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(Unknown Source)
      27. com.sun.xml.internal.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(Unknown Source)
      28. com.sun.xml.internal.bind.v2.model.impl.ModelBuilder.getClassInfo(Unknown Source)
      29. com.sun.xml.internal.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(Unknown Source)
      30. com.sun.xml.internal.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(Unknown Source)
      31. com.sun.xml.internal.bind.v2.model.impl.ModelBuilder.getTypeInfo(Unknown Source)
      32. com.sun.xml.internal.bind.v2.model.impl.ModelBuilder.getTypeInfo(Unknown Source)
      33. com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(Unknown Source)
      34. com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(Unknown Source)
      35. com.sun.xml.internal.bind.v2.ContextFactory.createContext(Unknown Source)
      36. com.sun.xml.internal.bind.v2.ContextFactory.createContext(Unknown Source)
      37. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      38. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      39. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      40. java.lang.reflect.Method.invoke(Unknown Source)
      41. javax.xml.bind.ContextFinder.newInstance(Unknown Source)
      42. javax.xml.bind.ContextFinder.find(Unknown Source)
      43. javax.xml.bind.JAXBContext.newInstance(Unknown Source)
      44. javax.xml.bind.JAXBContext.newInstance(Unknown Source)
      44 frames
    3. com.heintze
      DemoMaps.main
      1. com.heintze.DemoMaps.main(DemoMaps.java:108)
      1 frame