Stacktrace isn't serializable

Hi all!

If you try to serialize a stacktrace like:

org.jivesoftware.smack.XMPPException: XMPPError connecting to someJabberServer:5222.

you’ll get a NotSerializableException:

Caused by: org.jivesoftware.smack.packet.XMPPError at at at at at

This makes it imposible in my curent setup to store a serialized version of the stacktrace for further investigation. Is there any posibility to make those stacktraces or their internal StackTraceElement instances serializable? I’m using the 3.0.4 version of the Smack library in an Java 1.5 environment.