Thursday, February 21, 2013

One solution for: “weblogic.jms.common.JMSException: No failover destination.”


Today was playing with Uniform distributed Queue in a WLS 12.1.1.0 cluster and after several tests, without any setting changed in the servers, I’ve got this exception:
weblogic.jms.common.JMSException: No failover destination.
In the logs there was another exception that appeared in each of the managed servers after a restart, exactly before the server changed its status to RUNNING.
The exception was:
java.io.NotSerializableException: com.sun.jersey.server.impl.cdi.CDIExtension
According to BUG 13975839, this is an issue in WLS 12.1.1.0 that have been fixed in WLS 12.1.2.0. The BUG description says that: “CDI beans are not replicated as they are not serializable”.
The workaround in WLS 12.1.1.0 is to add this in your managed server start parameters:
-Dcom.sun.jersey.server.impl.cdi.lookupExtensionInBeanManager=true
Adding this start option fixed also my initial issue with jms. Now, regarding the relation between the initial issue and the CDI serialization bug, for the moment I can just guess but after further investigations I’ll update you all – stay tuned…

No comments:

Post a Comment