billbarker    2003/10/10 23:10:00

  Modified:    jk/java/org/apache/jk/common ModJkMX.java
  Log:
  Further attempts to get Gump to build.
  
  This patch is truely horrifying.  Please remove all small children from the room :(.
  
  At this point I'm +1 for excluding this file until it gets a proper maintainer.  It 
only adds some additional JMX-configuration options to mod_jk2.  Removing it doesn't 
effect any normal configuration.
  
  Revision  Changes    Path
  1.6       +6 -2      
jakarta-tomcat-connectors/jk/java/org/apache/jk/common/ModJkMX.java
  
  Index: ModJkMX.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/common/ModJkMX.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ModJkMX.java      10 Oct 2003 04:08:31 -0000      1.5
  +++ ModJkMX.java      11 Oct 2003 06:10:00 -0000      1.6
  @@ -175,8 +175,12 @@
               Iterator mbeansIt=mbeans.values().iterator();
               while( mbeansIt.hasNext()) {
                   MBeanProxy proxy=(MBeanProxy)mbeansIt.next();
  -                ObjectName oname=proxy.getObjectName();
  -                Registry.getRegistry().getMBeanServer().unregisterMBean(oname);
  +                Object ooname = proxy.getObjectName();
  +                if( ooname != null ) {
  +                    String soname = ooname.toString();
  +                    ObjectName oname = new ObjectName(soname);
  +                    Registry.getRegistry().getMBeanServer().unregisterMBean(oname);
  +                }
               }
           } catch( Throwable t ) {
               log.error( "Destroy error", t );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to