GlassFish Server - Unable to deploy Stateful Bean to DAS and Errors with "Use GetGMSAdapterByName Method When There Are Multiple Clusters"

(Doc ID 1941243.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle GlassFish Server - Version 3.1.2 and later
Information in this document applies to any platform.


When attempting to deploy an application that consists of a stateful enterprise bean to Domain Application Server (DAS) that have multiple clusters defined,
the following error occurs. (java.lang.IllegalStateException: Use getGMSAdapterByName method when there are multiple clusters)

The issue can be reproduced at will with the following steps on at least GlassFish 3.1.2 to (at the the present tested version):

1. Create a new domain
2. Create 2 new cluster (need not have any instance) Eg: asadmin create-cluster c1; asadmin create-cluster c2
3. Deploy a EAR that contains a Stateful EJB to the target "server" (ie DAS)
4. The above error will be seen on the server.log of DAS
5. This problem is not seen on previous GlassFish 2.1.1 and used to work on GlassFish 2.1.1


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms