[jboss-dev-forums] [Design of POJO Server] - Re: FIELD granularity web session replication tests

bstansberry@jboss.com do-not-reply at jboss.com
Wed Feb 6 16:39:44 EST 2008


Problem seems to arise from the FieldBasedSessionPassivationTestCase.testRedeploy() test, which deploys a war, undeploys it and deploys it again.  Trying to store a Person object in PojoCache fails after the redeploy:


  | 2008-02-06 14:07:02,175 ERROR [org.apache.catalina.connector.CoyoteAdapter] An exception or error occurred in the container during the request processing
  | java.lang.NullPointerException
  | 	at org.jboss.test.cluster.web.aop.Person._getInstanceAdvisor(Person.java)
  | 	at org.jboss.cache.pojo.impl.AdvisedPojoHandler.get(AdvisedPojoHandler.java:60)
  | 	at org.jboss.cache.pojo.impl.PojoCacheDelegate.getObjectInternal(PojoCacheDelegate.java:350)
  | 	at org.jboss.cache.pojo.impl.PojoCacheDelegate.getObject(PojoCacheDelegate.java:102)
  | 	at org.jboss.cache.pojo.impl.PojoCacheImpl.getObject(PojoCacheImpl.java:207)
  | 	at org.jboss.cache.pojo.impl.PojoCacheImpl.getObject(PojoCacheImpl.java:202)
  | 	at org.jboss.cache.pojo.impl.PojoCacheImpl.org$jboss$cache$pojo$impl$PojoCacheImpl$find$aop(PojoCacheImpl.java:192)
  | 	at org.jboss.cache.pojo.impl.PojoCacheImpl$PojoCacheImplAdvisor.find_N_7063709169143275953(PojoCacheImpl$PojoCacheImplAdvisor.java)
  | 	at org.jboss.cache.pojo.impl.PojoCacheImpl.find(PojoCacheImpl.java)
  | 	at org.jboss.cache.pojo.impl.PojoCacheImpl.find(PojoCacheImpl.java:184)
  | 	at org.jboss.web.tomcat.service.session.JBossCacheService.getPojo(JBossCacheService.java:760)
  | 	at org.jboss.web.tomcat.service.session.FieldBasedClusteredSession.populateAttributes(FieldBasedClusteredSession.java:179)
  | 	at org.jboss.web.tomcat.service.session.JBossCacheClusteredSession.initAfterLoad(JBossCacheClusteredSession.java:67)
  | 	at org.jboss.web.tomcat.service.session.JBossCacheManager.loadSession(JBossCacheManager.java:1224)
  | 	at org.jboss.web.tomcat.service.session.JBossCacheManager.findSession(JBossCacheManager.java:933)
  | 	at org.apache.catalina.connector.Request.doGetSession(Request.java:2306)
  | 	at org.apache.catalina.connector.Request.getSessionInternal(Request.java:2225)
  | 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:394)
  | 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:90)
  | 	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:96)
  | 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  | 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  | 	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
  | 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:309)
  | 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  | 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
  | 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  | 	at java.lang.Thread.run(Thread.java:595)
  | 

Trying to track down what's happening here in a debugger, I see that the Person class being manipulated is the old class from before the redeploy.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127183#4127183

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127183



More information about the jboss-dev-forums mailing list