serializing arraylist

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pankajs
    New Member
    • Mar 2008
    • 36

    #1

    serializing arraylist

    hello! I serialize a arraylist & it hv been saved to harddisk but when i load it i found null in that arraylist, but no of elements in this arraylist is saved > 0.
    can anybody tell me what is the problem??????/
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by pankajs
    hello! I serialize a arraylist & it hv been saved to harddisk but when i load it i found null in that arraylist, but no of elements in this arraylist is saved > 0.
    can anybody tell me what is the problem??????/
    Are you sure the elements in your ArrayList all implement the Serializable
    interface?

    kind regards,

    Jos

    Comment

    • pankajs
      New Member
      • Mar 2008
      • 36

      #3
      Yeah. I implements Serializable in all the elements also in the superclass.

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by pankajs
        Yeah. I implements Serializable in all the elements also in the superclass.
        Then you have to show us a bit of relevant code that exhibits the problem.

        kind regards,

        Jos

        Comment

        Working...