geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject cvs commit: incubator-geronimo/modules/naming/src/java/org/apache/geronimo/naming/jmx JMXObjectFactory.java
Date Tue, 06 Jul 2004 17:13:54 GMT
djencks     2004/07/06 10:13:54

  Modified:    modules/naming/src/java/org/apache/geronimo/naming/jmx
                        JMXObjectFactory.java
  Log:
  more informative error message
  
  Revision  Changes    Path
  1.2       +4 -1      incubator-geronimo/modules/naming/src/java/org/apache/geronimo/naming/jmx/JMXObjectFactory.java
  
  Index: JMXObjectFactory.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/naming/src/java/org/apache/geronimo/naming/jmx/JMXObjectFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JMXObjectFactory.java	9 Mar 2004 18:03:11 -0000	1.1
  +++ JMXObjectFactory.java	6 Jul 2004 17:13:54 -0000	1.2
  @@ -51,6 +51,9 @@
                   kernel = Kernel.getKernel(jmxRefAddr.getKernelName());
               }
               Object proxy = kernel.invoke(jmxRefAddr.getTargetName(), "getProxy");
  +            if (proxy == null) {
  +                throw new IllegalStateException("Proxy not returned. Target " + jmxRefAddr.getTargetName()
+ " not started");
  +            }
               if (!jmxRefAddr.getInterface().isAssignableFrom(proxy.getClass())) {
                   throw new IllegalStateException("Proxy does not implement expected interface
" + jmxRefAddr.getInterface());
               }
  
  
  

Mime
View raw message