7 Replies Latest reply on Mar 8, 2010 10:19 PM by EJP

    XMLEncoding an ArrayList - InstantiationException

      Hi all. I am trying to XMLEncode an ArrayList for another class to decode and use, but I keep getting:
      java.lang.InstantiationException: Locations.Location
      Continuing ...
      java.lang.Exception: XMLEncoder: discarding statement ArrayList.add(Location);
      Continuing ...

      The ArrayList stores objects of type Location, and the way these errors look indicates to me that there is a problem with the objects I am trying to store in the ArrayList and then XMLEncode.

      Can anyone drop me a couple of hints here? Or advise a better way of making the contents of an ArrayList in one class accessible to another?

      Many thanks.