在jboss独立应用程序中集群出现故障时,会话未加载?

时间:2014-09-02 12:31:07

标签: java spring jboss

我在集群环境中的 jboss 独立应用程序中遇到并发出问题。我有两个节点,我使用 mod_cluster 进行负载平衡。节点1名称为 imran-pc ,节点2名称为 osama-pc 。这是群集关闭或关闭时的日志:

  

16:44:39,223 INFO [org.jboss.as.clustering.impl.CoreGroupCommunicationService.web](VERIFY_SUSPECT.TimerThread,web,imran-pc / web)JBAS010254:疑似成员:osama-pc / web   16:44:39,326 INFO [org.jboss.as.clustering.impl.CoreGroupCommunicationService.lifecycle.web](Incoming-3,null)JBAS010247:分区Web的新集群视图(id:4,delta:-1,merge: false):[imran-pc / web]   16:44:39,327 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport](Incoming-3,null)ISPN000094:收到新的集群视图:[imran-pc / web | 4] [imran-pc / web] < / p>

在此之后,当我进入我的html页面时,会发生以下异常:

  

16:44:58,693 WARN [org.jboss.as.clustering.web.infinispan](ajp - 192.168.0.148-8009-2)JBAS010322:无法加载会话+ Up723Rj0MQ8 + vQ7ChdKdyyy:java.lang.RuntimeException :JBAS010333:无法加载会话的会话属性:+ Up723Rj0MQ8 + vQ7ChdKdyyy       在org.jboss.as.clustering.web.infinispan.DistributedCacheManager $ 2.invoke(DistributedCacheManager.java:223)       在org.jboss.as.clustering.web.infinispan.DistributedCacheManager $ 2.invoke(DistributedCacheManager.java:206)       在org.jboss.as.clustering.infinispan.invoker.RetryingCacheInvoker.invoke(RetryingCacheInvoker.java:60)       at org.jboss.as.clustering.web.infinispan.DistributedCacheManager $ ForceSynchronousCacheInvoker.invoke(DistributedCacheManager.java:518)       在org.jboss.as.clustering.web.infinispan.DistributedCacheManager.invoke(DistributedCacheManager.java:486)       在org.jboss.as.clustering.web.infinispan.DistributedCacheManager.getData(DistributedCacheManager.java:232)       在org.jboss.as.clustering.web.infinispan.DistributedCacheManager.getSessionData(DistributedCacheManager.java:190)       at org.jboss.as.web.session.DistributableSessionManager.loadSession(DistributableSessionManager.java:1390)[jboss-as-web-7.1.1.Final.jar:7.1.1.Final]       at org.jboss.as.web.session.DistributableSessionManager.findSession(DistributableSessionManager.java:686)[jboss-as-web-7.1.1.Final.jar:7.1.1.Final]       at org.jboss.as.web.session.DistributableSessionManager.findSession(DistributableSessionManager.java:85)[jboss-as-web-7.1.1.Final.jar:7.1.1.Final]       在org.apache.catalina.connector.Request.doGetSession(Request.java:2618)[jbossweb-7.0.13.Final.jar:]       在org.apache.catalina.connector.Request.getSession(Request.java:2375)[jbossweb-7.0.13.Final.jar:]       at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:81)[jboss-as-web-7.1.1.Final.jar:7.1.1.Final]       在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)[jbossweb-7.0.13.Final.jar:]       在org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)[jbossweb-7.0.13.Final.jar:]       在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)[jbossweb-7.0.13.Final.jar:]       在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)[jbossweb-7.0.13.Final.jar:]       在org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:505)[jbossweb-7.0.13.Final.jar:]       在org.apache.coyote.ajp.AjpProtocol $ AjpConnectionHandler.process(AjpProtocol.java:445)[jbossweb-7.0.13.Final.jar:]       在org.apache.tomcat.util.net.JIoEndpoint $ Worker.run(JIoEndpoint.java:930)[jbossweb-7.0.13.Final.jar:]       在java.lang.Thread.run(Thread.java:662)[rt.jar:1.6.0_27]   引起:java.lang.ClassNotFoundException:com.tabs.bcrs.common.UserSesionBean $$ EnhancerByCGLIB $$ 38d509db来自[Module&#34; deployment.WEB-BCRS-VEH.war:main&#34;来自服务模块加载器]       在org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)       在org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)       在org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)       在org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)       在org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)       在org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)       at java.lang.Class.forName0(Native Method)[rt.jar:1.6.0_27]       at java.lang.Class.forName(Class.java:247)[rt.jar:1.6.0_27]       在org.jboss.marshalling.ModularClassResolver.resolveClass(ModularClassResolver.java:106)       在org.jboss.as.clustering.ClassLoaderAwareClassResolver.resolveClass(ClassLoaderAwareClassResolver.java:92)       在org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:892)       在org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1204)       在org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)       在org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)       在org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1677)       在org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1593)       在org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1557)       在org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1235)       在org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)       在org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)       在org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1677)       在org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1593)       在org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1235)       在org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)       在org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)       在org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1677)       在org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1593)       在org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1235)       在org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)       在org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)       在org.jboss.marshalling.river.RiverUnmarshaller.doReadMapObject(RiverUnmarshaller.java:195)       在org.jboss.marshalling.river.RiverUnmarshaller.readMapData(RiverUnmarshaller.java:793)       at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:682)       在org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)       at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37)       在org.jboss.as.clustering.SimpleMarshalledValue.get(SimpleMarshalledValue.java:108)       at org.jboss.as.clustering.web.impl.SessionAttributeMarshallerImpl.unmarshal(SessionAttributeMarshallerImpl.java:72)       在org.jboss.as.clustering.web.infinispan.CoarseSessionAttributeStorage.load(CoarseSessionAttributeStorage.java:64)       在org.jboss.as.clustering.web.infinispan.DistributedCacheManager $ 2.invoke(DistributedCacheManager.java:221)       ......还有20个

它没有合并我的会话。我不知道为什么会出现这个错误。 我正在使用 spring security ,我检查 usersessionbean 也在 sessionRegistory 中添加。为什么发生这种异常?是因为 Jboss配置?我的应用程序中是否存在 mod_cluster 配置或问题?

0 个答案:

没有答案