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

NullPointerException if JVM wakes up from hibernated state

Details

    Description

      How to test:

      • run portal
      • deploy petra client
      • deploy app that uses petra (it is important that app activates petra json ws client with good connection parameters)
      • once all set push your machine in sleep mode
      • once one is sure machine is hibernated, wake up machine
      • make sure portal is available at localhost:8080
      • perform graceful shutdown

      check log in LIFERAY_HOME/osgi/state/ - there should not be NullPointerError that refers

      JSONWebServiceClientImpl
      

       Same applies for deactivate:

      !ENTRY com.liferay.petra.json.web.service.client 4 0 2018-10-25 09:15:17.250
      !MESSAGE [com.liferay.petra.json.web.service.client.internal.JSONWebServiceClientImpl(2885)] The deactivate method has thrown an exception
      !STACK 0
      java.lang.NullPointerException
       at com.liferay.petra.json.web.service.client.BaseJSONWebServiceClientImpl.destroy(BaseJSONWebServiceClientImpl.java:161)
       at com.liferay.petra.json.web.service.client.internal.JSONWebServiceClientImpl.deactivate(JSONWebServiceClientImpl.java:85)
       at sun.reflect.GeneratedMethodAccessor1896.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:498)
       at org.apache.felix.scr.impl.inject.BaseMethod.invokeMethod(BaseMethod.java:224)
       at org.apache.felix.scr.impl.inject.BaseMethod.access$500(BaseMethod.java:39)
       at org.apache.felix.scr.impl.inject.BaseMethod$Resolved.invoke(BaseMethod.java:617)
       at org.apache.felix.scr.impl.inject.BaseMethod.invoke(BaseMethod.java:501)
       at org.apache.felix.scr.impl.inject.ActivateMethod.invoke(ActivateMethod.java:302)
       at org.apache.felix.scr.impl.inject.ActivateMethod.invoke(ActivateMethod.java:294)

      Attachments

        Activity

          People

            linda.sui Linda Sui
            igor.beslic Igor Beslic
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 2 weeks, 1 day ago

              Packages

                Version Package
                7.0.0 DXP FP80
                7.0.10.11 DXP SP11
                7.0.X
                7.1.10 DXP FP10
                7.1.10.2 SP2
                7.1.3 CE GA4
                7.1.X
                Master