XMLDecoder returns null pointer exception


Last week, I had to face following scenario.
My application is a client server application. An object of type class A, is encoded using java.beans.XMLEncoder in client side and saved in database. Class A is located in client side. I need to decode that object at server side. When I try to use java.beans.XMLDecoder,xmlDecoder.readObject() method returns null.

So I investigated why it is happening.  It was because class A is not available at server side, when XMLDecorder try to un marshall the object. 


0 Response to "XMLDecoder returns null pointer exception"

Post a Comment