Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.1.X, Master
-
7.1.x, 7.0.x
-
Committed
-
3
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)