Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-57154

Calendar Portlet: ClassNotFoundException in ClusterMode

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 6.2.1 CE GA2
    • Fix Version/s: 6.2.4 CE GA5, 6.2.X EE
    • Component/s: Calendar
    • Labels:
      None
    • Branch Version/s:
      6.2.x

      Description

      how to reproduce:

      • install 2 nodes of liferay-portal-tomcat-6.2-ce-ga2-20140319114139101
      • follow instructions to configure cluster mode: https://www.liferay.com/fr/documentation/liferay-portal/6.2/user-guide/-/ai/liferay-clustering-liferay-portal-6-2-user-guide-20-en
      • configure the portal-ext.properties with
        	
        cluster.executor.debug.enabled=true
        cluster.link.enabled=true
        cluster.link.autodetect.address=localhost:<bdd_port>
        ehcache.bootstrap.cache.loader.factory=com.liferay.portal.cache.ehcache.JGroupsBootstrapCacheLoaderFactory
        ehcache.cache.event.listener.factory=net.sf.ehcache.distribution.jgroups.JGroupsCacheReplicatorFactory
        ehcache.cache.manager.peer.provider.factory=net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProviderFactory
        dl.store.file.system.root.dir=/data/dev/liferay/document_library
        lucene.replicate.write=true
        
      • start the two nodes
      • after logged in with your admin account, I got the exception:
        14:30:57,914 ERROR [Incoming-1,liferay-multi-vm-clustered,dev-atrium-8777][NAKACK2:766] failed to deliver message [dst: <null>, src: dev-XX-49302 (2 headers), size=5073 bytes]
        java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: com.liferay.calendar.model.impl.CalendarResourceCacheModel
          at org.jgroups.Message.getObject(Message.java:364)
          at net.sf.ehcache.distribution.jgroups.JGroupsCacheReceiver.receive(JGroupsCacheReceiver.java:64)
          at org.jgroups.JChannel.invokeCallback(JChannel.java:749)
          at org.jgroups.JChannel.up(JChannel.java:710)
          at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1025)
          at org.jgroups.protocols.pbcast.STATE_TRANSFER.up(STATE_TRANSFER.java:178)
          at org.jgroups.protocols.RSVP.up(RSVP.java:188)
          at org.jgroups.protocols.FRAG2.up(FRAG2.java:181)
          at org.jgroups.protocols.FlowControl.up(FlowControl.java:400)
          at org.jgroups.protocols.FlowControl.up(FlowControl.java:418)
          at org.jgroups.protocols.pbcast.GMS.up(GMS.java:896)
          at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:245)
          at org.jgroups.protocols.UNICAST.up(UNICAST.java:414)
          at org.jgroups.protocols.pbcast.NAKACK2.handleMessage(NAKACK2.java:763)
          at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:574)
          at org.jgroups.protocols.BARRIER.up(BARRIER.java:126)
          at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:147)
          at org.jgroups.protocols.FD_ALL.up(FD_ALL.java:187)
          at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:288)
          at org.jgroups.protocols.MERGE2.up(MERGE2.java:205)
          at org.jgroups.protocols.Discovery.up(Discovery.java:359)
          at org.jgroups.protocols.TP.passMessageUp(TP.java:1263)
          at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1825)
          at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1793)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         
         at java.lang.Thread.run(Thread.java:724)
        Caused by: java.lang.ClassNotFoundException: com.liferay.calendar.model.impl.CalendarResourceCacheModel
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:270)
          at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:623)
          at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1610)
          at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1515)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1769)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1989)
          at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:499)
          at net.sf.ehcache.Element.readObject(Element.java:860)
          at sun.reflect.GeneratedMethodAccessor468.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:606)
          at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1891)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
          at net.sf.ehcache.distribution.LegacyEventMessage.readObject(LegacyEventMessage.java:122)
          at sun.reflect.GeneratedMethodAccessor457.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:606)
          at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1891)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
          at java.util.ArrayList.readObject(ArrayList.java:733)
          at sun.reflect.GeneratedMethodAccessor469.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:606)
          at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1891)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
          at org.jgroups.util.Util.objectFromByteBuffer(Util.java:468)
          at org.jgroups.Message.getObject(Message.java:361)
          ... 26 more
        

        Attachments

          Activity

            People

            • Assignee:
              sophia.zhang Sophia Zhang
              Reporter:
              slever Sébastien
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 29 weeks, 5 days ago

                Packages

                Version Package
                6.2.4 CE GA5
                6.2.X EE