]
Artur Mioduszewski edited comment on SEAMSECURITY-152 at 11/26/12 3:43 AM:
---------------------------------------------------------------------------
I have found workarround for this bug:
JBoss AS7 file-passivation-store configuration should be changed.
'idle-timeout' attribute should be set to longer time than ear application session
timeout.
For me, below configuration has helped:
{code}
<passivation-stores>
<file-passivation-store name="file" idle-timeout="1300"
idle-timeout-unit="SECONDS"/>
</passivation-stores>
{code}
was (Author: kliczko):
I have found workarround for this bug:
JBoss AS7 file-passivation-store configuration should be changed.
'idle-timeout' attribute should be set to time longer ear application session
timeout.
For me, below configuration has helped:
{code}
<passivation-stores>
<file-passivation-store name="file" idle-timeout="1300"
idle-timeout-unit="SECONDS"/>
</passivation-stores>
{code}
Occuring java.io.NotSerializableException:
org.jboss.seam.security.SecurityExtension for file-passivation-store
----------------------------------------------------------------------------------------------------------------
Key: SEAMSECURITY-152
URL:
https://issues.jboss.org/browse/SEAMSECURITY-152
Project: Seam Security
Issue Type: Bug
Environment: JBoss AS 7.1.1.Final ,
deployed EAR - engined by seam 3.1
Reporter: Artur Mioduszewski
For stateful configuration on AS 7.1.1.Final:
{code}
<session-bean>
<stateless>
<bean-instance-pool-ref
pool-name="slsb-strict-max-pool"/>
</stateless>
<stateful default-access-timeout="5000"
cache-ref="passivating"/>
<singleton default-access-timeout="5000"/>
</session-bean>
<mdb>
<resource-adapter-ref
resource-adapter-name="hornetq-ra"/>
<bean-instance-pool-ref
pool-name="mdb-strict-max-pool"/>
</mdb>
<pools>
<bean-instance-pools>
<strict-max-pool name="slsb-strict-max-pool"
max-pool-size="20" instance-acquisition-timeout="5"
instance-acquisition-timeout-unit="MINUTES"/>
<strict-max-pool name="mdb-strict-max-pool"
max-pool-size="20" instance-acquisition-timeout="5"
instance-acquisition-timeout-unit="MINUTES"/>
</bean-instance-pools>
</pools>
<caches>
<cache name="simple"
aliases="NoPassivationCache"/>
<cache name="passivating"
passivation-store-ref="file" aliases="SimpleStatefulCache"/>
</caches>
<passivation-stores>
<file-passivation-store name="file"/>
</passivation-stores>
{code}
following bug occurs:
{code}
01:53:06,659 INFO [org.jboss.as.ejb3.cache.spi.impl.PassivateTask:47]: JBAS014530: Cache
entry {[116, 101, 62, -40, 115, 95, 67, -89, -101, 122, 33, -85, 12, -1
21, -16, -18]} is in use: java.lang.IllegalStateException: JBAS014530: Cache entry {[116,
101, 62, -40, 115, 95, 67, -89, -101, 122, 33, -85, 12, -121, -16, -18]
} is in use
at
org.jboss.as.ejb3.cache.impl.backing.PassivatingBackingCacheImpl.passivate(PassivatingBackingCacheImpl.java:177)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.
Final]
at
org.jboss.as.ejb3.cache.impl.backing.PassivatingBackingCacheImpl.passivate(PassivatingBackingCacheImpl.java:60)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.F
inal]
at org.jboss.as.ejb3.cache.spi.impl.PassivateTask.run(PassivateTask.java:45)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[rt.jar:1.7.0_05]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
[rt.jar:1.7.0_05]
at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_05]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
[rt.jar:1.7.0_05]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
[rt.jar:1.7.0_05]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.7.0_05]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.7.0_05]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_05]
01:53:06,659 INFO [org.jboss.as.ejb3.cache.spi.impl.PassivateTask:47]: JBAS014530: Cache
entry {[-67, 30, -13, 127, -73, -125, 79, 54, -68, -71, -62, 24, -109,
-10, 51, -96]} is in use: java.lang.IllegalStateException: JBAS014530: Cache entry {[-67,
30, -13, 127, -73, -125, 79, 54, -68, -71, -62, 24, -109, -10, 51, -96]
} is in use
at
org.jboss.as.ejb3.cache.impl.backing.PassivatingBackingCacheImpl.passivate(PassivatingBackingCacheImpl.java:177)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.
Final]
at
org.jboss.as.ejb3.cache.impl.backing.PassivatingBackingCacheImpl.passivate(PassivatingBackingCacheImpl.java:60)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.F
inal]
at org.jboss.as.ejb3.cache.spi.impl.PassivateTask.run(PassivateTask.java:45)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[rt.jar:1.7.0_05]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
[rt.jar:1.7.0_05]
at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_05]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
[rt.jar:1.7.0_05]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
[rt.jar:1.7.0_05]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.7.0_05]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.7.0_05]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_05]
01:53:06,812 INFO [org.jboss.as.ejb3.cache.spi.impl.PassivateTask:47]: JBAS014538:
Failed to passivate c689b1b7-6d69-4f49-98c7-47b124e832cf: java.lang.RuntimeEx
ception: JBAS014538: Failed to passivate c689b1b7-6d69-4f49-98c7-47b124e832cf
at
org.jboss.as.ejb3.cache.spi.impl.FilePersistentObjectStore.store(FilePersistentObjectStore.java:248)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.as.ejb3.cache.spi.impl.FilePersistentObjectStore.store(FilePersistentObjectStore.java:52)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.as.ejb3.cache.impl.backing.SimpleBackingCacheEntryStore.passivate(SimpleBackingCacheEntryStore.java:155)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.
1.Final]
at
org.jboss.as.ejb3.cache.impl.backing.PassivatingBackingCacheImpl.passivate(PassivatingBackingCacheImpl.java:190)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.
Final]
at
org.jboss.as.ejb3.cache.impl.backing.PassivatingBackingCacheImpl.passivate(PassivatingBackingCacheImpl.java:60)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.F
inal]
at
org.jboss.as.ejb3.cache.impl.backing.SerializationGroupMemberContainer.prePassivate(SerializationGroupMemberContainer.java:174)
[jboss-as-ejb3-7.1.1.F
inal.jar:7.1.1.Final]
at
org.jboss.as.ejb3.cache.impl.backing.SerializationGroupMemberContainer.prePassivate(SerializationGroupMemberContainer.java:50)
[jboss-as-ejb3-7.1.1.Fi
nal.jar:7.1.1.Final]
at
org.jboss.as.ejb3.cache.impl.backing.PassivatingBackingCacheImpl.passivate(PassivatingBackingCacheImpl.java:184)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.
Final]
at
org.jboss.as.ejb3.cache.impl.backing.PassivatingBackingCacheImpl.passivate(PassivatingBackingCacheImpl.java:60)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.F
inal]
at org.jboss.as.ejb3.cache.spi.impl.PassivateTask.run(PassivateTask.java:45)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[rt.jar:1.7.0_05]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
[rt.jar:1.7.0_05]
at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_05]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
[rt.jar:1.7.0_05]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
[rt.jar:1.7.0_05]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.7.0_05]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.7.0_05]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_05]
Caused by: java.io.NotSerializableException: org.jboss.seam.security.SecurityExtension
at
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:891)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1063)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1063)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:585)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1063)
at
org.jboss.marshalling.river.RiverObjectOutputStream.defaultWriteObject(RiverObjectOutputStream.java:159)
at
java.util.Collections$SynchronizedCollection.writeObject(Collections.java:1659)
[rt.jar:1.7.0_05]
at sun.reflect.GeneratedMethodAccessor648.invoke(Unknown Source) [:1.7.0_05]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_05]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_05]
at
org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:175)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1007)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:998)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1063)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1063)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:680)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1063)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)
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_05]
at
java.util.concurrent.ConcurrentHashMap.writeObject(ConcurrentHashMap.java:1454)
[rt.jar:1.7.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_05]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_05]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_05]
at
org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:175)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1007)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1063)
at
org.jboss.marshalling.river.RiverObjectOutputStream.defaultWriteObject(RiverObjectOutputStream.java:159)
at
org.jboss.as.ejb3.cache.impl.backing.SerializationGroupImpl.writeObject(SerializationGroupImpl.java:347)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_05]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_05]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_05]
at
org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:175)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1007)
at
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)
at
org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
at
org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119)
at
org.jboss.as.ejb3.cache.spi.impl.FilePersistentObjectStore.store(FilePersistentObjectStore.java:239)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
... 17 more
Caused by: an exception which occurred:
in field extension
in field instance
in field c
in field parentDependentInstances
in field creationalContext
in field serializableInterceptors
in field memberObjects
in object org.jboss.as.ejb3.cache.impl.backing.SerializationGroupImpl@17cf8b80
{code}
Bug usually occurs every copule minutes inactivity with depployed application
(appplication session timeout is set for 20 minutes - bug appears after couple minutes )
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: