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

Return type list of a typed type, e.g. List<Type<Typee>>, leads to ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.6
    • 2.7.8, 2.6.11
    • JAXB Databinding
    • None
    • Unknown

    Description

      If you use a list of a typed type as the return type (yes, a lot of types ) in a CXF service you will get a

      java.lang.ClassCastException: java.util.ArrayList cannot be cast to some.class.Name
      

      exception.

      I attached a small example showing the problem for CXF 2.7.6.

      I'm not quite sure if this really is a CXF JAXBDatabinding problem or if it is caused by something else.

      Attachments

        1. cfx-list-typed-type.zip
          19 kB
          Kai Stapel

        Activity

          People

            dkulp Daniel Kulp
            kai.stapel Kai Stapel
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: