0 Replies Latest reply on Sep 17, 2013 3:01 PM by Prasanta Lenka

    java.io.NotActiveException: Fields were never written

    Prasanta Lenka

      We are trying to run a flex application from jboss with below technology stack and  getting "java.io.NotActiveException: Fields were never written" .

      1.Flex4.1

      2.Spring3.2

      3. BlazeDS 4

      4.JBOSS EAP 6.1.1

      5.java1.6

       

      We tried to get help from JBOSS support team and got the feedback to correct HttpFlexSession classes from flex. 

       

      Kindly advise If anyone already encountered above problem   ?

       

      Thanks in Advance.

       

      Complete console error is as below:

       

        -> toString = Bucket{entries={URCi4tm+YUN7RHAtKZXn9UZL=ImmortalCacheEntry{key=URCi4tm+YUN7RHAtKZXn9UZL, value=ImmortalCacheValue {value=AtomicHashMap}}}, bucketId='-817514496'}

      16:17:55,330 ERROR [org.infinispan.loaders.file.FileCacheStore] (http-/10.197.128.38:8230-2) ISPN000063: Exception while saving bucket Bucket{entries={URCi4tm+YUN7RHAtKZXn9UZL=ImmortalCacheEntry{key=URCi4tm+YUN7RHAtKZXn9UZL, value=ImmortalCacheValue {value=AtomicHashMap}}}, bucketId='-817514496'}: java.io.NotActiveException: Fields were never written
      at org.jboss.marshalling.river.RiverObjectOutputStream.finish(RiverObjectOutputStream.java:1 75)
      at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.jav a:1009)
      at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)
      at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:680)
      at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
      at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119)
      at org.jboss.as.clustering.SimpleMarshalledValue.getBytes(SimpleMarshalledValue.java:85)
      at org.jboss.as.clustering.SimpleMarshalledValue.writeExternal(SimpleMarshalledValue.java:17 5)
      at org.jboss.as.clustering.infinispan.io.ExternalizableExternalizer.writeObject(Externalizab leExternalizer.java:47)
      at org.jboss.as.clustering.infinispan.io.ExternalizableExternalizer.writeObject(Externalizab leExternalizer.java:36)
      at org.infinispan.marshall.jboss.ExternalizerTable$ForeignExternalizerAdapter.writeObject(Ex ternalizerTable.java:459)
      at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:145)
      at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
      at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119)
      at org.infinispan.marshall.MarshallUtil.marshallMap(MarshallUtil.java:59)
      at org.infinispan.marshall.exts.MapExternalizer.writeObject(MapExternalizer.java:63)
      at org.infinispan.marshall.exts.MapExternalizer.writeObject(MapExternalizer.java:47)
      at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.writeObject(Externali zerTable.java:410)
      at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:145)
      at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
      at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119)
      at org.infinispan.atomic.AtomicHashMap$Externalizer.writeObject(AtomicHashMap.java:250)
      at org.infinispan.atomic.AtomicHashMap$Externalizer.writeObject(AtomicHashMap.java:247)
      at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.writeObject(Externali zerTable.java:410)
      at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:145)
      at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
      at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119)
      at org.infinispan.container.entries.ImmortalCacheEntry$Externalizer.writeObject(ImmortalCach eEntry.java:154)
      at org.infinispan.container.entries.ImmortalCacheEntry$Externalizer.writeObject(ImmortalCach eEntry.java:150)
      at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.writeObject(Externali zerTable.java:410)
      at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:145)
      at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
      at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119)
      at org.infinispan.loaders.bucket.Bucket$Externalizer.writeObject(Bucket.java:148)
      at org.infinispan.loaders.bucket.Bucket$Externalizer.writeObject(Bucket.java:139)
      at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.writeObject(Externali zerTable.java:410)
      at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:145)
      at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
      at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119)
      at org.infinispan.marshall.jboss.AbstractJBossMarshaller.objectToObjectStream(AbstractJBossM arshaller.java:96)
      at org.infinispan.marshall.VersionAwareMarshaller.objectToBuffer(VersionAwareMarshaller.java :92)
      at org.infinispan.marshall.AbstractMarshaller.objectToByteBuffer(AbstractMarshaller.java:94)
      at org.infinispan.marshall.AbstractMarshaller.objectToByteBuffer(AbstractMarshaller.java:84)
      at org.infinispan.marshall.AbstractDelegatingMarshaller.objectToByteBuffer(AbstractDelegatin gMarshaller.java:94)
      at org.infinispan.loaders.file.FileCacheStore.updateBucket(FileCacheStore.java:335)
      at org.infinispan.loaders.bucket.BucketBasedCacheStore.insertBucket(BucketBasedCacheStore.ja va:137)
      at org.infinispan.loaders.bucket.BucketBasedCacheStore.storeLockSafe(BucketBasedCacheStore.j ava:94)
      at org.infinispan.loaders.bucket.BucketBasedCacheStore.storeLockSafe(BucketBasedCacheStore.j ava:49)
      at org.infinispan.loaders.LockSupportCacheStore.store(LockSupportCacheStore.java:213)
      at org.infinispan.loaders.AbstractCacheStore.applyModifications(AbstractCacheStore.java:126)
      at org.infinispan.loaders.AbstractCacheStore.commit(AbstractCacheStore.java:163)
      at org.infinispan.interceptors.CacheStoreInterceptor.commitCommand(CacheStoreInterceptor.jav a:161)
      at org.infinispan.interceptors.CacheStoreInterceptor.visitCommitCommand(CacheStoreIntercepto r.java:143)
      at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:60)
      at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandIntercep tor.java:120)
      at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java :134)
      at org.infinispan.commands.AbstractVisitor.visitCommitCommand(AbstractVisitor.java:136)
      at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:60)
      at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandIntercep tor.java:120)
      at org.infinispan.interceptors.EntryWrappingInterceptor.visitCommitCommand(EntryWrappingInte rceptor.java:116)
      at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:60)
      at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandIntercep tor.java:120)
      at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java :134)
      at org.infinispan.commands.AbstractVisitor.visitCommitCommand(AbstractVisitor.java:136)
      at org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.visitCommitCommand(Abstr actTxLockingInterceptor.java:101)
      at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:60)
      at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandIntercep tor.java:120)
      at org.infinispan.interceptors.NotificationInterceptor.visitCommitCommand(NotificationInterc eptor.java:65)
      at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:60)
      at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandIntercep tor.java:120)
      at org.infinispan.interceptors.TxInterceptor.visitCommitCommand(TxInterceptor.java:153)
      at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:60)
      at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandIntercep tor.java:120)
      at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java :134)
      at org.infinispan.commands.AbstractVisitor.visitCommitCommand(AbstractVisitor.java:136)
      at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:60)
      at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandIntercep tor.java:120)
      at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInter ceptor.java:128)
      at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextI nterceptor.java:92)
      at org.infinispan.commands.AbstractVisitor.visitCommitCommand(AbstractVisitor.java:136)
      at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:60)
      at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandIntercep tor.java:120)
      at org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:92 )
      at org.infinispan.commands.AbstractVisitor.visitCommitCommand(AbstractVisitor.java:136)
      at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:60)
      at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:343)
      at org.infinispan.transaction.TransactionCoordinator.commit(TransactionCoordinator.java:182)
      at org.infinispan.transaction.synchronization.SynchronizationAdapter.afterCompletion(Synchro nizationAdapter.java:81)
      at org.infinispan.transaction.tm.DummyTransaction.notifyAfterCompletion(DummyTransaction.jav a:285)
      at org.infinispan.transaction.tm.DummyTransaction.runCommitTx(DummyTransaction.java:334)
      at org.infinispan.transaction.tm.DummyTransaction.commit(DummyTransaction.java:91)
      at org.infinispan.transaction.tm.DummyBaseTransactionManager.commit(DummyBaseTransactionMana ger.java:102)
      at org.jboss.as.clustering.web.impl.TransactionBatchingManager.endBatch(TransactionBatchingM anager.java:75)
      at org.jboss.as.web.session.DistributableSessionManager.processSessionRepl(DistributableSess ionManager.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(DistributableSessionMan ager.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:1 42) [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.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociati onValve.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.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.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja va:653) [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:662) [rt.jar:1.6.0_29]