Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-1558

Webservice method returning a Set results in java.lang.ClassCastException: java.util.LinkedHashSet cannot be cast to java.util.List

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1.1, 2.0.7
    • Component/s: None
    • Labels:
      None
    • Environment:

      Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
      jaxb-api-2.1.jar, jaxb-impl-2.1.6.jar, asm-2.2.3.jar

      Description

      A webservice method that returns a Set results in java.lang.ClassCastException: java.util.LinkedHashSet cannot be cast to java.util.List.

      The problem seems related to asm because when asm is removed from the classpath the exception does not occur.

        Attachments

        1. cxf-classcast-bug.tar.gz
          0.8 kB
          Martijn Brinkers

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              martijn_brinkers Martijn Brinkers
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: