• 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

Serialization error

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I published a method as web service which return ArrayList of customer objects.when i am invoking that method it is giving error in oracle 10G Application server that object serialization is not defined.Though customer object implements serilizable interface.Any help will be appreciated.
Thanks in Advance....
 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you post the stacktrace of the exception ?

Are all the references within Customer class serializable ?
 
indra sen
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rahul,
This is the error i am getting.
Internal Server Error (serialization error: no serializer is registered for (class locatequote.QuoteData, null))
QuoteData class has some string and long values and implements Serializable interface.
Can i return QuoteData as web service object or i have make it as xml string and have to return as xml.
In My application i have to return array of object.
waiting for your reply...
Thanks in advance.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Internal Server Error (serialization error: no serializer is registered for (class locatequote.QuoteData, null))



I guess its not because of java.io.Serializable.It might be something specific to Oracle 10g.
 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This could be due to the operations return type. Because no serializers will be created for ArrayLists. try by changing the return type to arrays.
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why dont you try custom serialization for the return type object and register your object. In this way I belivve it will work.
 
indra sen
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

custom serialization for the return type object and register your object


I try with object Array ,and it is working.
But what does it mean by custom serialization for object and registering it.
how can i do that.Can you give me some example...
Thanks in advance...
 
reply
    Bookmark Topic Watch Topic
  • New Topic