Package org.slf4j

Examples of org.slf4j.Logger.error()


      try {
        Attribute<VALUE_TYPE> attribute = featureModel.getAttribute(pojo, name);
        super.setValue(attribute.getValue());
      } catch (LayerException le) {
        Logger log = LoggerFactory.getLogger(LazyPrimitiveAttribute.class);
        log.error("Could not lazily get attribute " + name, le);
      }
    }
    return super.getValue();
  }
View Full Code Here


      try {
        Attribute<List<AssociationValue>> attribute = featureModel.getAttribute(pojo, name);
        super.setValue(attribute.getValue());
      } catch (LayerException le) {
        Logger log = LoggerFactory.getLogger(LazyPrimitiveAttribute.class);
        log.error("Could not lazily get attribute " + name, le);
      }
    }
    return super.getValue();
  }
View Full Code Here

      try {
        Attribute<AssociationValue> attribute = featureModel.getAttribute(pojo, name);
        super.setValue(attribute.getValue());
      } catch (LayerException le) {
        Logger log = LoggerFactory.getLogger(LazyPrimitiveAttribute.class);
        log.error("Could not lazily get attribute " + name, le);
      }
    }
    return super.getValue();
  }
View Full Code Here

        Object obj = deserialize.readObject();
        res[i] = (BaseAuthorization) obj;
      }
    } catch (ClassNotFoundException cnfe) {
      Logger log = LoggerFactory.getLogger(SavedAuthenticationImpl.class);
      log.error("Can not deserialize object, may cause rights to be lost.", cnfe);
      res = new BaseAuthorization[0]; // assure empty list, otherwise risk of NPE
    } catch (IOException ioe) {
      Logger log = LoggerFactory.getLogger(SavedAuthenticationImpl.class);
      log.error("Can not deserialize object, may cause rights to be lost.", ioe);
      res = new BaseAuthorization[0]; // assure empty list, otherwise risk of NPE
View Full Code Here

      Logger log = LoggerFactory.getLogger(SavedAuthenticationImpl.class);
      log.error("Can not deserialize object, may cause rights to be lost.", cnfe);
      res = new BaseAuthorization[0]; // assure empty list, otherwise risk of NPE
    } catch (IOException ioe) {
      Logger log = LoggerFactory.getLogger(SavedAuthenticationImpl.class);
      log.error("Can not deserialize object, may cause rights to be lost.", ioe);
      res = new BaseAuthorization[0]; // assure empty list, otherwise risk of NPE
    }
    return res;
  }
View Full Code Here

        serialize.close();
        this.authorizations[i] = baos.toByteArray();
      }
    } catch (IOException ioe) {
      Logger log = LoggerFactory.getLogger(SavedAuthenticationImpl.class);
      log.error("Could not serialize " + ba + ", may cause rights to be lost.", ioe);
    }
  }

  @Override
  public boolean equals(Object o) {
View Full Code Here

          write(JSONObject.quote(s));
          write(':');
          writeObject(o);
        } catch (IOException ioe) {
          Logger log = LoggerFactory.getLogger(JsonObjectWriter.class);
          log.error("Problem writing " + s + " from " + object + " for value " + o + ", " + ioe.getMessage());
          throw ioe;
        } catch (ArithmeticException ae) {
          Logger log = LoggerFactory.getLogger(JsonObjectWriter.class);
          log.error("Problem writing " + s + ", " + ae.getMessage());
          throw ae;
View Full Code Here

          Logger log = LoggerFactory.getLogger(JsonObjectWriter.class);
          log.error("Problem writing " + s + " from " + object + " for value " + o + ", " + ioe.getMessage());
          throw ioe;
        } catch (ArithmeticException ae) {
          Logger log = LoggerFactory.getLogger(JsonObjectWriter.class);
          log.error("Problem writing " + s + ", " + ae.getMessage());
          throw ae;
        }
      }
    }
    write('}');
View Full Code Here

                {
                    sd.startup(m, this, this, logger);
                }
                catch (RuntimeException e)
                {
                    logger.error(ServiceMessages.startupFailure(e));
                }
            }

        }
    }
View Full Code Here

                final JobContext jobCtx = new JobContextImpl(name, configuration);
                ((org.apache.sling.commons.scheduler.Job) job).execute(jobCtx);
            } else if (job instanceof Runnable) {
                ((Runnable) job).run();
            } else {
                logger.error("Scheduled job {} is neither a job nor a runnable.", job);
            }
        } catch (final Throwable t) {
            // if this is a quartz exception, rethrow it
            if (t instanceof JobExecutionException) {
                throw (JobExecutionException) t;
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.