5 Replies Latest reply on Jan 22, 2013 1:32 PM by joseotavio

    JBoss AS 7.1.1 Final -  Infinispan Replication mode - Jgroups configuration

    JBoss AS 7 User Newbie

      Hi,

       

      I am trying build an application on jboss as 7.1.1 Final with infinispan as a cache provider and jgroups tcp configuration to access from two different machines.

       

      The application is starting up successfully with the folling configuration done with reference to the link below :

      http://middlewaremagic.com/jboss/?p=2015

       

      Both the servers startup fine on different machines, but when i add an entry to  the cache from any one of the machine and try to access the same on another machine getting the followi

       

      HTTP Status 500 - ________________________________________

       

      HTTP Status 500 -

      ________________________________________

      type Exception report

      message

      description The server encountered an internal error () that prevented it from fulfilling this request.

      exception

      javax.servlet.ServletException: Unable to unmarshall value

              javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)

      root cause

      org.infinispan.CacheException: Unable to unmarshall value

              org.infinispan.marshall.MarshalledValue.deserialize0(MarshalledValue.java:159)

              org.infinispan.marshall.MarshalledValue.deserialize(MarshalledValue.java:143)

              org.infinispan.marshall.MarshalledValue.get(MarshalledValue.java:224)

              org.infinispan.interceptors.MarshalledValueInterceptor.visitValuesCommand(MarshalledValueInterceptor.java:234)

              org.infinispan.commands.read.ValuesCommand.acceptVisitor(ValuesCommand.java:56)

              org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)

              org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130)

              org.infinispan.commands.AbstractVisitor.visitValuesCommand(AbstractVisitor.java:103)

              org.infinispan.commands.read.ValuesCommand.acceptVisitor(ValuesCommand.java:56)

              org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)

              org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130)

              org.infinispan.commands.AbstractVisitor.visitValuesCommand(AbstractVisitor.java:103)

              org.infinispan.commands.read.ValuesCommand.acceptVisitor(ValuesCommand.java:56)

              org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)

              org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130)

              org.infinispan.commands.AbstractVisitor.visitValuesCommand(AbstractVisitor.java:103)

              org.infinispan.commands.read.ValuesCommand.acceptVisitor(ValuesCommand.java:56)

              org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)

              org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:130)

              org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:89)

              org.infinispan.commands.AbstractVisitor.visitValuesCommand(AbstractVisitor.java:103)

              org.infinispan.commands.read.ValuesCommand.acceptVisitor(ValuesCommand.java:56)

              org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)

              org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130)

              org.infinispan.commands.AbstractVisitor.visitValuesCommand(AbstractVisitor.java:103)

              org.infinispan.commands.read.ValuesCommand.acceptVisitor(ValuesCommand.java:56)

              org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)

              org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:86)

              org.infinispan.commands.AbstractVisitor.visitValuesCommand(AbstractVisitor.java:103)

              org.infinispan.commands.read.ValuesCommand.acceptVisitor(ValuesCommand.java:56)

              org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:345)

              org.infinispan.CacheImpl.values(CacheImpl.java:316)

              org.infinispan.CacheImpl.values(CacheImpl.java:309)

              org.infinispan.AbstractDelegatingCache.values(AbstractDelegatingCache.java:283)

              com.sample.bean.PropertyManager.getCacheList(PropertyManager.java:67)

              sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              java.lang.reflect.Method.invoke(Method.java:597)

              javax.el.BeanELResolver.getValue(BeanELResolver.java:302)

              com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)

              com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)

              org.apache.el.parser.AstValue.getValue(AstValue.java:169)

              org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189)

              com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)

              javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)

              javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)

              javax.faces.component.UIData.getValue(UIData.java:731)

              javax.faces.component.UIData.getDataModel(UIData.java:1798)

              javax.faces.component.UIData.setRowIndexWithoutRowStatePreserved(UIData.java:484)

              javax.faces.component.UIData.setRowIndex(UIData.java:473)

              com.sun.faces.renderkit.html_basic.TableRenderer.encodeBegin(TableRenderer.java:81)

              javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:820)

              javax.faces.component.UIData.encodeBegin(UIData.java:1118)

              javax.faces.component.UIComponent.encodeAll(UIComponent.java:1777)

              javax.faces.render.Renderer.encodeChildren(Renderer.java:168)

              javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)

              javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)

              javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)

              javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)

              com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402)

              com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)

              com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)

              com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

              com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

              javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

       

      root cause

      java.lang.ClassNotFoundException: com.sample.model.Property from [Module "org.jboss.as.clustering.infinispan:main" from local module loader @eb017e (roots: D:\jboss-as-7.1.1.Final\modules)]

              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)

              java.lang.Class.forName0(Native Method)

              java.lang.Class.forName(Class.java:247)

              org.jboss.marshalling.AbstractClassResolver.loadClass(AbstractClassResolver.java:135)

              org.jboss.marshalling.AbstractClassResolver.resolveClass(AbstractClassResolver.java:116)

              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.AbstractObjectInput.readObject(AbstractObjectInput.java:37)

              org.infinispan.marshall.jboss.AbstractJBossMarshaller.objectFromObjectStream(AbstractJBossMarshaller.java:148)

              org.infinispan.marshall.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:110)

              org.infinispan.marshall.AbstractMarshaller.objectFromByteBuffer(AbstractMarshaller.java:90)

              org.infinispan.marshall.AbstractDelegatingMarshaller.objectFromByteBuffer(AbstractDelegatingMarshaller.java:79)

              org.infinispan.marshall.MarshalledValue.deserialize0(MarshalledValue.java:154)

              org.infinispan.marshall.MarshalledValue.deserialize(MarshalledValue.java:143)

              org.infinispan.marshall.MarshalledValue.get(MarshalledValue.java:224)

              org.infinispan.interceptors.MarshalledValueInterceptor.visitValuesCommand(MarshalledValueInterceptor.java:234)

              org.infinispan.commands.read.ValuesCommand.acceptVisitor(ValuesCommand.java:56)

              org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)

              org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130)

              org.infinispan.commands.AbstractVisitor.visitValuesCommand(AbstractVisitor.java:103)

              org.infinispan.commands.read.ValuesCommand.acceptVisitor(ValuesCommand.java:56)

              org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)

              org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130)

              org.infinispan.commands.AbstractVisitor.visitValuesCommand(AbstractVisitor.java:103)

              org.infinispan.commands.read.ValuesCommand.acceptVisitor(ValuesCommand.java:56)

              org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)

              org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130)

              org.infinispan.commands.AbstractVisitor.visitValuesCommand(AbstractVisitor.java:103)

              org.infinispan.commands.read.ValuesCommand.acceptVisitor(ValuesCommand.java:56)

              org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)

              org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:130)

              org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:89)

              org.infinispan.commands.AbstractVisitor.visitValuesCommand(AbstractVisitor.java:103)

              org.infinispan.commands.read.ValuesCommand.acceptVisitor(ValuesCommand.java:56)

              org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)

              org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130)

              org.infinispan.commands.AbstractVisitor.visitValuesCommand(AbstractVisitor.java:103)

              org.infinispan.commands.read.ValuesCommand.acceptVisitor(ValuesCommand.java:56)

              org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)

              org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:86)

              org.infinispan.commands.AbstractVisitor.visitValuesCommand(AbstractVisitor.java:103)

              org.infinispan.commands.read.ValuesCommand.acceptVisitor(ValuesCommand.java:56)

              org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:345)

              org.infinispan.CacheImpl.values(CacheImpl.java:316)

              org.infinispan.CacheImpl.values(CacheImpl.java:309)

              org.infinispan.AbstractDelegatingCache.values(AbstractDelegatingCache.java:283)

              com.sample.bean.PropertyManager.getCacheList(PropertyManager.java:67)

              sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              java.lang.reflect.Method.invoke(Method.java:597)

              javax.el.BeanELResolver.getValue(BeanELResolver.java:302)

              com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)

              com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)

              org.apache.el.parser.AstValue.getValue(AstValue.java:169)

              org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189)

              com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)

              javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)

              javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)

              javax.faces.component.UIData.getValue(UIData.java:731)

              javax.faces.component.UIData.getDataModel(UIData.java:1798)

              javax.faces.component.UIData.setRowIndexWithoutRowStatePreserved(UIData.java:484)

              javax.faces.component.UIData.setRowIndex(UIData.java:473)

              com.sun.faces.renderkit.html_basic.TableRenderer.encodeBegin(TableRenderer.java:81)

              javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:820)

              javax.faces.component.UIData.encodeBegin(UIData.java:1118)

              javax.faces.component.UIComponent.encodeAll(UIComponent.java:1777)

              javax.faces.render.Renderer.encodeChildren(Renderer.java:168)

              javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)

              javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)

              javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)

              javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)

              com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402)

              com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)

              com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)

              com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

              com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

              javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

      note The full stack trace of the root cause is available in the JBoss Web/7.0.13.Final logs.

      ________________________________________

      JBoss Web/7.0.13.Final

       

       

      when i checked about the exception may suggest its because of class loading issue and its already fixed in the latest versions of Jboss AS. As i mentioned above i am using Jboss AS 7.1.1 Final. What is the fix for the above exception.