• Post Reply Bookmark Topic Watch Topic
  • New Topic

Serization problem...please help!!

 
Emilio Meadow
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there, I have a class on the server with an attribute of a type that doesn't exist on the client:

on the server:


on the client:


In the client doesn't know the type SomeType.
If I make the serialization of the server side class and deserialize with the client side class everything works well
(the attribute2 doesn't exist).
The problem is when we deploy in bea weblogi we get:

java.lang.ClassNotFoundException: SomeType: This error could indicate that a component was deployed on a cluster member but not other members of that cluster. Make sure that any component deployed on a server that is part of a cluster is also deployed on all other members of that cluster

We cannot update the client side class, so I was wondering if we could implement the writeObject method on the class SomeClass so that the SomeType attribute
is not written in the stream and all other attribute is written in the same way as if the SomeType attribute doesn't exist.
Do you think is possible?

Thanks in advance
 
Emilio Meadow
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I make the serialization of the server side class and deserialize with the client side class everything works well
(the attribute2 doesn't exist).


I forgot to say in local (using the same jre of the server).
 
Maruthi Janardhan
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try making the attribute of SomeType "transient" on the server. Please report back what you experience
 
Emilio Meadow
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it works, thanks.
We also found that if we impose the null value to the attribute2 it also works.

Ciao, Emilio
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!