"java.io.NotActiveException: writeFields() may only be called when the fields have not yet been written" when using commons-beanutils

Solution Unverified - Updated -

Issue

  • We are running into the following ERROR when using our application in a cluster (which seems to hinder session replication):
 ERROR [org.infinispan.marshall.VersionAwareMarshaller] (ajp-/10.0.0.1:8009-1) ISPN000065: Exception while marshalling object: 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.apache.commons.beanutils.DynaProperty.writeObject(DynaProperty.java:226) [commons-beanutils-1.6.jar:1.6]
...
Caused by: an exception which occurred:
    in field properties
    in field dynaClass
        ...

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.