i'm running wildfly cr1 and wicket 6.13 in a fairly simple web application
that uses a subclass of AuthenticatedWebSession that looks a bit like this:


public class WebSession extends AuthenticatedWebSession {
        private static final Logger log = Logger.getLogger(WebSession.class);
        private static final long serialVersionUID = 3L;

        private ObjectId userId;
        transient private User user;

        transient private Token twitterToken;
        transient private OAuthService twitterService;
        transient private Token googleToken;
        transient private OAuthService googleService;
...
}

with just the methods taken out.

i find that when i redeploy a different war file -- but the session object
is unchanged -- sessions on wildfly fail to deserialize. i get the following
error:


2014-01-30 07:18:13,965 ERROR
[org.infinispan.interceptors.InvocationContextInterceptor]
(SessionExpirationScheduler - 1) ISPN000136: Execution error:
org.infinispan.commons.CacheListenerException: ISPN000280: Caught exception
[java.lang
.IllegalArgumentException] while invoking method [public void
org.wildfly.clustering.web.infinispan.session.InfinispanSessionManager.activated(org.infinispan.notifications.cachelistener.event.CacheEntryActivatedEvent)]
on listener instan
ce:
org.wildfly.clustering.web.infinispan.session.InfinispanSessionManager@288f08b2
        at
org.infinispan.notifications.AbstractListenerImpl$ListenerInvocation$1.run(AbstractListenerImpl.java:211)
        at
org.infinispan.util.concurrent.WithinThreadExecutor.execute(WithinThreadExecutor.java:22)
        at
org.infinispan.notifications.AbstractListenerImpl$ListenerInvocation.invoke(AbstractListenerImpl.java:229)
        at
org.infinispan.notifications.AbstractListenerImpl$ListenerInvocation.invoke(AbstractListenerImpl.java:192)
        at
org.infinispan.notifications.cachelistener.CacheNotifierImpl.notifyCacheEntryActivated(CacheNotifierImpl.java:355)
        at
org.infinispan.interceptors.ActivationInterceptor.sendNotification(ActivationInterceptor.java:109)
        at
org.infinispan.interceptors.CacheLoaderInterceptor.recordLoadedEntry(CacheLoaderInterceptor.java:325)
        at
org.infinispan.interceptors.CacheLoaderInterceptor.loadIfNeeded(CacheLoaderInterceptor.java:278)
        at
org.infinispan.interceptors.ActivationInterceptor.loadIfNeeded(ActivationInterceptor.java:86)
        at
org.infinispan.interceptors.CacheLoaderInterceptor.loadIfNeededAndUpdateStats(CacheLoaderInterceptor.java:335)
        at
org.infinispan.interceptors.CacheLoaderInterceptor.visitGetKeyValueCommand(CacheLoaderInterceptor.java:105)
        at
org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)
        ...
Caused by: java.lang.IllegalArgumentException:
java.io.InvalidClassException: com.mypackage.WebSession; Module load failed
        at
org.wildfly.clustering.web.infinispan.session.MarshalledValueSessionAttributeMarshaller.read(MarshalledValueSessionAttributeMarshaller.java:48)
        at
org.wildfly.clustering.web.infinispan.session.MarshalledValueSessionAttributeMarshaller.read(MarshalledValueSessionAttributeMarshaller.java:33)
        at
org.wildfly.clustering.web.infinispan.session.coarse.CoarseImmutableSessionAttributes.getAttributes(CoarseImmutableSessionAttributes.java:46)
        at
org.wildfly.clustering.web.infinispan.session.coarse.CoarseImmutableSessionAttributes.getAttributeNames(CoarseImmutableSessionAttributes.java:51)
        at
org.wildfly.clustering.web.infinispan.session.InfinispanSessionManager.findListeners(InfinispanSessionManager.java:381)
        at
org.wildfly.clustering.web.infinispan.session.InfinispanSessionManager.triggerPostActivationEvents(InfinispanSessionManager.java:370)
        at
org.wildfly.clustering.web.infinispan.session.InfinispanSessionManager.activated(InfinispanSessionManager.java:272)
        at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
[:1.7.0_25]
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_25]
        at java.lang.reflect.Method.invoke(Method.java:606)
[rt.jar:1.7.0_25]
        at
org.infinispan.notifications.AbstractListenerImpl$ListenerInvocation$1.run(AbstractListenerImpl.java:207)
        ... 58 more
Caused by: java.io.InvalidClassException: com.mypackage.WebSession; Module
load failed
        at
org.jboss.marshalling.ModularClassResolver.resolveClass(ModularClassResolver.java:108)
        at
org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:947)
        at
org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1243)
        at
org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:276)
        ...
        ... 68 more
Caused by: org.jboss.modules.ModuleNotFoundException:
deployment.files-01-29_215042.war:main
        at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:240)
[jboss-modules.jar:1.3.0.Final]
        at
org.jboss.marshalling.ModularClassResolver.resolveClass(ModularClassResolver.java:106)
        ... 80 more
Caused by: an exception which occurred:
        in map value at index [0] of size [2]

at first i thought it was because an object created by an @Inject annotation
but i've removed it to test. i'm not sure if its a wicket or wildfly issue
as I don't have an quick way to isolate the two right now.

has anybody else seem similar issues? the biggest problem with this is that
browsers that were running before continue to attempt to use the bad session
until they clear cookies. it effectively breaks the site unless i restart
jboss.

-miguel


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-session-and-wildfly-tp4664073.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to