Stacktrace isn't serializable

Hi all!

If you try to serialize a stacktrace like:

org.jivesoftware.smack.XMPPException: XMPPError connecting to someJabberServer:5222.
org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.java:830)
org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1276)

you’ll get a NotSerializableException:

Caused by: java.io.NotSerializableException: org.jivesoftware.smack.packet.XMPPError at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)

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.

Thanks,

Markus