本文整理了Java中org.identityconnectors.common.logging.Log.error()
方法的一些代码示例,展示了Log.error()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Log.error()
方法的具体详情如下:
包路径:org.identityconnectors.common.logging.Log
类名称:Log
方法名:error
暂无
代码示例来源:origin: org.connid/connid-framework-internal
/**
* Returns the current thread-local class loader
*
* @return the current thread-local class loader
*/
public ClassLoader getCurrentClassLoader() {
final ClassLoader result = Thread.currentThread().getContextClassLoader();
// Attempt to provide more information to issue 604.
if (result == null) {
LOG.error(new Throwable(), "The CCL of current thread ''{0}'' is null", Thread.currentThread().getName());
}
return result;
}
}
代码示例来源:origin: net.tirasa.connid/connector-framework-internal
/**
* Returns the current thread-local class loader
*
* @return the current thread-local class loader
*/
public ClassLoader getCurrentClassLoader() {
final ClassLoader result = Thread.currentThread().getContextClassLoader();
// Attempt to provide more information to issue 604.
if (result == null) {
LOG.error(new Throwable(), "The CCL of current thread ''{0}'' is null", Thread
.currentThread().getName());
}
return result;
}
}
代码示例来源:origin: net.tirasa.connid/connector-framework-internal
@Override
public void setContextClassLoader(ClassLoader cl) {
if (cl == null) {
LOG.error(new Throwable(), "Attempting to set the CCL of thread ''{0}'' to null", getName());
}
super.setContextClassLoader(cl);
}
}
代码示例来源:origin: Tirasa/ConnId
/**
* Returns the current thread-local class loader
*
* @return the current thread-local class loader
*/
public ClassLoader getCurrentClassLoader() {
final ClassLoader result = Thread.currentThread().getContextClassLoader();
// Attempt to provide more information to issue 604.
if (result == null) {
LOG.error(new Throwable(), "The CCL of current thread ''{0}'' is null", Thread
.currentThread().getName());
}
return result;
}
}
代码示例来源:origin: org.connid/connid-framework-internal
@Override
public void setContextClassLoader(ClassLoader cl) {
if (cl == null) {
_log.error(new Throwable(), "Attempting to set the CCL of thread ''{0}'' to null", getName());
}
super.setContextClassLoader(cl);
}
}
代码示例来源:origin: Tirasa/ConnId
@Override
public void setContextClassLoader(ClassLoader cl) {
if (cl == null) {
LOG.error(new Throwable(), "Attempting to set the CCL of thread ''{0}'' to null", getName());
}
super.setContextClassLoader(cl);
}
}
代码示例来源:origin: org.connid.bundles/org.connid.bundles.csvdir
private void execute() throws SQLException {
ResultSet resultSet = conn.allCsvFiles();
try {
if (resultSet == null || resultSet.wasNull()) {
LOG.error("Test failed");
throw new ConnectorException("Test failed");
}
} finally {
if (resultSet != null) {
resultSet.close();
}
}
}
}
代码示例来源:origin: org.connid/connid-framework-internal
private void checkCCL() {
if (getContextClassLoader() == null) {
_log.error(new Throwable(), "The CCL of thread ''{0}'' was null after initialization. The CCL of current thread ''{1}'' is {2}",
getName(),
Thread.currentThread().getName(),
Thread.currentThread().getContextClassLoader());
} else {
_log.info("Creating thread ''{0}'' with a non-null CCL", getName());
}
}
代码示例来源:origin: org.connid.bundles/org.connid.bundles.csvdir
public Uid execute() {
try {
return executeImpl();
} catch (Exception e) {
LOG.error(e, "error during updating");
throw new ConnectorException(e);
} finally {
try {
if (conn != null) {
conn.closeConnection();
}
} catch (SQLException e) {
LOG.error(e, "Error closing connections");
}
}
}
代码示例来源:origin: net.tirasa.connid/connector-framework-internal
private void checkCCL() {
if (getContextClassLoader() == null) {
LOG.error(new Throwable(), "The CCL of thread ''{0}'' was null after initialization. The CCL of current thread ''{1}'' is {2}",
getName(),
Thread.currentThread().getName(),
Thread.currentThread().getContextClassLoader());
} else {
LOG.info("Creating thread ''{0}'' with a non-null CCL", getName());
}
}
代码示例来源:origin: org.connid.bundles/org.connid.bundles.csvdir
public void execute() {
try {
executeImpl();
} catch (Exception e) {
LOG.error(e, "error during updating");
throw new ConnectorException(e);
} finally {
try {
if (conn != null) {
conn.closeConnection();
}
} catch (SQLException e) {
LOG.error(e, "Error closing connections");
}
}
}
代码示例来源:origin: org.connid.bundles/org.connid.bundles.csvdir
public void execute() {
try {
executeImpl();
} catch (Exception e) {
LOG.error(e, "error during updating");
throw new ConnectorException(e);
} finally {
try {
if (conn != null) {
conn.closeConnection();
}
} catch (SQLException e) {
LOG.error(e, "Error closing connections");
}
}
}
代码示例来源:origin: org.connid.bundles/org.connid.bundles.csvdir
public long execute() {
try {
return executeImpl();
} catch (Exception e) {
LOG.error(e, "error during updating");
throw new ConnectorException(e);
} finally {
try {
if (conn != null) {
conn.closeConnection();
}
} catch (SQLException e) {
LOG.error(e, "Error closing connections");
}
}
}
代码示例来源:origin: org.connid.bundles/org.connid.bundles.csvdir
public Uid execute() {
try {
return executeImpl();
} catch (Exception e) {
LOG.error(e, "error during creation");
throw new ConnectorException(e);
} finally {
try {
if (conn != null) {
conn.closeConnection();
}
} catch (SQLException e) {
LOG.error(e, "Error closing connections");
}
}
}
代码示例来源:origin: Tirasa/ConnId
private void checkCCL() {
if (getContextClassLoader() == null) {
LOG.error(new Throwable(), "The CCL of thread ''{0}'' was null after initialization. The CCL of current thread ''{1}'' is {2}",
getName(),
Thread.currentThread().getName(),
Thread.currentThread().getContextClassLoader());
} else {
LOG.info("Creating thread ''{0}'' with a non-null CCL", getName());
}
}
代码示例来源:origin: org.connid.bundles/org.connid.bundles.csvdir
public Schema execute() {
try {
return executeImpl();
} catch (Exception e) {
LOG.error(e, "error during updating");
throw new ConnectorException(e);
}
}
代码示例来源:origin: org.connid.bundles/org.connid.bundles.csvdir
public void test() {
try {
execute();
} catch (Exception e) {
LOG.error(e, "error during test connection");
throw new ConnectorException(e);
}
}
代码示例来源:origin: org.connid.bundles/org.connid.bundles.csvdir
@Override
public final void test() {
LOG.info("Connection test");
try {
new CSVDirTest(configuration).test();
} catch (Exception e) {
LOG.error("Test failed", e);
}
}
}
代码示例来源:origin: org.connid.bundles.db/common
/**
* commit transaction
*/
public void commit() {
try {
getConnection().commit();
} catch (SQLException e) {
SQLUtil.rollbackQuietly(getConnection());
log.error(e, "error in commit");
throw ConnectorException.wrap(e);
}
}
}
代码示例来源:origin: net.tirasa.connid/connector-framework-internal
@Override
public ConnectorFacade newInstance(final ConnectorInfo connectorInfo, String config) {
ConnectorFacade ret = null;
if (connectorInfo instanceof LocalConnectorInfoImpl) {
try {
// create a new Provisioner.
ret = new LocalConnectorFacadeImpl((LocalConnectorInfoImpl) connectorInfo, config);
} catch (Exception ex) {
String connector = connectorInfo.getConnectorKey().toString();
LOG.error(ex, "Failed to create new connector facade: {0}, {1}", connector, config);
throw ConnectorException.wrap(ex);
}
} else if (connectorInfo instanceof RemoteConnectorInfoImpl) {
ret = new RemoteConnectorFacadeImpl((RemoteConnectorInfoImpl) connectorInfo, config);
} else {
throw new IllegalArgumentException("Unknown ConnectorInfo type");
}
return ret;
}
内容来源于网络,如有侵权,请联系作者删除!