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

WSRP - NotSerializableException on shutdown after adding a consumer

    Details

      Description

      Getting a NotSerializableException, "Cannot serialize session attribute WSRP_CONSUMER_MANAGERS," when shutting down Liferay after creating a consumer.

      1. Deploy the WSRP plugin
      2. Add a Producer
      3. Add a Consumer
      4. Shutdown Liferay
      5. You will see the NotSerializableException in the console
      WARNING: Cannot serialize session attribute WSRP_CONSUMER_MANAGERS for session B52249904C1802F2690CE0F2C1CAA52D
      java.io.NotSerializableException: com.liferay.wsrp.util.WSRPConsumerManager
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
              at java.util.concurrent.ConcurrentHashMap.writeObject(ConcurrentHashMap.java:1247)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
              at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1671)
              at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:1077)
              at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:432)
              at org.apache.catalina.session.StandardManager.unload(StandardManager.java:353)
              at org.apache.catalina.session.StandardManager.stopInternal(StandardManager.java:518)
              at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
              at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5462)
              at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
              at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1582)
              at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1571)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
              at java.util.concurrent.FutureTask.run(FutureTask.java:138)
              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:619)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 11 weeks, 6 days ago

                Packages

                Version Package
                6.1.1 CE GA2
                6.1.20 EE GA2
                6.1.30 EE GA3
                6.2.0 CE M2