Package org.apache.commons.logging

Examples of org.apache.commons.logging.Log.error()


        }
        try {
            Class.forName(className, false, env.getPluginClassLoader());
        }
        catch (Exception e) {
            log.error("Can't find pluginClass " + className + " for plugin " + env.getPluginKey().getPluginName());
            return false;
        }

        // The short name is basically the key into the plugin
        String shortName = type.getShortName();
View Full Code Here


            try {
                URL uiSnippetUrl = env.getPluginClassLoader().getResource(uiSnippetPath);
                log.info("UI snipped for " + shortName + " is at " + uiSnippetUrl);
            }
            catch (Exception e) {
                log.error("No valid ui snippet provided, but <custom-ui> given for sender plugin " + shortName +
                        "Error is " + e.getMessage());
                return false;
            }

            // Get the backing bean class
View Full Code Here

            }
            try {
                Class.forName(className, true, env.getPluginClassLoader());
            }
            catch (Throwable t) {
                log.error("Backing bean " + className + " not found for plugin " + shortName);
                return false;
            }
        }
        return true;
    }
View Full Code Here

        } catch (Exception e) {
            String msg = e.getMessage().toLowerCase();
            if ((msg.indexOf("username") >= 0) || (msg.indexOf("password") >= 0)) {
                request.setAttribute(Constants.LOGON_STATUS, "login.info.bad");
            } else {
                log.error("Could not log into the web application", e);
                request.setAttribute(Constants.LOGON_STATUS, "login.bad.backend");
            }

            return (mapping.findForward("bad"));
        }
View Full Code Here

                packageDetails.setLicenseName(license);
                packageDetails.setLongDescription(description.toString());
                packageDetails.setInstallationTimestamp(installTime);
                packages.add(packageDetails);
            } catch (Exception e) {
                log.error("Error creating resource package. RPM Name: " + rpmName + " Version: " + version
                    + " Architecture: " + architectureName);
            }

        }
View Full Code Here

    BasicWindow window;
    Log log = LogFactory.getLog(windowClass);
    try {
      window = (BasicWindow) windowClass.newInstance();
    } catch (InstantiationException e) {
      log.error("Error creating window: " + e.getMessage());
      return;
    } catch (IllegalAccessException e) {
      log.error("Error creating window: " + e.getMessage());
      return;
    } catch (ClassCastException e) {
View Full Code Here

      window = (BasicWindow) windowClass.newInstance();
    } catch (InstantiationException e) {
      log.error("Error creating window: " + e.getMessage());
      return;
    } catch (IllegalAccessException e) {
      log.error("Error creating window: " + e.getMessage());
      return;
    } catch (ClassCastException e) {
      return;
    }
    window.log = log;
View Full Code Here

        }
    }

    protected void logError(Object service, Throwable e) {
        Log log = LogFactory.getLog(service.getClass());
        log.error("Could not stop service: " + service + ". Reason: " + e, e);
    }

}
View Full Code Here

                sos.write(svgStr.getBytes());
                sos.flush();
                sos.close();
            }
        } catch (Exception e) {
            log.error("SVG Generation Error", e);
            String errorSVG = "<svg version=\"1.1\"\n" +
                    "     xmlns=\"http://www.w3.org/2000/svg\"><text y=\"50\">Could not display SVG</text></svg>";
            sos.write(errorSVG.getBytes());
            sos.flush();
            sos.close();
View Full Code Here

                sos.write(pngBytes);         
                sos.flush();
                sos.close();
            }
        } catch (Exception e) {
            log.error("PNG Generation Error", e);
        }

    }

    // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
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.