-
1. Re: javax.jms.MessageFormatException: Object cannot be serialized
wdfink Nov 11, 2011 9:42 AM (in response to ohmygod)All child members of the given object must be Serializable.
In your case I suppose that the Exception or a cause is not Serializable.
-
2. Re: javax.jms.MessageFormatException: Object cannot be serialized
ohmygod Nov 14, 2011 12:10 AM (in response to wdfink)Thanks for the reply. I tried to make everthing I saw in the class Serializable, but still not working.
If you have a chance, can you please help me look into the class and see what I missed? I am attaching my class code.
Thanks very much in advance.
-
GeneralException.java.zip 7.8 KB
-
-
3. Re: javax.jms.MessageFormatException: Object cannot be serialized
ohmygod Nov 14, 2011 12:14 AM (in response to ohmygod)In the import section, I also made ResourceBundleConstants and SystemResourceBundle Serializable, but still no luck.
-
4. Re: javax.jms.MessageFormatException: Object cannot be serialized
wdfink Nov 14, 2011 3:22 PM (in response to ohmygod)I suppose 'private Exception m_originalException' will be the problem.
You can check it if you set it 'private transient', I know you will lost your cause but if it works you can concentrate on this.
Normaly, static variables will not be serialized because they are not part of the instance.
-
5. Re: javax.jms.MessageFormatException: Object cannot be serialized
ohmygod Nov 14, 2011 10:35 PM (in response to wdfink)Nice shoot, the private member Exception is the root cause. I have got this figured out already. Thanks so much all the same.
-
6. Re: javax.jms.MessageFormatException: Object cannot be serialized
wdfink Nov 15, 2011 2:16 AM (in response to ohmygod)Good to hear,
Yes Serialization can be very confusing with all the different facets