java.net.URL serialization issues in Payara 5

133 views
Skip to first unread message

Bogdan Popa

unread,
Jul 18, 2018, 11:21:22 AM7/18/18
to Payara Forum
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.

Ondro Mihályi

unread,
Mar 25, 2019, 6:42:46 AM3/25/19
to Payara Forum
Hi,

Were you able to resolve this?

Can you please let us know how do you deploy your application? How is it different to deploying from Eclipse IDE, whcih you said works without issues?

Ondro
Reply all
Reply to author
Forward
0 new messages