Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * IronJacamar, a Java EE Connector Architecture implementation
   * Copyright 2011, Red Hat Inc, and individual contributors
   * as indicated by the @author tags. See the copyright.txt file in the
   * distribution for a full listing of individual contributors.
   *
   * This is free software; you can redistribute it and/or modify it
   * under the terms of the GNU Lesser General Public License as
   * published by the Free Software Foundation; either version 2.1 of
  * the License, or (at your option) any later version.
  *
  * This software is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this software; if not, write to the Free
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  */
 
 package org.jboss.jca.core;
 
 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 static org.jboss.logging.Logger.Level.ERROR;
 import static org.jboss.logging.Logger.Level.INFO;
 import static org.jboss.logging.Logger.Level.WARN;

The core logger. Message ids ranging from 000000 to 009999 inclusively.
 
 @MessageLogger(projectCode = "IJ")
 public interface CoreLogger extends BasicLogger
 {
 
    // CACHED CONNECTION MANAGER (100)
 
   
Closing connection

Parameters:
handle The hande
 
    @LogMessage(level = )
    @Message(id = 100, value = "Closing a connection for you. Please close them yourself: %s")
    public void closingConnection(Object handle);

   
Closing connection

Parameters:
handle The hande
t The exception
 
    @LogMessage(level = )
    public void closingConnection(Object handle, @Cause Throwable t);

   
Closing connection results in throwable

Parameters:
t The exception
 
    @LogMessage(level = )
    @Message(id = 102, value = "Throwable trying to close a connection for you, please close it yourself")
    public void closingConnectionThrowable(@Cause Throwable t);

   
No close method for closing connection

Parameters:
clz The class name
 
    @LogMessage(level = )
    @Message(id = 103, value = "Could not find a close method on alleged connection object (%s). " +
             "Please close your own connections")
    public void closingConnectionNoClose(String clz);
    
    
    // WORK MANAGER (200)
 
   
SecurityContext setup failed

Parameters:
description throwable description
t The exception
 
    @LogMessage(level = )
    @Message(id = 201, value = "SecurityContext setup failed: %s")
    public void securityContextSetupFailed(String description, @Cause Throwable t);
   
   
SecurityContext setup failed since CallbackSecurity was null
 
    @LogMessage(level = )
    @Message(id = 202, value = "SecurityContext setup failed since CallbackSecurity was null")
    
    
    // CONNECTION MANAGER LISTENER (300)

   
Registered a null handle for managedConnection

Parameters:
managedConnection The managedConnection instance
   @LogMessage(level = )
   @Message(id = 301, value = "Registered a null handle for managed connection: %s")
   public void registeredNullHandleManagedConnection(Object managedConnection);
   
   
Unregistered handle that was not registered

Parameters:
handle Unregistered handle
managedConnection The managedConnection instance
   @LogMessage(level = )
   @Message(id = 302, value = "Unregistered handle that was not registered: %s" + 
         " for managed connection: %s")
   public void unregisteredHandleNotRegistered(Object handleObject managedConnection);
   
   
Unregistered a null handle for managedConnection

Parameters:
managedConnection The managedConnection instance
   @LogMessage(level = )
   @Message(id = 303, value = "Unregistered a null handle for managed connection: %s")
   public void unregisteredNullHandleManagedConnection(Object managedConnection);

   
Connection error occured

Parameters:
cl AbstractConnectionListener instance
t The exception
   @LogMessage(level = )
   @Message(id = 305, value = "Connection error occured: %s")
   public void connectionErrorOccured(Object cl, @Cause Throwable t);
   
   
Unknown Connection error occured

Parameters:
cl AbstractConnectionListener instance
t The exception
   @LogMessage(level = )
   @Message(id = 306, value = "Unknown connection error occured: %s")
   public void unknownConnectionErrorOccured(Object cl, @Cause Throwable t);
   
   
Notified of error on a different managed connection
   @LogMessage(level = )
   @Message(id = 307, value = "Notified of error on a different managed connection")
   public void notifiedErrorDifferentManagedConnection();

   
throwable from unregister connection

Parameters:
t The exception
   @LogMessage(level = )
   @Message(id = 311, value = "Throwable from unregister connection")
   public void throwableFromUnregisterConnection(@Cause Throwable t);

   
Error while closing connection handle

Parameters:
t The exception
   @LogMessage(level = )
   @Message(id = 312, value = "Error while closing connection handle")
   public void errorWhileClosingConnectionHandle(@Cause Throwable t);

   
There is something wrong with the pooling

Parameters:
t The exception
   @LogMessage(level = )
   @Message(id = 313, value = "There is something wrong with the pooling")
   public void somethingWrongWithPooling(@Cause Throwable t);
   
   
Error during beforeCompletion

Parameters:
cl AbstractConnectionListener instance
t The exception
   @LogMessage(level = )
   @Message(id = 314, value = "Error during beforeCompletion: %s")
   public void beforeCompletionErrorOccured(Object cl, @Cause Throwable t);
         
   // CONNECTION MANAGER (400)

   
Error during tidy up connection

Parameters:
cl The ConnectionListener name
t The exception
   @LogMessage(level = )
   @Message(id = 401, value = "Error during tidy up connection: %s")
   public void errorDuringTidyUpConnection(Object cl, @Cause Throwable t);
   
   
resourceException in returning connection

Parameters:
mc The ManagedConnection name
t The exception
   @LogMessage(level = )
   @Message(id = 402, value = "ResourceException in returning connection: %s")
   public void resourceExceptionReturningConnection(Object mc, @Cause Throwable t);
   
   
reconnecting a connection handle that still has a managedConnection

Parameters:
mc The ManagedConnection name
connection connection object
   @LogMessage(level = )
   @Message(id = 403, value = "Reconnecting a connection handle that still has a managed connection: %s %s")
   public void reconnectingConnectionHandleHasManagedConnection(Object mcObject connection);

   
Unchecked throwable in managedConnectionDisconnected()

Parameters:
cl The ConnectionListener name
t The exception
   @LogMessage(level = )
   @Message(id = 404, value = "Unchecked throwable in managedConnectionDisconnected() cl=%s")
   
   
   // TRANSACTION SYNCHRONIZER (500)

   
Thread is not the enlisting thread

Parameters:
currentThread current thread
enlistingThread enlisting thread
t The exception
   @LogMessage(level = )
   @Message(id = 501, value = "Thread %s is not the enlisting thread %s")
   public void threadIsnotEnlistingThread(Object currentThreadObject enlistingThread, @Cause Throwable t);
   
   
Transaction error in before completion

Parameters:
transaction transaction
synch Synchronization
t The exception
   @LogMessage(level = )
   @Message(id = 502, value = "Transaction %s error in beforeCompletion %s")
   public void transactionErrorInBeforeCompletion(Object transactionObject synch, @Cause Throwable t);
   
   
Transaction error in after completion

Parameters:
transaction transaction
synch Synchronization
t The exception
   @LogMessage(level = )
   @Message(id = 503, value = "Transaction %s error in afterCompletion %s")
   public void transactionErrorInAfterCompletion(Object transactionObject synch, @Cause Throwable t);
   
   // POOL MANAGER (600)

   
ConnectionValidator has been interrupted
   @LogMessage(level = )
   @Message(id = 601, value = "ConnectionValidator has been interrupted")
   public void returningConnectionValidatorInterrupted();
   
   
ConnectionValidator ignored unexpected runtime exception

Parameters:
t The exception
   @LogMessage(level = )
   @Message(id = 602, value = "ConnectionValidator ignored unexpected runtime exception")
   public void connectionValidatorIgnoredUnexpectedRuntimeException(@Cause Throwable t);
   
   
ConnectionValidator ignored unexpected error

Parameters:
t The exception
   @LogMessage(level = )
   @Message(id = 603, value = "ConnectionValidator ignored unexpected error")
   public void connectionValidatorIgnoredUnexpectedError(@Cause Throwable t);
   
   
Throwable while attempting to get a new connection

Parameters:
cl The ConnectionListener
t The exception
   @LogMessage(level = )
   @Message(id = 604, value = "Throwable while attempting to get a new connection: %s")
   public void throwableWhileAttemptingGetNewGonnection(Object cl, @Cause Throwable t);

   
Destroying connection that could not be successfully matched

Parameters:
cl The ConnectionListener
mcf managed connection factory
   @LogMessage(level = )
   @Message(id = 605, value = "Destroying connection that could not be successfully matched %s for %s")
   public void destroyingConnectionNotSuccessfullyMatched(Object clObject mcf);
   
   
Throwable while trying to match ManagedConnection, destroying connection

Parameters:
cl The ConnectionListener
t The exception
   @LogMessage(level = )
   @Message(id = 606, value = "Throwable while trying to match managed connection, destroying connection: %s")
   public void throwableWhileTryingMatchManagedConnection(Object cl, @Cause Throwable t);
   
   
ResourceException cleaning up ManagedConnection

Parameters:
cl The ConnectionListener
t The exception
   @LogMessage(level = )
   @Message(id = 607, value = "ResourceException cleaning up managed connection: %s")
   public void resourceExceptionCleaningUpManagedConnection(Object cl, @Cause Throwable t);
   
   
Destroying returned connection, maximum pool size exceeded

Parameters:
cl The ConnectionListener
   @LogMessage(level = )
   @Message(id = 608, value = "Destroying returned connection, maximum pool size exceeded %s")
Attempt to return connection twice

Parameters:
cl The ConnectionListener
t The exception
   @LogMessage(level = )
   @Message(id = 609, value = "Attempt to return connection twice: %s")
   public void attemptReturnConnectionTwice(Object cl, @Cause Throwable t);
   
   
Unable to fill pool

Parameters:
t The exception
   @LogMessage(level = )
   @Message(id = 610, value = "Unable to fill pool")
   public void unableFillPool(@Cause Throwable t);
   
   
Background validation was specified with a non compliant ManagedConnectionFactory interface
   @LogMessage(level = )
   @Message(id = 611, value = "Warning: Background validation was specified with a non compliant " +
         "ManagedConnectionFactory interface")
Destroying connection that could not be successfully matched

Parameters:
cl The ConnectionListener
   @LogMessage(level = )
   @Message(id = 612, value = "Destroying connection that could not be successfully matched: %s")
   public void destroyingConnectionNotSuccessfullyMatched(Object cl);
   
   
Throwable while trying to match ManagedConnection, destroying connection

Parameters:
cl The ConnectionListener
t The exception
   @LogMessage(level = )
   @Message(id = 613, value = "Throwable while trying to match managed connection, destroying connection: %s")
Exception during createSubject()

Parameters:
description throwable description
t The exception
   @LogMessage(level = )
   @Message(id = 614, value = "Exception during createSubject() %s")
   public void exceptionDuringCreateSubject(String description, @Cause Throwable t);   

   
Going to destroy connection listener during shutdown

Parameters:
poolName The pool name
mc The managed connection
   @LogMessage(level = )
   @Message(id = 615, value = "Destroying active connection in pool: %s (%s)")
   public void destroyingActiveConnection(String poolNameObject mc);
   
   
Connection leak

Parameters:
poolName The pool name
t The trace
   @LogMessage(level = )
   @Message(id = 616, value = "Leak detected in pool: %s")
   public void connectionLeak(String poolName, @Cause Throwable t);
   
   
Invalid incrementer policy

Parameters:
clz The class name
   @LogMessage(level = )
   @Message(id = 617, value = "Invalid incrementer capacity policy: %s")
   public void invalidCapacityIncrementer(String clz);
   
   
Invalid decrementer policy

Parameters:
clz The class name
   @LogMessage(level = )
   @Message(id = 618, value = "Invalid decrementer capacity policy: %s")
   public void invalidCapacityDecrementer(String clz);
   
   
Invalid policy option

Parameters:
key The property name
value The property value
policy The class name
   @LogMessage(level = )
   @Message(id = 619, value = "Invalid property '%s' with value '%s' for %s")
   public void invalidCapacityOption(String keyString valueString policy);
   
   // NAMING (700)

   
Exception during unbind

Parameters:
t The exception
   @LogMessage(level = )
   @Message(id = 701, value = "Exception during unbind")
   public void exceptionDuringUnbind(@Cause Throwable t);
   
   
   // RESOURCE ADPATER REPOSITORY (800)
   
   
   // RECOVERY (900)

   
Error during connection close

Parameters:
t The exception
   @LogMessage(level = )
   @Message(id = 901, value = "Error during connection close")
   public void exceptionDuringConnectionClose(@Cause Throwable t);

   
Error during inflow crash recovery

Parameters:
rar The resource adapter class name
as The activation spec
t The exception
   @LogMessage(level = )
   @Message(id = 902, value = "Error during inflow crash recovery for '%s' (%s)")
   public void exceptionDuringCrashRecoveryInflow(String rarObject as, @Cause Throwable t);
   
   
Error creating Subject for crash recovery

Parameters:
jndiName The JNDI name
reason The reason
t The exception
   @LogMessage(level = )
   @Message(id = 903, value = "Error creating Subject for crash recovery: %s (%s)")
   public void exceptionDuringCrashRecoverySubject(String jndiNameString reason, @Cause Throwable t);
   
   
No security domain defined for crash recovery

Parameters:
jndiName The JNDI name
   @LogMessage(level = )
   @Message(id = 904, value = "No security domain defined for crash recovery: %s")
   public void noCrashRecoverySecurityDomain(String jndiName);

   
Subject for crash recovery was null

Parameters:
jndiName The JNDI name
   @LogMessage(level = )
   @Message(id = 905, value = "Subject for crash recovery was null: %s")
   public void nullSubjectCrashRecovery(String jndiName);

   
Error during crash recovery

Parameters:
jndiName The JNDI name
reason The reason
t The exception
   @LogMessage(level = )
   @Message(id = 906, value = "Error during crash recovery: %s (%s)")
   public void exceptionDuringCrashRecovery(String jndiNameString reason, @Cause Throwable t);
   // SECURITY (1000)

   
No users.properties were found
   @LogMessage(level = )
   @Message(id = 1001, value = "No users.properties were found")
   public void noUsersPropertiesFound();

   
Error while loading users.properties

Parameters:
t The exception
   @LogMessage(level = )
   @Message(id = 1002, value = "Error while loading users.properties")
   public void errorWhileLoadingUsersProperties(@Cause Throwable t);
   
   
No roles.properties were found
   @LogMessage(level = )
   @Message(id = 1003, value = "No roles.properties were found")
   public void noRolesPropertiesFound();

   
Error while loading roles.properties

Parameters:
t The exception
   @LogMessage(level = )
   @Message(id = 1004, value = "Error while loading roles.properties")
   public void errorWhileLoadingRolesProperties(@Cause Throwable t);
   
   
No callback.properties were found
   @LogMessage(level = )
   @Message(id = 1005, value = "No callback.properties were found")
   public void noCallbackPropertiesFound();

   
Error while loading callback.properties

Parameters:
t The exception
   @LogMessage(level = )
   @Message(id = 1006, value = "Error while loading callback.properties")
   public void errorWhileLoadingCallbackProperties(@Cause Throwable t);
   
   // TRANSCATION (1100)

   
Prepare called on a local tx
   @LogMessage(level = )
   @Message(id = 1101, value = "Prepare called on a local tx. Use of local transactions on a JTA " +
         "transaction with more than one branch may result in inconsistent data in some cases of failure")
   public void prepareCalledOnLocaltx();
   
   
   // METADATA REPOSITORY (1200)
New to GrepCode? Check out our FAQ X