Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.rmi.MarshalException

 
Tony May
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am calling a session bean which is returning an ArrayList of java beans. On attempting to return the ArrayList I get the following error
java.rmi.MarshallException : CORBA MARHSALL 0 No
Could someone enlighten me as to why I might be getting the error. Any help appreciated
Tony
 
Dave Van Even
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
perhaps because an ArrayList does't implement java.io.Serializable and thus Marshalling an ArrayList to be able to be transfered over RMI/IIOP throws an exception ???
Confirm, anybody ?
 
Tony May
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An ArrayList does implement the java.io.Serializable interface !
 
Tony May
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An ArrayList does implement the java.io.Serializable interface ! As does the javabeans I am filling the ArrayList with
 
Mon Mayor
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try returning Collection interface.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic