org.wildfly.naming.client._private.Messages Maven / Gradle / Ivy
Go to download
This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including
all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and
JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up
with different versions on classes on the class path).
/*
* JBoss, Home of Professional Open Source.
* Copyright 2017 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wildfly.naming.client._private;
import static org.jboss.logging.Logger.Level.DEBUG;
import static org.jboss.logging.Logger.Level.ERROR;
import static org.jboss.logging.Logger.Level.INFO;
import static org.jboss.logging.Logger.Level.WARN;
import java.io.IOException;
import java.io.InvalidClassException;
import java.net.URI;
import java.util.ServiceConfigurationError;
import javax.naming.CommunicationException;
import javax.naming.ConfigurationException;
import javax.naming.Context;
import javax.naming.InterruptedNamingException;
import javax.naming.InvalidNameException;
import javax.naming.Name;
import javax.naming.NameNotFoundException;
import javax.naming.NamingException;
import javax.naming.NoPermissionException;
import javax.naming.NotContextException;
import javax.naming.OperationNotSupportedException;
import org.jboss.logging.BasicLogger;
import org.jboss.logging.Logger;
import org.jboss.logging.annotations.Cause;
import org.jboss.logging.annotations.LogMessage;
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.MessageLogger;
import org.jboss.logging.annotations.Once;
import org.jboss.logging.annotations.Property;
import org.wildfly.naming.client.ExhaustedDestinationsException;
import org.wildfly.naming.client.RenameAcrossNamingProvidersException;
import org.wildfly.security.auth.AuthenticationException;
@MessageLogger(projectCode = "WFNAM", length = 5)
public interface Messages extends BasicLogger {
Messages log = Logger.getMessageLogger(Messages.class, "org.wildfly.naming");
// ===== TRACE =====
@LogMessage(level = Logger.Level.TRACE)
@Message(value = "Service configuration failure loading naming providers")
void serviceConfigFailed(@Cause ServiceConfigurationError error);
// ===== normal messages =====
@LogMessage
@Message(id = 0, value = "WildFly Naming version %s")
void greeting(String version);
// @Message(id = 1, value = "Failed to create object from reference")
// NamingException objectFromReference(@Cause Throwable cause);
// @Message(id = 2, value = "Failed to dereference link")
// NamingException dereferenceLink(@Cause Throwable t);
@Message(id = 3, value = "Invalid naming provider URI: %s")
ConfigurationException invalidProviderUri(@Cause Exception cause, Object providerUri);
@Message(id = 4, value = "Name \"%s\" is not found")
NameNotFoundException nameNotFound(Name name1, @Property(name = "resolvedName") Name name);
@Message(id = 5, value = "Invalid empty name")
InvalidNameException invalidEmptyName();
@Message(id = 6, value = "Cannot modify read-only naming context")
NoPermissionException readOnlyContext();
@Message(id = 7, value = "Invalid URL scheme name \"%s\"")
InvalidNameException invalidURLSchemeName(String name);
// @Message(id = 8, value = "Invalid relative name \"%s\"")
// InvalidNameException invalidRelativeName(String relativeName);
@Message(id = 9, value = "Name index %d is out of bounds")
IndexOutOfBoundsException nameIndexOutOfBounds(int pos);
@Message(id = 10, value = "Invalid null name segment at index %d")
IllegalArgumentException invalidNullSegment(int index);
@Message(id = 11, value = "Missing close quote '%s' in name \"%s\"")
InvalidNameException missingCloseQuote(char quote, String name);
@Message(id = 12, value = "Unterminated escape sequence in name \"%s\"")
InvalidNameException missingEscape(String name);
// @Message(id = 13, value = "Name URL scheme \"%s\" is not valid")
// InvalidNameException invalidNameUrlScheme(String urlScheme);
@Message(id = 14, value = "Renaming from \"%s\" to \"%s\" across providers is not supported")
RenameAcrossNamingProvidersException renameAcrossProviders(Name oldName, Name newName);
@Message(id = 15, value = "Composite name segment \"%s\" does not refer to a context")
NotContextException notContextInCompositeName(String segment);
@LogMessage(level = Logger.Level.DEBUG)
@Message(id = 16, value = "Closing context \"%s\" failed")
void contextCloseFailed(Context context, @Cause Throwable cause);
@Message(id = 17, value = "No JBoss Remoting endpoint has been configured")
CommunicationException noRemotingEndpoint();
@Message(id = 18, value = "Failed to connect to remote host")
CommunicationException connectFailed(@Cause Throwable cause);
@Message(id = 19, value = "Naming operation interrupted")
InterruptedNamingException operationInterrupted();
@Message(id = 20, value = "Remote naming operation failed")
CommunicationException operationFailed(@Cause Throwable cause);
// @Message(id = 21, value = "Connection terminated")
// CommunicationException connectionEnded();
@Message(id = 22, value = "The server provided no compatible protocol versions")
CommunicationException noCompatibleVersions();
@Message(id = 23, value = "Received an invalid response from the server")
CommunicationException invalidResponse();
@Message(id = 24, value = "Naming operation not supported")
OperationNotSupportedException notSupported();
@LogMessage(level = Logger.Level.INFO)
@Message(id = 25, value = "org.jboss.naming.remote.client.InitialContextFactory is deprecated; new applications should use org.wildfly.naming.client.WildFlyInitialContextFactory instead")
void oldContextDeprecated();
@Message(id = 26, value = "No provider for found for URI: %s")
OperationNotSupportedException noProviderForUri(String uri);
// @Message(id = 27, value = "Invalid naming permission action \"%s\"")
// IllegalArgumentException invalidPermissionAction(String action);
// @Message(id = 28, value = "Naming provider instance close failed")
// CommunicationException namingProviderCloseFailed(@Cause Throwable cause);
@Message(id = 29, value = "Invalid leading bytes in header")
CommunicationException invalidHeader();
// @Message(id = 30, value = "Unexpected response parameter received")
// IOException unexpectedResponseParameter();
@Message(id = 31, value = "Outcome not understood")
IOException outcomeNotUnderstood();
@Message(id = 32, value = "Peer authentication failed")
javax.naming.AuthenticationException authenticationFailed(@Cause AuthenticationException cause);
@Message(id = 33, value = "Connection sharing not supported")
javax.naming.AuthenticationException connectionSharingUnsupported();
@LogMessage(level = ERROR)
@Message(id = 34, value = "Unexpected parameter type - expected: %d received: %d")
void unexpectedParameterType(int expected, int actual);
@LogMessage(level = ERROR)
@Message(id = 35, value = "Failed to send exception response to client")
void failedToSendExceptionResponse(@Cause Throwable cause);
@LogMessage(level = WARN)
@Message(id = 36, value = "Unexpected internal error")
void unexpectedError(@Cause Throwable cause);
@LogMessage(level = ERROR)
@Message(id = 37, value = "null correlationId so error not sent to client")
void nullCorrelationId(@Cause Throwable cause);
@Message(id = 38, value = "Unrecognized messageId")
IOException unrecognizedMessageId();
@LogMessage(level = ERROR)
@Message(id = 39, value = "Unable to send header, closing channel")
void failedToSendHeader(@Cause IOException e);
@Message(id = 40, value = "Unsupported protocol version [ %d ]")
IllegalArgumentException unsupportedProtocolVersion(int version);
@LogMessage(level = ERROR)
@Message(id = 41, value = "Error determining version selected by client")
void failedToDetermineClientVersion(@Cause Throwable t);
// @Message(id = 42, value = "Cannot specify both a callback handler and a username/password for connection")
// RuntimeException callbackHandlerAndUsernameAndPasswordSpecified();
@Message(id = 43, value = "Unable to load callback handler class \"%s\"")
RuntimeException failedToLoadCallbackHandlerClass(@Cause Exception cause, String callbackHandlerClass);
@Message(id = 44, value = "Unable to instantiate callback handler instance of type \"%s\"")
NamingException failedToInstantiateCallbackHandlerInstance(@Cause Exception cause, String callbackHandlerClass);
// @Message(id = 45, value = "Cannot specify both a plain text and base64 encoded password")
// NamingException plainTextAndBase64PasswordSpecified();
// @Message(id = 46, value = "Failed to configure SSL context")
// CommunicationException failedToConfigureSslContext(@Cause Throwable cause);
// @Message(id = 47, value = "Failed to connect to any server")
// IOException failedToConnectToAnyServer();
// @Message(id = 48, value = "Failed to close one or more naming providers")
// NamingException failedToCloseNamingProviders();
@Once
@LogMessage(level = INFO)
@Message(id = 49, value = "Usage of the legacy \"remote.connections\" property is deprecated; please use javax.naming.Context#PROVIDER_URL instead")
void deprecatedProperties();
// @Message(id = 50, value = "Invalid location given")
// IllegalArgumentException invalidLocation();
@LogMessage(level = WARN)
@Message(id = 51, value = "Provider URLs already given via standard mechanism; ignoring legacy property-based connection configuration")
void ignoringLegacyProperties();
@Message(id = 52, value = "Invalid value given for property \"%s\": \"%s\" is not numeric")
ConfigurationException invalidNumericProperty(@Cause Throwable e, String propertyName, String resultStr);
@Message(id = 53, value = "Failed to synthesize a valid provider URL")
ConfigurationException invalidProviderGenerated(@Cause Throwable e);
@LogMessage(level = WARN)
@Message(id = 54, value = "Ignoring duplicate destination URI \"%s\"")
void ignoringDuplicateDestination(URI uri);
@Message(id = 55, value = "No more destinations are available to attempt the operation (%d blocklisted, %d transiently failed). See suppressed exceptions for details")
ExhaustedDestinationsException noMoreDestinations(int blocklisted, int transientlyFailed);
@Message(id = 56, value = "No more destinations are available to attempt the operation.")
ExhaustedDestinationsException noMoreDestinations();
@LogMessage(level = Logger.Level.INFO)
@Message(id = 57, value = "jboss-naming-client.properties is deprecated; new applications should use org.wildfly.naming.client.WildFlyInitialContextFactory instead")
void oldClientPropertyFileDeprecated();
@Message(id = 58, value = "Exception resolving class %s for unmarshalling; it has either been blocklisted or not allowlisted")
InvalidClassException cannotResolveFilteredClass(String clazz);
@LogMessage(level = DEBUG)
@Message(id = 59, value = "JavaEE to JakartaEE backward compatibility layer have been installed")
void javaeeToJakartaeeBackwardCompatibilityLayerInstalled();
}