2 Replies Latest reply on Nov 2, 2010 2:49 PM by Benqun zhang

    Resteasy unmarshall arraylist objects

    Benqun zhang Newbie

      the service sends a list of objects like:

      <theObjects>

            <theObject>

              <attr1>v1</attr1>

              <attr2>w1</attr2>

           </theObject>

            <theObject>

              <attr1>v2</attr1>

              <attr2>w2</attr2>

           </theObject>

      </theObjects>

       

      one class is created with @XmlRootElement(name="theObject")

       

      Then

       

      ProxyFactory create the service:

      List<theObject> getTheObjects();

       

      I get unmarshall error:

      org.jboss.resteasy.plugins.providers.jaxb.CollectionProvider.readFrom(CollectionProvider.java:164)

       

      Please advice!