dev@glassfish.java.net

Re: trying to track down a message

From: Lloyd L Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Thu, 11 Jan 2007 09:31:55 -0800

Vince,

See below.

File a bug and I'll take care of it. There are System.out.println
statements in 3 places actually.

What's happening is that an MBean must be disappearing after it has
been found (latency). That is not unexpected if you deploy and
redeploy since of course MBeans come and go.

Lloyd

appserv-api module, com.sun.appserv.management.client.ProxyFactory:
                public Set<AMX>
        toProxySet( final Set<ObjectName> objectNames )
        {
                final Set<AMX> s = new HashSet<AMX>();
                
                for( final ObjectName objectName : objectNames )
                {
                        try
                        {
                                final AMX proxy = getProxy( objectName, AMX.class, true );
                                assert( ! s.contains( proxy ) );
                                s.add( proxy );
                        }
                        catch( Exception e )
                        {
                            final Throwable rootCause = ExceptionUtil.getRootCause( e );
                        
                            //getLogger
                            System.out.println( "ProxyFactory.toProxySet: exception for
MBean " +
                                objectName + " = " + rootCause );
                        }
                }
                
                return( s );
        }

On Jan 10, 2007, at 5:47 PM, vince kraemer wrote:

> I am running a test where an app is getting deployed over and over
> again...
>
> eventually, I start to see this message from the server:
>
> ProxyFactory.toProxySet: exception for MBean amx:X-
> StandaloneServerConfig=server,j2eeType=X-
> DeployedItemRefConfig,name=SjsasTestWeb =
> javax.management.InstanceNotFoundException: amx:X-
> StandaloneServerConfig=server,j2eeType=X-
> DeployedItemRefConfig,name=SjsasTestWeb
>
> Note: this message is only on my client... it is not in the server
> log...
>
> Any clues on what I might have broken?
>
> Thanks,
> vbk
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>