Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Serialization error  RSS feed

 
indra sen
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • 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....
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
Vinod Awar
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • 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.
 
Anandha Loganathan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • 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
  • 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...
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!