[#3420] - JRVirtualPrintPage serialization violates java serialization spec

Category:
Bug report
Priority:
Urgent
Status:
New
Project: Severity:
Block
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

The private serialization methods of net.sf.jasperreports.engine.base.JRVirtualPrintPage must call default[Read|Write]Object() on the object input/output stream before any custom de/serialization logic.

According to the Java serialization spec:
http://java.sun.com/javase/6/docs/platform/serialization/spec/output.htm...
"The class's writeObject method, if implemented, is responsible for saving the state of the class. Either ObjectOutputStream's defaultWriteObject or writeFields method must be called once (and only once) before writing any optional data that will be needed by the corresponding readObject method to restore the state of the object; even if no optional data is written, defaultWriteObject or writeFields must still be invoked once. If defaultWriteObject or writeFields is not invoked once prior to the writing of optional data (if any), then the behavior of instance deserialization is undefined in cases where the ObjectInputStream cannot resolve the class which defined the writeObject method in question."

http://java.sun.com/javase/6/docs/platform/serialization/spec/input.html...
"The readObject method of the class, if implemented, is responsible for restoring the state of the class. The values of every field of the object whether transient or not, static or not are set to the default value for the fields type. Either ObjectInputStream's defaultReadObject or readFields method must be called once (and only once) before reading any optional data written by the corresponding writeObject method; even if no optional data is read, defaultReadObject or readFields must still be invoked once."

One consequence of this spec violation is that you cannot use JBoss Marshalling to serialize a session. For details, see the error log

08:18:58,369 ERROR [ajp-/10.220.60.122:8109-9] VersionAwareMarshaller ISPN000065: Exception while marshalling object: java.io.NotActiveException: Fields were never written
at org.jboss.marshalling.river.RiverObjectOutputStream.finish(RiverObjectOutputStream.java:175)
at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1012)
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:888)
at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1066)
at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1022)
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:888)
at org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:69)
at org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:60)
at org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:54)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342) [rt.jar:1.7.0_17]
at net.sf.jasperreports.engine.base.JRVirtualPrintPage.writeObject(JRVirtualPrintPage.java:274) [jasperreports-5.0.0.jar:5.5.1]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_17]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_17]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_17]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_17]
at org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:268)
at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1010)
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:888)
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:588)
at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1066)
at org.jboss.marshalling.river.RiverObjectOutputStream.defaultWriteObject(RiverObjectOutputStream.java:159)
at java.util.Collections$SynchronizedCollection.writeObject(Collections.java:1661) [rt.jar:1.7.0_17]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_17]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_17]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_17]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_17]
at org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:268)
at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1010)
at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1001)
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:888)
at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1066)
at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1022)
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:888)
at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1066)
at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1022)
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:888)
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:683)
at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:115)
at org.jboss.as.clustering.SimpleMarshalledValue.getBytes(SimpleMarshalledValue.java:85)
at org.jboss.as.clustering.SimpleMarshalledValue.writeExternal(SimpleMarshalledValue.java:175)
at org.jboss.as.clustering.infinispan.io.ExternalizableExternalizer.writeObject(ExternalizableExternalizer.java:47)
at org.jboss.as.clustering.infinispan.io.ExternalizableExternalizer.writeObject(ExternalizableExternalizer.java:36)
at org.infinispan.marshall.jboss.ExternalizerTable$ForeignExternalizerAdapter.writeObject(ExternalizerTable.java:459) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:148)
at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:115)
at org.infinispan.atomic.PutOperation$Externalizer.writeObject(PutOperation.java:111) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.atomic.PutOperation$Externalizer.writeObject(PutOperation.java:107) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.writeObject(ExternalizerTable.java:410) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:148)
at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:115)
at org.infinispan.marshall.MarshallUtil.marshallCollection(MarshallUtil.java:48) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.marshall.exts.LinkedListExternalizer.writeObject(LinkedListExternalizer.java:50) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.marshall.exts.LinkedListExternalizer.writeObject(LinkedListExternalizer.java:45) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.writeObject(ExternalizerTable.java:410) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:148)
at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:115)
at org.infinispan.atomic.AtomicHashMapDelta$Externalizer.writeObject(AtomicHashMapDelta.java:113) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.atomic.AtomicHashMapDelta$Externalizer.writeObject(AtomicHashMapDelta.java:109) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.writeObject(ExternalizerTable.java:410) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:148)
at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:115)
at org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeCommandParameters(ReplicableCommandExternalizer.java:85) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeObject(ReplicableCommandExternalizer.java:72) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeObject(ReplicableCommandExternalizer.java:60) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.writeObject(ExternalizerTable.java:410) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:148)
at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:115)
at org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeCommandParameters(ReplicableCommandExternalizer.java:87) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.marshall.exts.CacheRpcCommandExternalizer.marshallParameters(CacheRpcCommandExternalizer.java:128) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.marshall.exts.CacheRpcCommandExternalizer.writeObject(CacheRpcCommandExternalizer.java:112) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.marshall.exts.CacheRpcCommandExternalizer.writeObject(CacheRpcCommandExternalizer.java:73) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.writeObject(ExternalizerTable.java:410) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:148)
at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:115)
at org.infinispan.marshall.jboss.AbstractJBossMarshaller.objectToObjectStream(AbstractJBossMarshaller.java:96) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.marshall.VersionAwareMarshaller.objectToBuffer(VersionAwareMarshaller.java:92) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.marshall.AbstractMarshaller.objectToBuffer(AbstractMarshaller.java:64) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.marshall.AbstractDelegatingMarshaller.objectToBuffer(AbstractDelegatingMarshaller.java:109) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.remoting.transport.jgroups.MarshallerAdapter.objectToBuffer(MarshallerAdapter.java:45) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.marshallCall(CommandAwareRpcDispatcher.java:279) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.processSingleCall(CommandAwareRpcDispatcher.java:300) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:179) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeRemotely(JGroupsTransport.java:515) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:169) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:190) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:247) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:234) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:229) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.remoting.rpc.RpcManagerImpl.broadcastRpcCommand(RpcManagerImpl.java:208) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.ReplicationInterceptor.broadcastPrepare(ReplicationInterceptor.java:109) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.ReplicationInterceptor.visitPrepareCommand(ReplicationInterceptor.java:101) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:120) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:134) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:126) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:120) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:134) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:126) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:120) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.EntryWrappingInterceptor.visitPrepareCommand(EntryWrappingInterceptor.java:106) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:120) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.invokeNextAndCommitIf1Pc(AbstractTxLockingInterceptor.java:108) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.locking.OptimisticLockingInterceptor.visitPrepareCommand(OptimisticLockingInterceptor.java:135) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:120) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.NotificationInterceptor.visitPrepareCommand(NotificationInterceptor.java:58) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:120) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.TxInterceptor.invokeNextInterceptorAndVerifyTransaction(TxInterceptor.java:128) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.TxInterceptor.visitPrepareCommand(TxInterceptor.java:115) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:120) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:134) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:126) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.statetransfer.TransactionSynchronizerInterceptor.visitPrepareCommand(TransactionSynchronizerInterceptor.java:61) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:120) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.statetransfer.StateTransferInterceptor.handleTopologyAffectedCommand(StateTransferInterceptor.java:216) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.statetransfer.StateTransferInterceptor.handleTxCommand(StateTransferInterceptor.java:189) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.statetransfer.StateTransferInterceptor.visitPrepareCommand(StateTransferInterceptor.java:93) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:120) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:134) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:126) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:120) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:128) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:92) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:126) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:120) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:92) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:126) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:343) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.transaction.TransactionCoordinator.commit(TransactionCoordinator.java:175) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.transaction.synchronization.SynchronizationAdapter.afterCompletion(SynchronizationAdapter.java:81) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.transaction.tm.DummyTransaction.notifyAfterCompletion(DummyTransaction.java:285) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.transaction.tm.DummyTransaction.runCommitTx(DummyTransaction.java:334) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.transaction.tm.DummyTransaction.commit(DummyTransaction.java:91) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.infinispan.transaction.tm.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:102) [infinispan-core-5.2.7.Final-redhat-1-bz-1013819.jar:5.2.7.Final-redhat-1]
at org.jboss.as.clustering.web.impl.TransactionBatchingManager.endBatch(TransactionBatchingManager.java:75)
at org.jboss.as.web.session.DistributableSessionManager.processSessionRepl(DistributableSessionManager.java:1564) [jboss-as-web-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
at org.jboss.as.web.session.DistributableSessionManager.storeSession(DistributableSessionManager.java:865) [jboss-as-web-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
at org.jboss.as.web.session.InstantSnapshotManager.snapshot(InstantSnapshotManager.java:47) [jboss-as-web-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
at org.jboss.as.web.session.ClusteredSessionValve.handleRequest(ClusteredSessionValve.java:142) [jboss-as-web-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
at org.jboss.as.web.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:99) [jboss-as-web-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
at org.jboss.as.web.session.JvmRouteValve.invoke(JvmRouteValve.java:92) [jboss-as-web-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
at org.jboss.as.web.session.LockingValve.invoke(LockingValve.java:64) [jboss-as-web-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:499) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
at org.jboss.as.web.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:384) [jboss-as-web-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:488) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:420) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
Caused by: an exception which occurred:
in field store
in field c
in field pages
in field report
in object java.util.HashMap@2e439fd9
in object org.jboss.as.clustering.SimpleMarshalledValue@2e439fd9
in object org.infinispan.atomic.PutOperation@b8c6af96
in object java.util.LinkedList@91c709f1
in object org.infinispan.atomic.AtomicHashMapDelta@139ffc34
in object org.infinispan.commands.write.PutKeyValueCommand@2e3646d5
in object org.infinispan.commands.tx.PrepareCommand@a12f7c7e

v5.5
fernando.rubbo's picture
Joined: Feb 25 2014 - 4:44am
Last seen: 8 years 8 months ago

1 Comment:

#1
  • Assigned:nobody»

Any idea about when this BUG will be fixed?

As an workaround, we have downloaded the source code and have added 'out.defaultWriteObject()' in all serializable object and everything worked as expected (the same was made for readObject).

Feedback
randomness