Serialization of Dom4J QName fails

Solution Verified - Updated -

Issue

Serialization of Dom4J QName fails with

java.lang.IllegalStateException: putFields may not be called in this context

or

Caused by: java.io.NotActiveException: writeFields() may only be called when the fields have not yet been written
    at org.jboss.marshalling.river.RiverObjectOutputStream.defaultWriteObject(RiverObjectOutputStream.java:162)
    at org.dom4j.QName.writeObject(QName.java:239) [dom4j.jar:1.6.1]

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content