protected void warn(Object object, Object... params) { log.warn(object, params); }
protected void warn(Object object, Throwable t, Object... params) { log.warn(object, t, params); }
public boolean isLastNode() { if (!clustered) { return true; } // other options // object name => jboss.jgroups:cluster=DefaultPartition,type=channel // object name => jboss.jgroups:cluster=Tomcat-Cluster,type=channel // attribute => NumberOfTasksInTimer try { return ((Vector) jbossMBeanServer.getAttribute(clusteringCacheObjectName, "Members")).size() == 1; } catch (Exception e) { log.warn("Could not determine number of members in cluster", e); return true; } }
public void addWorksheetFooter(WorksheetItem item, int colspan) { if (colspan > 0) log.warn("footer colspan are not supported by CSV exporter", new Object[0]); addItem(item); }
public void addWorksheetHeader(WorksheetItem item, int colspan) { if (colspan > 0) log.warn("header colspan are not supported by CSV exporter", new Object[0]); addItem(item); }
private void warnNotFound(AcroFields fields, String theName, Object theValue) { log.warn("Could not set field '#0' to '#1'", theName, theValue); Map fieldMap = fields.getFields(); if (!fieldMap.containsKey(theName)) { log.warn("Could not find field '#0'. Found fields are", theName); for (Iterator i = fieldMap.keySet().iterator(); i.hasNext();) { log.warn(i.next()); } return; } String[] options = fields.getListOptionExport(theName); String[] values = fields.getListOptionDisplay(theName); log.warn("Valid values for #0 are", theName); for (int i = 0; i < options.length; i++) { log.warn("'#0' : '#1'", options[i], values[i]); } }
private SeamSamlPrincipal getAuthenticatedUser(ResponseType responseType, RequestContext requestContext) { SeamSamlPrincipal principal = null; for (Object assertion : responseType.getAssertionOrEncryptedAssertion()) { if (assertion instanceof AssertionType) { SeamSamlPrincipal assertionSubject = handleAssertion((AssertionType) assertion, requestContext); if (principal == null) { principal = assertionSubject; } else { log.warn("Multiple authenticated users found in assertions. Using the first one."); } } else { /* assertion instanceof EncryptedElementType */ log.warn("Encountered encrypted assertion. Skipping it because decryption is not yet supported."); } } return principal; }
private void addStyle(StringBuilder styleBuilder) { String styleString = styleBuilder.toString(); int keyValueBreakpointIndex = styleString.indexOf(KEY_VALUE_SEPARATOR); if (keyValueBreakpointIndex < 0) { log.warn("Key-value separator character #0 not found in style #1, dropping", KEY_VALUE_SEPARATOR + styleBuilder.toString()); return; } String styleName = styleString.substring(0, keyValueBreakpointIndex).toLowerCase().trim(); if (!propertyBuilderMap.containsKey(styleName)) { log.warn("No property builder (unknown style) for property #0", styleName); return; } PropertyBuilder propertyBuilder = propertyBuilderMap.get(styleName); String styleValue = styleString.substring(keyValueBreakpointIndex + 1); log.trace("Parsed style #0 to #1 => #2", styleString, styleName, styleValue); String[] styleValues = trimArray(styleValue.trim().split(STYLE_SHORTHAND_SEPARATOR)); styleMap.putAll(propertyBuilder.parseProperty(styleName, styleValues)); }
log.warn("Unable to wrap into a FullTextSessionProxy, regular SessionProxy returned", e); if ( session instanceof HibernateSessionProxy )
log.warn("Unbalanced escape characters #0 in style #1", ESCAPE_CHAR, styleBuilder.toString());
@Create public void create() { jbossMBeanServer = locateJBoss(); if (!isJBoss()) { return; } try { clusteringCacheObjectName = new ObjectName("jboss.cache:service=TomcatClusteringCache"); serverObjectName = new ObjectName("jboss.system:type=Server"); } catch (MalformedObjectNameException e) { log.warn("Invalid JMX name: " + e.getMessage()); } try { jbossMBeanServer.getMBeanInfo(clusteringCacheObjectName); clustered = true; log.info("JBoss cluster detected"); } catch (Exception e) {} }
@Destroy public void destroy() throws JMSException { try { queueConnection.stop(); } catch (javax.jms.IllegalStateException e) { // as for JEE v5 specs, section EE 6.6 // At least WebSphere v7 enforce this log.warn("queueSession.stop() called during @Destroy in an invalid context for this container. Msg={0}", e.getMessage()); } queueConnection.close(); }
log.warn("Error authenticating: " + ex.getMessage()); requireAuth = true;
log.warn("Received assertion not processed because it has expired."); return null; if (authnStatement == null) log.warn("Received assertion not processed because it doesn't contain a valid authnStatement."); return null; if (nameId == null) log.warn("Received assertion not processed because it doesn't contain a valid subject."); return null; log.warn("Encrypted attributes are not supported. Ignoring the attribute.");
public String getFormattedText() { if ( getValue() == null) return null; Reader r = new StringReader( (String) getValue() ); SeamTextLexer lexer = new SeamTextLexer(r); SeamTextParser parser = new SeamTextParser(lexer); try { parser.startRule(); } catch (RecognitionException rex) { // Log a nice message for any lexer/parser errors, users can disable this if they want to log.warn( "Seam Text parse error: " + rex.getMessage() ); } catch (ANTLRException ex) { // All other errors are fatal; throw new RuntimeException(ex); } return parser.toString(); }
log.warn("Uknown style class #0", styleClass); continue;
private void addHyperLink(UIHyperlink link) { int row = (link.getStartRow() == null) ? currentRow : link.getStartRow(); int column = (link.getStartColumn() == null) ? currentColumn : link.getStartColumn(); if (link.getEndColumn() != null || link.getEndRow() != null) log.warn("endColumn/endRow is not supported by csv exporter", new Object[0]); addCsvCell(column, row, String.valueOf(link.getURL())); }