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

Should use getDeclaredMethod instead of getMethod

    Details

      Description

      This is a bug found in ee-6.1.x. You can only reproduce it in ee-6.1.x.

      How to reproduce:
      1) enable cluster, start portal as Node1
      2) enable cluster, start another portal as Node2
      You will see the following exceptions:

      java.lang.NoSuchMethodException: com.liferay.portal.cluster.ClusterableAdvice._invoke(com.liferay.portal.kernel.util.MethodHandler, java.lang.String, java.lang.String, java.lang.Class, java.util.Map)
      at java.lang.Class.getMethod(Class.java:1605)
      at com.liferay.portal.kernel.util.MethodCache._get(MethodCache.java:123)
      at com.liferay.portal.kernel.util.MethodCache.get(MethodCache.java:51)
      at com.liferay.portal.kernel.util.MethodHandler.invoke(MethodHandler.java:63)
      at com.liferay.portal.cluster.ClusterRequestReceiver.processClusterRequest(ClusterRequestReceiver.java:237)
      at com.liferay.portal.cluster.ClusterRequestReceiver.receive(ClusterRequestReceiver.java:87)
      at org.jgroups.JChannel.up(JChannel.java:1462)
      at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:829)
      at org.jgroups.protocols.pbcast.GMS.up(GMS.java:890)
      at org.jgroups.protocols.FRAG.up(FRAG.java:165)
      at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:236)
      at org.jgroups.protocols.UNICAST.up(UNICAST.java:290)
      at org.jgroups.protocols.pbcast.NAKACK.handleMessage(NAKACK.java:859)
      at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:654)
      at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:132)
      at org.jgroups.protocols.FD_ALL.up(FD_ALL.java:178)
      at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:269)
      at org.jgroups.stack.Protocol.up(Protocol.java:340)
      at org.jgroups.protocols.Discovery.up(Discovery.java:277)
      at org.jgroups.protocols.PING.up(PING.java:67)
      at org.jgroups.protocols.TP.passMessageUp(TP.java:953)
      at org.jgroups.protocols.TP.access$100(TP.java:53)
      at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1457)
      at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1434)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 years, 4 weeks, 3 days ago

                  Packages

                  Version Package
                  6.1.30 EE GA3