users@glassfish.java.net

JMX listening address

From: Danilo Levantesi <danilo.levantesi_at_gmail.com>
Date: Wed, 16 Jul 2008 15:14:26 +0200

Hi to all.

I'd like to change the listening address of Glassfish (v2ur2) of JMX service,
from default 0.0.0.0 (all interfaces) to a specific address (e.g.
10.10.10.10).

In domains/mydomain/domain.xml I changed, inside the <jmx-connector> tag, the
address value from "0.0.0.0" to "10.10.10.10", but when I start the domain I
get the attached exception.

I obtain the same behaviour configuring JMX from admin web interface.

Am I missing some steps?

Many thanks,
Danilo

javax.enterprise.system.core
CORE5061: Exception :
java.lang.NullPointerException
        at
com.sun.enterprise.util.InvocationManagerImpl.preInvoke(InvocationManagerImpl.java:136)
        at
com.sun.appserv.server.ServerLifecycleModule.preInvoke(ServerLifecycleModule.java:178)
        at
com.sun.appserv.server.ServerLifecycleModule.postEvent(ServerLifecycleModule.java:219)
        at
com.sun.appserv.server.ServerLifecycleModule.onShutdown(ServerLifecycleModule.java:273)
        at
com.sun.appserv.server.LifecycleModuleService.onShutdown(LifecycleModuleService.java:487)
        at
com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:549)
        at
com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:131)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:429)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)