Package javax.management

Examples of javax.management.MBeanRegistrationException


/* 343 */                 if (invokedPreRegister == true)
/*     */                 {
/* 345 */                   if ((e instanceof RuntimeException)) {
/* 346 */                     throw new RuntimeMBeanException((RuntimeException)e);
/*     */                   }
/* 348 */                   throw new MBeanRegistrationException(e);
/*     */                 }
/*     */               }
/*     */             }
/* 352 */             AbstractMBeanInvoker.setMBeanEntry(null); return localServerObjectInstance1;
/*     */           }
/*     */           catch (Throwable t)
/*     */           {
/* 262 */             if ((object instanceof ClassLoader)) {
/* 263 */               this.loaderRepository.removeClassLoader((ClassLoader)object);
/*     */             }
/* 265 */             throw t;
/*     */           }
/*     */
/*     */         }
/*     */         catch (Throwable t)
/*     */         {
/* 271 */           remove(regName);
/* 272 */           throw t;
/*     */         }
/*     */
/*     */       }
/*     */       catch (NotCompliantMBeanException e)
/*     */       {
/* 278 */         throw e;
/*     */       }
/*     */       catch (InstanceAlreadyExistsException e)
/*     */       {
/* 283 */         throw e;
/*     */       }
/*     */       catch (Throwable t)
/*     */       {
/* 288 */         log.error("Unexpected Exception:", t);
/* 289 */         throw t;
/*     */       }
/*     */     }
/*     */     catch (NotCompliantMBeanException e)
/*     */     {
/* 294 */       registrationDone = false;
/* 295 */       throw e;
/*     */     }
/*     */     catch (InstanceAlreadyExistsException e)
/*     */     {
/* 300 */       registrationDone = false;
/* 301 */       throw e;
/*     */     }
/*     */     catch (MBeanRegistrationException e)
/*     */     {
/* 306 */       registrationDone = false;
/* 307 */       log.warn(e.toString());
/* 308 */       throw e;
/*     */     }
/*     */     catch (RuntimeOperationsException e)
/*     */     {
/* 313 */       registrationDone = false;
/* 314 */       throw e;
/*     */     }
/*     */     catch (Exception ex)
/*     */     {
/* 319 */       registrationDone = false;
/* 320 */       ncex = new NotCompliantMBeanException("Cannot register MBean: " + name);
/* 321 */       ncex.initCause(ex);
/* 322 */       throw ncex;
/*     */     }
/*     */     catch (Throwable t)
/*     */     {
/* 327 */       log.error("Cannot register MBean", t);
/* 328 */       registrationDone = false;
/* 329 */       NotCompliantMBeanException ncex = null;
/*     */       return ncex;
/*     */     }
/*     */     finally
/*     */     {
/* 334 */       if (invoker != null)
/*     */       {
/*     */         try
/*     */         {
/* 338 */           invoker.postRegister(new Boolean(registrationDone));
/*     */         }
/*     */         catch (Exception e)
/*     */         {
/* 343 */           if (invokedPreRegister == true)
/*     */           {
/* 345 */             if ((e instanceof RuntimeException)) {
/* 346 */               throw new RuntimeMBeanException((RuntimeException)e);
/*     */             }
/* 348 */             throw new MBeanRegistrationException(e);
/*     */           }
/*     */         }
/*     */       }
/* 352 */       AbstractMBeanInvoker.setMBeanEntry(null); } throw localObject;
/*     */   }
View Full Code Here


/*     */     catch (Exception e)
/*     */     {
/* 473 */       if ((e instanceof MBeanRegistrationException)) {
/* 474 */         throw ((MBeanRegistrationException)e);
/*     */       }
/* 476 */       throw new MBeanRegistrationException(e, "preDeregister");
/*     */     }
/*     */
/* 480 */     if ((resource instanceof ClassLoader)) {
/* 481 */       this.loaderRepository.removeClassLoader((ClassLoader)resource);
/*     */     }
View Full Code Here

/* 714 */       if ((e instanceof MBeanRegistrationException))
/*     */       {
/* 716 */         throw ((MBeanRegistrationException)e);
/*     */       }
/*     */
/* 719 */       throw new MBeanRegistrationException(e, "preRegister() failed: [ObjectName='" + regName + "', Class=" + invoker.getResource().getClass().getName() + " (" + invoker.getResource() + ")]");
/*     */     }
/*     */     catch (Throwable t)
/*     */     {
/* 728 */       log.warn("preRegister() failed for " + regName + ": ", t);
/*     */
View Full Code Here

/*  430 */         throw new RuntimeMBeanException((RuntimeException)result);
/*  431 */       if ((result instanceof Error)) {
/*  432 */         throw new RuntimeErrorException((Error)result);
/*      */       }
/*      */
/*  435 */       throw new MBeanRegistrationException(new InvocationTargetException(t), "Cannot unregister MBean");
/*      */     }
/*      */
/*  439 */     if ((mbean instanceof NotificationBroadcaster))
/*  440 */       this.listeners.remove(name);
/*      */   }
View Full Code Here

/* 1466 */         throw new RuntimeMBeanException((RuntimeException)result);
/* 1467 */       if ((result instanceof Error)) {
/* 1468 */         throw new RuntimeErrorException((Error)result);
/*      */       }
/*      */     }
/* 1471 */     throw new MBeanRegistrationException(new InvocationTargetException(t), "Cannot register MBean");
/*      */   }
View Full Code Here

                    terracottaCacheMBean.getImmutableCacheName());
            mBeanServer.registerMBean(terracottaCacheMBean,
                    cacheObjectName);
            mbeans.put(cacheObjectName, terracottaCacheMBean);
        } catch (MalformedObjectNameException e) {
            throw new MBeanRegistrationException(e);
        }
    }
View Full Code Here

             try {
                 mBeanServer.registerMBean(bean,
                         SampledEhcacheMBeans.getStoreObjectName(clientUUID, registeredCacheManagerName,
                                 cache.getName()));
             } catch (MalformedObjectNameException e) {
                 throw new MBeanRegistrationException(e);
             }
          }
       }
    }
View Full Code Here

TOP

Related Classes of javax.management.MBeanRegistrationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.