本文整理了Java中org.jboss.seam.log.Log.warn()
方法的一些代码示例,展示了Log.warn()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Log.warn()
方法的具体详情如下:
包路径:org.jboss.seam.log.Log
类名称:Log
方法名:warn
暂无
代码示例来源:origin: org.jboss.seam/jboss-seam
protected void warn(Object object, Object... params)
{
log.warn(object, params);
}
代码示例来源:origin: org.jboss.seam/jboss-seam
protected void warn(Object object, Throwable t, Object... params)
{
log.warn(object, t, params);
}
代码示例来源:origin: org.jboss.seam/jboss-seam
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;
}
}
代码示例来源:origin: org.jboss.seam/jboss-seam-excel
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);
}
代码示例来源:origin: org.jboss.seam/jboss-seam-excel
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);
}
代码示例来源:origin: org.jboss.seam/jboss-seam-pdf
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]);
}
}
代码示例来源:origin: org.picketlink/picketlink-seam
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;
}
代码示例来源:origin: org.jboss.seam/jboss-seam-excel
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));
}
代码示例来源:origin: org.jboss.seam/jboss-seam
log.warn("Unable to wrap into a FullTextSessionProxy, regular SessionProxy returned", e);
if ( session instanceof HibernateSessionProxy )
代码示例来源:origin: org.jboss.seam/jboss-seam-excel
log.warn("Unbalanced escape characters #0 in style #1", ESCAPE_CHAR, styleBuilder.toString());
代码示例来源:origin: org.jboss.seam/jboss-seam
@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) {}
}
代码示例来源:origin: org.jboss.seam/jboss-seam
@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();
}
代码示例来源:origin: org.jboss.seam/jboss-seam
log.warn("Error authenticating: " + ex.getMessage());
requireAuth = true;
代码示例来源:origin: org.picketlink/picketlink-seam
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.");
代码示例来源:origin: org.jboss.seam/jboss-seam-ui
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();
}
代码示例来源:origin: org.jboss.seam/jboss-seam-excel
log.warn("Uknown style class #0", styleClass);
continue;
代码示例来源:origin: org.jboss.seam/jboss-seam-excel
if (parts.length != 2)
log.warn("Header/Footer font name error in #0", command);
if (parts.length != 2)
log.warn("Header/Footer font size error in #0", command);
代码示例来源:origin: org.jboss.seam/jboss-seam
log.warn(String.format("Digest validation failed, header [%s]: %s",
section212response, ex.getMessage()));
requireAuth = true;
log.warn("Error authenticating: " + ex.getMessage());
requireAuth = true;
代码示例来源:origin: org.jboss.seam/jboss-seam-excel
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()));
}
内容来源于网络,如有侵权,请联系作者删除!