0 Replies Latest reply on May 14, 2003 1:55 PM by sys user

    Cmp Collection

    sys user Master

      Hi

      I am using jboss 3.2.x.
      Created CMP and it deployed fine. Wrote a clinet to access the data returned by CMR.

      Now since i cannot use CMR method directly out of the transaction that created it,i wrote a wrapper method in that bean that would iterate the collection put in arraylist and retuen back to client.

      Now when i cal the CMR method it retunrs me a collection and prints its size as 3. I see in database and i have 3 records, things look good so far. I try to get iterator from collection and hasNext takes me in while but when i try to do next it throws nul pointer exception.

      I m not sure what is happening. Any tips on this ?

      Thanks

      pranav