users@glassfish.java.net

No local string defined - stop-instance failed

From: <glassfish_at_javadesktop.org>
Date: Tue, 31 Mar 2009 06:39:26 PDT

Hi,

I have configured one machine glassfish cluster, there is one node with two instances.
Problem is I cannot stop cluster or any instance on this cluster (with commands stop-cluster or stop-instance).
I'm getting "No local string defined" which means nothing to me...
Here is exception I have found in server logs:

com.sun.enterprise.ee.admin.servermgmt.AgentException: error during JRMP connection establishment; nested exception is:
        javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No local string defined
        at com.sun.enterprise.ee.admin.configbeans.NodeAgentsConfigBean.getRuntimeStatus(NodeAgentsConfigBean.java:197)
        at com.sun.enterprise.ee.admin.configbeans.NodeAgentsConfigBean.isRunning(NodeAgentsConfigBean.java:204)
        at com.sun.enterprise.ee.admin.configbeans.ServersConfigBean.stopServerInstance(ServersConfigBean.java:417)
        at com.sun.enterprise.ee.admin.configbeans.ServersConfigBean.stopServerInstance(ServersConfigBean.java:397)
        at com.sun.enterprise.ee.admin.configbeans.ClustersConfigBean$StopServerTask.run(ClustersConfigBean.java:148)
        at java.lang.Thread.run(Thread.java:619)
Caused by: com.sun.enterprise.ee.admin.servermgmt.AgentException: error during JRMP connection establishment; nested exception is:
        javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No local string defined
        at com.sun.enterprise.ee.admin.clientreg.JMXConnectorRegistry.getConnection(JMXConnectorRegistry.java:346)
        at com.sun.enterprise.ee.admin.clientreg.NodeAgentRegistry.getNodeAgentConnection(NodeAgentRegistry.java:118)
        at com.sun.enterprise.ee.admin.proxy.NodeAgentProxy.getConnection(NodeAgentProxy.java:231)
        at com.sun.enterprise.ee.admin.proxy.NodeAgentProxy.invoke(NodeAgentProxy.java:338)
        at $Proxy27.getRuntimeStatus(Unknown Source)
        at com.sun.enterprise.ee.admin.configbeans.NodeAgentsConfigBean.getRuntimeStatus(NodeAgentsConfigBean.java:189)
        ... 5 more

I can stop agent node without problem, and it stops all instances, but I'd like to be able to stop one instance while second one is running.

I'm using Sun GlassFish Enterprise Server v2.1 (9.1.1) (build b60e-fcs) on Ubuntu 8.04.

What am I doing wrong so it fails?

Regards,
Adam
[Message sent by forum member 'adeboinfo' (adeboinfo)]

http://forums.java.net/jive/thread.jspa?messageID=339846