Interface JpaLogger

All Superinterfaces:
org.jboss.logging.BasicLogger
All Known Implementing Classes:
JpaLogger_$logger

@MessageLogger(projectCode="WFLYJPA", length=4) public interface JpaLogger extends org.jboss.logging.BasicLogger
Date: 07.06.2011
Author:
James R. Perkins, David M. Lloyd
  • Field Details

    • ROOT_LOGGER

      static final JpaLogger ROOT_LOGGER
      Default root level logger with the package name for he category.
  • Method Details

    • duplicatePersistenceUnitDefinition

      @LogMessage(level=WARN) @Message(id=1, value="Duplicate Persistence Unit definition for %s in application. One of the duplicate persistence.xml should be removed from the application. Application deployment will continue with the persistence.xml definitions from %s used. The persistence.xml definitions from %s will be ignored.") void duplicatePersistenceUnitDefinition(String puName, String ogPuName, String dupPuName)
      Logs a warning message indicating duplicate persistence.xml files were found.
      Parameters:
      puName - the persistence XML file.
      ogPuName - the original persistence.xml file.
      dupPuName - the duplicate persistence.xml file.
    • readingPersistenceXml

      @LogMessage(level=INFO) @Message(id=2, value="Read persistence.xml for %s") void readingPersistenceXml(String puUnitName)
      Logs an informational message indicating the persistence.xml file is being read.
      Parameters:
      puUnitName - the persistence unit name.
    • startingService

      @LogMessage(level=INFO) @Message(id=3, value="Starting %s Service \'%s\'") void startingService(String serviceName, String name)
      Logs an informational message indicating the service, represented by the serviceName parameter, is starting.
      Parameters:
      serviceName - the name of the service.
      name - an additional name for the service.
    • stoppingService

      @LogMessage(level=INFO) @Message(id=4, value="Stopping %s Service \'%s\'") void stoppingService(String serviceName, String name)
      Logs an informational message indicating the service, represented by the serviceName parameter, is stopping.
      Parameters:
      serviceName - the name of the service.
      name - an additional name for the service.
    • errorPreloadingDefaultProvider

      @LogMessage(level=ERROR) @Message(id=6, value="Could not load default persistence provider module. ") void errorPreloadingDefaultProvider(@Cause Throwable cause)
      Logs an error message indicating an exception occurred while preloading the default persistence provider module. Initialization continues after logging the error.
      Parameters:
      cause - the cause of the error.
    • failedToStopPUService

      @LogMessage(level=ERROR) @Message(id=7, value="Failed to stop persistence unit service %s") void failedToStopPUService(@Cause Throwable cause, String name)
      Logs an error message indicating the persistence unit was not stopped
      Parameters:
      cause - the cause of the error.
      name - name of the persistence unit
    • startingPersistenceUnitService

      @LogMessage(level=INFO) @Message(id=10, value="Starting Persistence Unit (phase %d of 2) Service \'%s\'") void startingPersistenceUnitService(int phase, String name)
      Logs an informational message indicating the persistence unit service is starting phase n of 2.
      Parameters:
      phase - is the phase number (1 or 2)
      name - an additional name for the service.
    • stoppingPersistenceUnitService

      @LogMessage(level=INFO) @Message(id=11, value="Stopping Persistence Unit (phase %d of 2) Service \'%s\'") void stoppingPersistenceUnitService(int phase, String name)
      Logs an informational message indicating the service is stopping.
      Parameters:
      phase - is the phase number (1 or 2)
      name - an additional name for the service.
    • unexpectedStatisticsProblem

      @LogMessage(level=WARN) @Message(id=12, value="Unexpected problem gathering statistics") void unexpectedStatisticsProblem(@Cause RuntimeException cause)
      Logs warning about unexpected problem gathering statistics.
      Parameters:
      cause - is the cause of the warning
    • cannotCloseContainerManagedEntityManager

      @Message(id=15, value="Container managed entity manager can only be closed by the container (will happen when @remove method is invoked on containing SFSB)") IllegalStateException cannotCloseContainerManagedEntityManager()
      Creates an exception indicating the entity manager cannot be closed when it is managed by the container.
      Returns:
      an IllegalStateException for the error.
    • cannotCloseTransactionContainerEntityManger

      @Message(id=17, value="Container managed entity manager can only be closed by the container (auto-cleared at tx/invocation end and closed when owning component is closed.)") IllegalStateException cannotCloseTransactionContainerEntityManger()
      Creates an exception indicating the transactional entity manager cannot be closed when it is managed by the container.
      Returns:
      an IllegalStateException for the error.
    • cannotCreateAdapter

      @Message(id=18, value="Could not create instance of adapter class \'%s\'") org.jboss.as.server.deployment.DeploymentUnitProcessingException cannotCreateAdapter(@Cause Throwable cause, String className)
      Creates an exception indicating the inability to create an instance of the adapter class represented by the className parameter.
      Parameters:
      cause - the cause of the error.
      className - the adapter class name.
      Returns:
      a DeploymentUnitProcessingException for the error.
    • cannotDeployApp

      @Message(id=19, value="Could not deploy application packaged persistence provider \'%s\'") org.jboss.as.server.deployment.DeploymentUnitProcessingException cannotDeployApp(@Cause Throwable cause, String providerName)
      Creates an exception indicating the application could not be deployed with the persistence provider, represented by the providerName parameter, packaged.
      Parameters:
      cause - the cause of the error.
      providerName - the persistence provider.
      Returns:
      a DeploymentUnitProcessingException for the error.
    • cannotGetSessionFactory

      @Message(id=20, value="Couldn\'t get Hibernate session factory from entity manager") RuntimeException cannotGetSessionFactory(@Cause Throwable cause)
      Creates an exception indicating a failure to get the Hibernate session factory from the entity manager.
      Parameters:
      cause - the cause of the error.
      Returns:
      a RuntimeException for the error.
    • cannotInjectResourceLocalEntityManager

      @Message(id=21, value="Cannot inject RESOURCE_LOCAL container managed EntityManagers using @PersistenceContext") String cannotInjectResourceLocalEntityManager()
      A message indicating the inability to inject a PersistenceUnitTransactionType.RESOURCE_LOCAL container managed EntityManager using the PersistenceContext annotation.
      Returns:
      the message.
    • cannotLoadFromJpa

      @Message(id=25, value="Couldn\'t load %s from Jakarta Persistence modules classloader") RuntimeException cannotLoadFromJpa(@Cause Throwable cause, String injectionTypeName)
      Creates an exception indicating the injectionTypeName could not be loaded from the Jakarta Persistence modules class loader.
      Parameters:
      cause - the cause of the error.
      injectionTypeName - the name of the type.
      Returns:
      a RuntimeException for the error.
    • cannotLoadPersistenceProviderModule

      @Message(id=27, value="Persistence provider module load error %s (class %s)") org.jboss.as.server.deployment.DeploymentUnitProcessingException cannotLoadPersistenceProviderModule(@Cause Throwable cause, String persistenceProviderModule, String persistenceProviderClass)
      Creates an exception indicating the persistence provider module, represented by the persistenceProviderModule parameter, had an error loading.
      Parameters:
      cause - the cause of the error.
      persistenceProviderModule - the name of the adapter module.
      persistenceProviderClass - the persistence provider class.
      Returns:
      a DeploymentUnitProcessingException for the error.
    • cannotSpecifyBoth

      @Message(id=29, value="Cannot specify both %s (%s) and %s (%s) in %s for %s") org.jboss.as.server.deployment.DeploymentUnitProcessingException cannotSpecifyBoth(String key1, Object value1, String key2, Object value2, String parentTag, Object object)
      Creates an exception indicating that both key1 and key2 cannot be specified for the object.
      Parameters:
      key1 - the first key/tag.
      value1 - the first value.
      key2 - the second key/tag.
      value2 - the second value.
      parentTag - the parent tag.
      object - the object the values are being specified for.
      Returns:
      a DeploymentUnitProcessingException for the error.
    • cannotUseExtendedPersistenceTransaction

      @Message(id=30, value="Found extended persistence context in SFSB invocation call stack but that cannot be used because the transaction already has a transactional context associated with it. This can be avoided by changing application code, either eliminate the extended persistence context or the transactional context. See JPA spec 2.0 section 7.6.3.1. Scoped persistence unit name=%s, persistence context already in transaction =%s, extended persistence context =%s.") jakarta.ejb.EJBException cannotUseExtendedPersistenceTransaction(String puScopedName, jakarta.persistence.EntityManager existingEntityManager, jakarta.persistence.EntityManager self)
      Creates an exception indicating the extended persistence context for the SFSB already exists.
      Parameters:
      puScopedName - the persistence unit name.
      existingEntityManager - the existing transactional entity manager.
      self - the entity manager attempting to be created.
      Returns:
      an EJBException for the error.
    • childNotFound

      @Message(id=31, value="Could not find child \'%s\' on \'%s\'") RuntimeException childNotFound(String child, org.jboss.vfs.VirtualFile parent)
      Creates an exception indicating the child could not be found on the parent.
      Parameters:
      child - the child that could not be found.
      parent - the parent.
      Returns:
      a RuntimeException for the error.
    • classLevelAnnotationParameterRequired

      @Message(id=32, value="Class level %s annotation on class %s must provide a %s") String classLevelAnnotationParameterRequired(String annotation, String className, String parameter)
      Creates an exception indicating the class level annotation must provide the parameter specified.
      Parameters:
      annotation - the annotation.
      className - the class name
      parameter - the parameter.
      Returns:
      a string for the error.
    • persistenceUnitNotFound

      @Message(id=33, value="Can\'t find a persistence unit named %s in %s") String persistenceUnitNotFound(String puName, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
      A message indicating that the persistence unit, represented by the path parameter, could not be found at the current deployment unit, represented by the deploymentUnit parameter.
      Parameters:
      puName - the persistence unit name.
      deploymentUnit - the deployment unit.
      Returns:
      the message.
    • persistenceUnitNotFound

      @Message(id=34, value="Can\'t find a persistence unit named %s#%s at %s") IllegalArgumentException persistenceUnitNotFound(String path, String puName, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
      Creates an exception indicating that the persistence unit, represented by the path and puName parameters, could not be found at the current deployment unit, represented by the deploymentUnit parameter.
      Parameters:
      path - the path.
      puName - the persistence unit name.
      deploymentUnit - the deployment unit.
      Returns:
      an IllegalArgumentException for the error.
    • errorGettingTransaction

      @Message(id=36, value="An error occurred while getting the transaction associated with the current thread: %s") IllegalStateException errorGettingTransaction(Exception cause)
      Creates an exception indicating there was an error when trying to get the transaction associated with the current thread.
      Parameters:
      cause - the cause of the error.
      Returns:
      an IllegalStateException for the error.
    • failedToGetAdapter

      @Message(id=37, value="Failed to get adapter for persistence provider \'%s\'") org.jboss.as.server.deployment.DeploymentUnitProcessingException failedToGetAdapter(String className)
      Creates an exception indicating a failure to get the adapter for the persistence provider.
      Parameters:
      className - the adapter class name.
      Returns:
      a DeploymentUnitProcessingException for the error.
    • failedToAddPersistenceUnit

      @Message(id=38, value="Failed to add persistence unit service for %s") org.jboss.as.server.deployment.DeploymentUnitProcessingException failedToAddPersistenceUnit(@Cause Throwable cause, String puName)
      Creates an exception indicating a failure to add the persistence unit service.
      Parameters:
      cause - the cause of the error.
      puName - the persistence unit name.
      Returns:
      a DeploymentUnitProcessingException for the error.
    • failedToParse

      @Message(id=40, value="Failed to parse %s") String failedToParse(org.jboss.vfs.VirtualFile file)
      A message indicating a failure to parse the file.
      Parameters:
      file - the file that could not be parsed.
      Returns:
      the message.
    • invalidPersistenceUnitName

      @Message(id=43, value="Persistence unit name (%s) contains illegal \'%s\' character") IllegalArgumentException invalidPersistenceUnitName(String persistenceUnitName, char c)
      Creates an exception indicating the persistence unit name contains an invalid character.
      Parameters:
      persistenceUnitName - the persistence unit name.
      c - the invalid character.
      Returns:
      an IllegalArgumentException for the error.
    • invalidScopedName

      @Message(id=44, value="jboss.as.jpa.scopedname hint (%s) contains illegal \'%s\' character") IllegalArgumentException invalidScopedName(String persistenceUnitName, char c)
      Creates an exception indicating the (custom) scoped persistence unit name is invalid.
      Returns:
      a RuntimeException for the error.
    • multipleAdapters

      @Message(id=48, value="Persistence provider adapter module (%s) has more than one adapter") RuntimeException multipleAdapters(String adapterModule)
      Creates an exception indicating the persistence provider adapter module, represented by the adapterModule parameter, has more than one adapter.
      Parameters:
      adapterModule - the adapter module name.
      Returns:
      a RuntimeException for the error.
    • nullParameter

      @Message(id=53, value="Internal %s error, null %s passed in") RuntimeException nullParameter(String description, String parameterName)
      Creates an exception indicating the description is null.
      Parameters:
      description - the description of the parameter.
      parameterName - the parameter name.
      Returns:
      a RuntimeException for the error.
    • persistenceProviderNotFound

      @Message(id=57, value="PersistenceProvider \'%s\' not found") jakarta.persistence.PersistenceException persistenceProviderNotFound(String providerName)
      Creates an exception indicating the persistence provider could not be found.
      Parameters:
      providerName - the provider name.
      Returns:
      a PersistenceException for the error.
    • relativePathNotFound

      @Message(id=58, value="Could not find relative path: %s") RuntimeException relativePathNotFound(@Cause Throwable cause, String path)
      Creates an exception indicating the relative path could not be found.
      Parameters:
      cause - the cause of the error.
      path - the path that could not be found.
      Returns:
      a RuntimeException for the error.
    • setterMethodOnlyAnnotation

      @Message(id=59, value="%s injection target is invalid. Only setter methods are allowed: %s") String setterMethodOnlyAnnotation(String annotation, org.jboss.jandex.MethodInfo methodInfo)
      A message indicating the annotation is only valid on setter method targets.
      Parameters:
      annotation - the annotation.
      methodInfo - the method information.
      Returns:
      the message.
    • transactionRequired

      @Message(id=60, value="Transaction is required to perform this operation (either use a transaction or extended persistence context)") jakarta.persistence.TransactionRequiredException transactionRequired()
      Creates an exception indicating a transaction is required for the operation.
      Returns:
      a TransactionRequiredException for the error.
    • noPUnitNameSpecifiedAndMultiplePersistenceUnits

      @Message(id=61, value="Persistence unitName was not specified and there are %d persistence unit definitions in application deployment %s. Either change the application deployment to have only one persistence unit definition or specify the unitName for each reference to a persistence unit.") IllegalArgumentException noPUnitNameSpecifiedAndMultiplePersistenceUnits(int puCount, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
      JBoss 4 prevented applications from referencing the persistence unit without specifying the pu name, if there were multiple persistence unit definitions in the app. JBoss 5 loosened the checking up, to let applications, just use any PU definition that they find. For AS7, we are strictly enforcing this again just like we did in JBoss 4. AS7-2275
      Parameters:
      deploymentUnit - the deployment unit.
      puCount - is number of persistence units defined in application
      Returns:
      an IllegalArgumentException for the error.
    • couldNotCreateInstanceProvider

      @Message(id=62, value="Could not create instance of persistence provider class %s") RuntimeException couldNotCreateInstanceProvider(@Cause Throwable cause, String providerClassName)
      Creates an exception indicating the persistence provider could not be instantiated ,
      Parameters:
      cause - the cause of the error.
      providerClassName - name of the provider class
      Returns:
      a RuntimeException for the error.
    • referenceCountedEntityManagerNegativeCount

      @Message(id=63, value="internal error, the number of stateful session beans (%d) associated with an extended persistence context (%s) cannot be a negative number.") RuntimeException referenceCountedEntityManagerNegativeCount(int referenceCount, String scopedPuName)
      internal error indicating that the number of stateful session beans associated with a extended persistence context has reached a negative count.
      Returns:
      a RuntimeException for the error
    • badSynchronizationTypeCombination

      @Message(id=64, value="Jakarta Transactions transaction already has a \'SynchronizationType.UNSYNCHRONIZED\' persistence context (EntityManager) joined to it but a component with a \'SynchronizationType.SYNCHRONIZED\' is now being used. Change the calling component code to join the persistence context (EntityManager) to the transaction or change the called component code to also use \'SynchronizationType.UNSYNCHRONIZED\'. See JPA spec 2.1 section 7.6.4.1. Scoped persistence unit name=%s.") IllegalStateException badSynchronizationTypeCombination(String puScopedName)
      Can't use a new unsynchronization persistence context when transaction already has a synchronized persistence context.
      Parameters:
      puScopedName - the persistence unit name.
      Returns:
      an IllegalStateException for the error.
    • resourcesOfTypeCannotBeRegistered

      @Message(id=65, value="Resources of type %s cannot be registered") UnsupportedOperationException resourcesOfTypeCannotBeRegistered(String key)
    • resourcesOfTypeCannotBeRemoved

      @Message(id=66, value="Resources of type %s cannot be removed") UnsupportedOperationException resourcesOfTypeCannotBeRemoved(String key)
    • classloaderHasMultipleAdapters

      @Message(id=67, value="Classloader \'%s\' has more than one Persistence provider adapter") RuntimeException classloaderHasMultipleAdapters(String classloader)
      Only one persistence provider adapter per (persistence provider or application) classloader is allowed
      Parameters:
      classloader - offending classloader
      Returns:
      a RuntimeException for the error.
    • persistenceProviderAdaptorModuleLoadError

      @Message(id=69, value="Persistence provider adapter module load error %s") org.jboss.as.server.deployment.DeploymentUnitProcessingException persistenceProviderAdaptorModuleLoadError(@Cause Throwable cause, String adaptorModule)
      persistence provider adaptor module load error
      Parameters:
      cause - the cause of the error.
      adaptorModule - name of persistence provider adaptor module that couldn't be loaded.
      Returns:
      the exception
    • xpcOnlyFromSFSB

      @Message(id=70, value="A container-managed extended persistence context can only be initiated within the scope of a stateful session bean (persistence unit \'%s\').") IllegalStateException xpcOnlyFromSFSB(String scopedPuName)
      extended persistence context can only be used within a stateful session bean. WFLY-69
      Parameters:
      scopedPuName - name of the persistence unit
      Returns:
      the exception
    • differentSearchModuleDependencies

      @Message(id=71, value="Deployment \'%s\' specified more than one Hibernate Search module name (\'%s\',\'%s\')") org.jboss.as.server.deployment.DeploymentUnitProcessingException differentSearchModuleDependencies(String deployment, String searchModuleName1, String searchModuleName2)
    • invalidClassFormat

      @Message(id=73, value="Bytecode rewrite (transformation) of class %s failed") String invalidClassFormat(String className)
    • cannotLoadPersistenceProviderIntegratorModule

      @Message(id=74, value="Persistence provider integrator module load error for %s") org.jboss.as.server.deployment.DeploymentUnitProcessingException cannotLoadPersistenceProviderIntegratorModule(@Cause Throwable cause, String persistenceProviderModule)
      Creates an exception indicating the persistence provider integrator module, represented by the persistenceProviderModule parameter, had an error loading.
      Parameters:
      cause - the cause of the error.
      persistenceProviderModule - the name of the adapter module.
      Returns:
      a DeploymentUnitProcessingException for the error.
    • illegalCallOnCloseMethod

      @Message(id=75, value="Illegal to call this method from injected, managed EntityManager") IllegalStateException illegalCallOnCloseMethod()