Hi guys,
I'm trying to deploy a project on Payara 5.1.182, JDK 1.8.172 . The project was working fine in Glassfish 4, JDK 1.8.40, but we just noticed there is an issue with (de)serialization of the URL properties from EJBs.
This project has multiple EJBs and WARs packed in an EAR.
The error I get is this :
[2018-07-18T10:20:20.662+0000] [Payara 5.182] [SEVERE] [] [ch.poken.api] [tid: _ThreadID=34 _ThreadName=http-thread-pool::http-listener-1(6)] [timeMillis: 1531909220662] [levelValue: 1000] [[
Unabled to get the list of social networks
java.lang.RuntimeException: WARNING: OBJCOPY00401: Exception in readResolve() for https:
at com.sun.proxy.$Proxy484.exceptionInReadResolve(Unknown Source)
at org.glassfish.pfl.dynamic.copyobject.impl.ClassCopierOrdinaryImpl.resolve(ClassCopierOrdinaryImpl.java:103)
...
Caused by: java.lang.NullPointerException
at java.net.URL.readResolve(URL.java:1311)
at org.glassfish.pfl.dynamic.copyobject.impl.ClassCopierOrdinaryImpl.resolve(ClassCopierOrdinaryImpl.java:101)
... 101 more
One work around was to change the URLs to strings and that works but I was wondering if you have any idea of a better solution!
One more thing, if I deploy the EJBs and the WARs from Eclipse, the issue is gone.
Thanks for your time.