Package mx4j.log

Examples of mx4j.log.Logger.error()


            store();
            if (logger.isEnabledFor(Logger.TRACE)) logger.trace("ModelMBean persisted successfully");
         }
         catch (Exception x)
         {
            logger.error("Cannot store ModelMBean after setAttribute", x);
            if (x instanceof MBeanException)
               throw (MBeanException)x;
            else
               throw new MBeanException(x);
         }
View Full Code Here


         {
            parameters = Utils.loadClasses(Thread.currentThread().getContextClassLoader(), params);
         }
         catch (ClassNotFoundException x)
         {
            logger.error("Cannot find operation's parameter classes", x);
            throw new ReflectionException(x);
         }

         if (logger.isEnabledFor(Logger.TRACE)) logger.trace("Invoking operation...");
View Full Code Here

            store();
            if (logger.isEnabledFor(Logger.TRACE)) logger.trace("ModelMBean persisted successfully");
         }
         catch (Exception x)
         {
            logger.error("Cannot store ModelMBean after operation invocation", x);
            if (x instanceof MBeanException)
               throw (MBeanException)x;
            else
               throw new MBeanException(x);
         }
View Full Code Here

         String[] signature1 = {"java.lang.String", "javax.management.relation.Role"};
         m_server.invoke(m_relationObjectName, "setRole", params1, signature1);
      }
      catch (Exception ex)
      {
         logger.error("Unable to add a book");
         ex.printStackTrace();
      }
   }

   private void printList(List list)
View Full Code Here

         String[] signature = {"java.lang.String", "java.lang.String"};
         return ((ArrayList)(m_server.invoke(m_relationObjectName, "getRole", params, signature)));
      }
      catch (Exception ex)
      {
         logger.error("Unable to get the list of roles for ID: " + relationId);
         return null;
      }
   }

   public void endExample()
View Full Code Here

         String[] signature = {"java.lang.String", "java.lang.String", "javax.management.relation.RoleList"};
         m_server.invoke(m_relationObjectName, "createRelation", params, signature);
      }
      catch (Exception ex)
      {
         logger.error("Exception creating Library Relation: " + ex.getMessage());
         ex.printStackTrace();
      }
   }

   private void printAllRelationInfo()
View Full Code Here

            testAllAccessQueries(currentRelationId);
         }
      }
      catch (Exception ex)
      {
         logger.error("Unable to print the relations");
         ex.printStackTrace();
      }
   }

   private void testAllAccessQueries(String relationId)
View Full Code Here

         }
         System.out.println("No unresolved Roles roleUnresolved size: " + roleResult.getRolesUnresolved().size());
      }
      catch (Exception ex)
      {
         logger.error("Exception printing the results from relationId: " + relationId);
         System.out.println("Printing the Exception message to validate exception: " + ex.getMessage());
      }

   }
View Full Code Here

            store();
            if (logger.isEnabledFor(Logger.TRACE)) logger.trace("ModelMBean persisted successfully");
         }
         catch (Exception x)
         {
            logger.error("Cannot store ModelMBean after setAttribute", x);
            if (x instanceof MBeanException)
               throw (MBeanException)x;
            else
               throw new MBeanException(x);
         }
View Full Code Here

         {
            parameters = Utils.loadClasses(Thread.currentThread().getContextClassLoader(), params);
         }
         catch (ClassNotFoundException x)
         {
            logger.error("Cannot find operation's parameter classes", x);
            throw new ReflectionException(x);
         }

         if (logger.isEnabledFor(Logger.TRACE)) logger.trace("Invoking operation...");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.