• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NotSerializableException Exception for 9i AS

 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying TO deploy a CMP using session facade pattern in Oracle 9iAs.
I am using the local interfaces (local CMPs) in a stateless session bean.
There is a method in session bean which is returning a serialzed collection object.
This collection object contains get, set methods for an arryalist and collections returned by CMPs(using finder method). When I am returning this collection object. I am gettibg following error :

RemoteExceptioncom.evermind.server.rmi.OrionRemoteException: Error (de-)serializing object: Sgv_doc_type_mstLocal_EntityBeanWrapper2; nested exception is:
java.io.NotSerializableException: Sgv_doc_type_mstLocal_EntityBeanWrapper2
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Gayathri,
If you are using local interfaces, you should not have to deal with values (as dictated by RMI and remote interfaces). You can return a reference. Are you trying to return the actual object or the reference ?
-Sri
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the Oracle/OAS Forum...
 
reply
    Bookmark Topic Watch Topic
  • New Topic