本文整理了Java中org.granite.logging.Logger.error()
方法的一些代码示例,展示了Logger.error()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.error()
方法的具体详情如下:
包路径:org.granite.logging.Logger
类名称:Logger
方法名:error
暂无
代码示例来源:origin: org.graniteds/granite-client-javafx
@Override
public void handleException(TransportException e) {
log.error(e, "Engine failed");
}
}
代码示例来源:origin: org.graniteds/granite-client
@Override
public void onIssue(IssueEvent event) {
log.error("Subscription failed %s: %s", consumer, event);
}
};
代码示例来源:origin: org.graniteds/granite-client
@Override
public void handleException(TransportException e) {
log.error(e, "Engine failed");
}
}
代码示例来源:origin: org.graniteds/granite-client-javafx
private void handleClass(Class<?> clazz) {
if (clazz.isInterface() || Modifier.isAbstract(clazz.getModifiers()))
return;
if (Externalizer.class.isAssignableFrom(clazz)) {
try {
scannedExternalizers.add(TypeUtil.newInstance(clazz, Externalizer.class));
} catch (Exception e) {
log.error(e, "Could not create new instance of: %s", clazz);
}
}
}
代码示例来源:origin: org.graniteds/granite-client-java-advanced
@Override
public void onIssue(IssueEvent event) {
log.error("Destination %s could not be subscribed: %s", destination, event.getType());
subscribing = false;
}
};
代码示例来源:origin: org.graniteds/granite-client-javafx
@Override
public void onIssue(IssueEvent event) {
log.error("Subscription failed %s: %s", consumer, event);
for (TopicSubscriptionListener subscriptionListener : subscriptionListeners.keySet())
subscriptionListener.onSubscriptionFault(Consumer.this, event);
}
};
代码示例来源:origin: org.graniteds/granite-client-javafx
@Override
public void onIssue(IssueEvent event) {
log.error("Unsubscription failed %s: %s", consumer, event);
channel.removeConsumer(consumer);
for (TopicSubscriptionListener subscriptionListener : subscriptionListeners.keySet())
subscriptionListener.onUnsubscriptionFault(Consumer.this, event, subscriptionId);
subscriptionId = null;
}
};
代码示例来源:origin: org.graniteds/granite-client-javafx
private void scanConfig(String graniteConfigProperties) {
//if config overriding exists
Scanner scanner = ScannerFactory.createScanner(this, graniteConfigProperties != null ? graniteConfigProperties : GRANITE_CONFIG_PROPERTIES);
try {
scanner.scan();
} catch (Exception e) {
log.error(e, "Could not scan classpath for configuration");
}
}
代码示例来源:origin: org.graniteds/granite-client
public boolean handleMarkerItem(ScannedItem item) {
try {
return handleProperties(item.loadAsProperties());
} catch (Exception e) {
log.error(e, "Could not load properties: %s", item);
}
return true;
}
代码示例来源:origin: org.graniteds/granite-server
public void configure(XMap adapterProperties, XMap destinationProperties) throws ServiceException {
String securityPolicy = adapterProperties.get("security-policy");
if (securityPolicy != null) {
try {
this.securityPolicy = TypeUtil.newInstance(securityPolicy, SecurityPolicy.class);
}
catch (Exception e) {
log.error(e, "Could not create instance of %s (using default security policy)", securityPolicy);
}
}
}
代码示例来源:origin: org.graniteds/granite-client-javafx
public boolean handleMarkerItem(ScannedItem item) {
try {
return handleProperties(item.loadAsProperties());
} catch (Exception e) {
log.error(e, "Could not load properties: %s", item);
}
return true;
}
代码示例来源:origin: org.graniteds/granite-client
private void scanConfig(String graniteConfigProperties) {
//if config overriding exists
Scanner scanner = ScannerFactory.createScanner(this, graniteConfigProperties != null ? graniteConfigProperties : GRANITE_CONFIG_PROPERTIES);
try {
scanner.scan();
} catch (Exception e) {
log.error(e, "Could not scan classpath for configuration");
}
}
代码示例来源:origin: org.graniteds/granite-server
public ServiceException handleNoSuchMethodException(Message request,
Destination destination, Object invokee, String method,
Object[] args, NoSuchMethodException e) {
if (getLogException())
log.error(e, "Could not process remoting message: %s", request);
return getServiceException(request, destination, method, e);
}
代码示例来源:origin: org.graniteds/granite-client
public void handleScannedItem(ScannedItem item) {
if ("class".equals(item.getExtension()) && item.getName().indexOf('$') == -1) {
try {
handleClass(item.loadAsClass());
} catch (Throwable t) {
log.error(t, "Could not load class: %s", item);
}
}
}
代码示例来源:origin: org.graniteds/granite-client-java
protected void onError(Channel channel, Throwable throwable) {
log.error(throwable, "Websocket connection error");
channel.onError(connectMessage, new RuntimeException("Websocket connection error", throwable));
getStatusHandler().handleException(new TransportException("Websocket connection error: " + throwable.getMessage()));
}
}
代码示例来源:origin: org.graniteds/granite-client-javafx
protected void onError(Channel channel, Throwable throwable) {
log.error(throwable, "Websocket connection error");
channel.onError(connectMessage, new RuntimeException("Websocket connection error", throwable));
getStatusHandler().handleException(new TransportException("Websocket connection error: " + throwable.getMessage()));
}
}
代码示例来源:origin: org.graniteds/granite-server
private void scanConfig(String serviceConfigProperties, List<ScannedItemHandler> handlers) {
Scanner scanner = ScannerFactory.createScanner(this, serviceConfigProperties != null ? serviceConfigProperties : SERVICES_CONFIG_PROPERTIES);
scanner.addHandlers(handlers);
try {
scanner.scan();
} catch (Exception e) {
log.error(e, "Could not scan classpath for configuration");
}
}
代码示例来源:origin: org.graniteds/granite-client
private void scanConfig(String serviceConfigProperties, List<ScannedItemHandler> handlers) {
Scanner scanner = ScannerFactory.createScanner(this, serviceConfigProperties != null ? serviceConfigProperties : SERVICES_CONFIG_PROPERTIES);
scanner.addHandlers(handlers);
try {
scanner.scan();
} catch (Exception e) {
log.error(e, "Could not scan classpath for configuration");
}
}
代码示例来源:origin: org.ow2.kerneos.graniteds-osgi/granite-core
@Validate
public void start() {
log.debug("Start OSGiDestinationAdapter: " + toString());
if (service.findDestinationById(id) == null) {
service.addDestination(this);
started = true;
} else {
log.error("Destination \"" + id + "\" already registered");
}
}
代码示例来源:origin: org.graniteds/granite-client-javafx
@Override
public void connect(final Channel channel, final TransportMessage transportMessage) {
try {
log.info("Connecting to websocket %s sessionId %s", channel.getUri(), transportMessage.getSessionId());
webSocketContainer.connectToServer(new GravityWebSocketEndpoint(channel), new GravityWebSocketEndpointConfig(channel, transportMessage), channel.getUri());
}
catch (Exception e) {
log.error(e, "Could not connect to uri %s", channel.getUri());
getStatusHandler().handleException(new TransportException("Could not connect to uri " + channel.getUri(), e));
}
}
内容来源于网络,如有侵权,请联系作者删除!