@MessageBundle(projectCode="JBAS")
public interface JpaMessages
Modifier and Type | Field and Description |
---|---|
static JpaMessages |
MESSAGES
The messages.
|
Modifier and Type | Method and Description |
---|---|
RuntimeException |
cannotAddIntegration(Throwable cause,
String name)
Creates an exception indicating the inability ot add the integration, represented by the
name parameter,
module to the deployment. |
IllegalArgumentException |
cannotChangeInputStream()
Creates an exception indicating the input stream reference cannot be changed.
|
IllegalStateException |
cannotCloseContainerManagedEntityManager()
Creates an exception indicating the entity manager cannot be closed when it is managed by the container.
|
RuntimeException |
cannotCloseNonExtendedEntityManager(String entityManagerTypeName)
Creates an exception indicating only ExtendedEntityMangers can be closed.
|
IllegalStateException |
cannotCloseTransactionContainerEntityManger()
Creates an exception indicating the transactional entity manager cannot be closed when it is managed by the
container.
|
DeploymentUnitProcessingException |
cannotCreateAdapter(Throwable cause,
String className)
Creates an exception indicating the inability to create an instance of the adapter class represented by the
className parameter. |
DeploymentUnitProcessingException |
cannotDeployApp(Throwable cause,
String providerName)
Creates an exception indicating the application could not be deployed with the persistence provider, represented
by the
providerName parameter, packaged. |
RuntimeException |
cannotGetSessionFactory(Throwable cause)
Creates an exception indicating a failure to get the Hibernate session factory from the entity manager.
|
String |
cannotInjectResourceLocalEntityManager()
A message indicating the inability to inject a
PersistenceUnitTransactionType.RESOURCE_LOCAL container managed EntityManager
using the PersistenceContext annotation. |
DeploymentUnitProcessingException |
cannotInjectResourceLocalEntityManager(String unitName)
Creates an exception indicating the inability to inject a
PersistenceUnitTransactionType.RESOURCE_LOCAL entity manager, represented by the
unitName parameter, using the <persistence-context-ref> . |
DeploymentUnitProcessingException |
cannotLoadAdapterModule(Throwable cause,
String adapterModule,
String persistenceProviderClass)
Creates an exception indicating the persistence provider adapter module, represented by the
adapterModule
parameter, had an error loading. |
RuntimeException |
cannotLoadEntityClass(Throwable cause,
String className)
Creates an exception indicating the entity class could not be loaded with the
PersistenceUnitInfo.getClassLoader() . |
RuntimeException |
cannotLoadFromJpa(Throwable cause,
String injectionTypeName)
Creates an exception indicating the
injectionTypeName could not be loaded from the JPA modules class
loader. |
RuntimeException |
cannotLoadModule(Throwable cause,
org.jboss.modules.ModuleIdentifier moduleId,
String name)
Creates an exception indicating the module, represented by the
moduleId parameter, could not be loaded
for the adapter, represented by the name parameter. |
DeploymentUnitProcessingException |
cannotLoadPersistenceProviderModule(Throwable cause,
String persistenceProviderModule,
String persistenceProviderClass)
Creates an exception indicating the persistence provider module, represented by the
persistenceProviderModule parameter, had an error loading. |
RuntimeException |
cannotReplaceStack()
Creates an exception indicating the top of the stack could not be replaced because the stack is
null . |
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. |
javax.ejb.EJBException |
cannotUseExtendedPersistenceTransaction(String puScopedName,
javax.persistence.EntityManager existingEntityManager,
javax.persistence.EntityManager self)
Creates an exception indicating the extended persistence context for the SFSB already exists.
|
RuntimeException |
childNotFound(String child,
org.jboss.vfs.VirtualFile parent)
Creates an exception indicating the child could not be found on the parent.
|
IllegalArgumentException |
classLevelAnnotationParameterRequired(String annotation,
String parameter)
Creates an exception indicating the class level annotation must provide the parameter specified.
|
RuntimeException |
couldNotCreateInstanceProvider(Throwable cause,
String providerClassName)
Creates an exception indicating the persistence provider could not be instantiated ,
|
IllegalArgumentException |
emptyParameter(String parameterName)
Creates an exception indicating the parameter, likely a collection, is empty.
|
IllegalStateException |
errorGettingTransaction(Exception cause)
Creates an exception indicating there was an error when trying to get the transaction associated with the
current thread.
|
DeploymentUnitProcessingException |
failedToAddPersistenceUnit(Throwable cause,
String puName)
Creates an exception indicating a failure to add the persistence unit service.
|
DeploymentUnitProcessingException |
failedToGetAdapter(String className)
Creates an exception indicating a failure to get the adapter for the persistence provider.
|
DeploymentUnitProcessingException |
failedToGetModuleAttachment(DeploymentUnit deploymentUnit)
Creates an exception indicating a failure to get the module for the deployment unit represented by the
deploymentUnit parameter. |
String |
failedToParse(org.jboss.vfs.VirtualFile file)
A message indicating a failure to parse the file.
|
RuntimeException |
hibernateOnlyEntityManagerFactory()
Creates an exception indicating the entity manager factory implementation can only be a Hibernate version.
|
IllegalArgumentException |
invalidPersistenceUnitName(String persistenceUnitName,
char c)
Creates an exception indicating the persistence unit name contains an invalid character.
|
RuntimeException |
invalidScopeName(String validName,
String name)
Creates an exception indicating the scoped persistence name is invalid.
|
RuntimeException |
invalidUrlConnection(String integrationName,
URLConnection connection)
Creates an exception indicating the inability to integrate the module, represented by the
integrationName
parameter, to the deployment as it expected a JarURLConnection . |
RuntimeException |
missingPersistenceUnitMetadata()
Creates an exception indicating the persistence unit metadata likely because thread local was not set.
|
RuntimeException |
multipleAdapters(String adapterModule)
Creates an exception indicating the persistence provider adapter module, represented by the
adapterModule
parameter, has more than one adapter. |
RuntimeException |
multipleThreadsInvokingSfsb(Object sessionBean)
Creates an exception indicating more than one thread is invoking the stateful session bean at the same time.
|
RuntimeException |
multipleThreadsUsingEntityManager(javax.persistence.EntityManager entityManager)
Creates an exception indicating more than one thread is using the entity manager instance at the same time.
|
IllegalArgumentException |
noPUnitNameSpecifiedAndMultiplePersistenceUnits(int puCount,
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.
|
IllegalArgumentException |
notSetInInterceptorContext(String name,
org.jboss.invocation.InterceptorContext context)
Creates an exception indicating the
name was not set in the InterceptorContext . |
RuntimeException |
notYetImplemented()
Creates an exception indicating the method is not yet implemented.
|
RuntimeException |
nullParameter(String description,
String parameterName)
Creates an exception indicating the
description is null . |
IllegalArgumentException |
nullVar(String varName)
Creates an exception indicating the variable is
null . |
String |
objectAlreadyDefined(Class<?> cls,
Object previous)
A message indicating the object for the class (
cls has been defined and is not null . |
RuntimeException |
parameterMustBeExtendedEntityManager(String gotClass)
Creates an exception indicating the parameter must be a ExtendedEntityManager
|
javax.persistence.PersistenceException |
persistenceProviderNotFound(String providerName)
Creates an exception indicating the persistence provider could not be found.
|
String |
persistenceUnitNotFound(String puName,
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. |
IllegalArgumentException |
persistenceUnitNotFound(String path,
String puName,
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. |
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.
|
RuntimeException |
relativePathNotFound(Throwable cause,
String path)
Creates an exception indicating the relative path could not be found.
|
String |
setterMethodOnlyAnnotation(String annotation,
org.jboss.jandex.MethodInfo methodInfo)
A message indicating the annotation is only valid on setter method targets.
|
javax.persistence.TransactionRequiredException |
transactionRequired()
Creates an exception indicating a transaction is required for the operation.
|
static final JpaMessages MESSAGES
@Message(id=11420, value="Could not add %s integration module to deployment") RuntimeException cannotAddIntegration(@Cause Throwable cause, String name)
name
parameter,
module to the deployment.cause
- the cause of the error.name
- the name of the integration.RuntimeException
for the error.@Message(id=11421, value="Cannot change input stream reference.") IllegalArgumentException cannotChangeInputStream()
IllegalArgumentException
for the error.@Message(id=11422, value="Container managed entity manager can only be closed by the container (will happen when @remove method is invoked on containing SFSB)") IllegalStateException cannotCloseContainerManagedEntityManager()
IllegalStateException
for the error.@Message(id=11423, value="Can only close SFSB XPC entity manager that are instances of ExtendedEntityManager %s") RuntimeException cannotCloseNonExtendedEntityManager(String entityManagerTypeName)
entityManagerTypeName
- the entity manager type name.RuntimeException
for the error.@Message(id=11424, 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()
IllegalStateException
for the error.@Message(id=11425, value="Could not create instance of adapter class \'%s\'") DeploymentUnitProcessingException cannotCreateAdapter(@Cause Throwable cause, String className)
className
parameter.cause
- the cause of the error.className
- the adapter class name.DeploymentUnitProcessingException
for the error.@Message(id=11426, value="Could not deploy application packaged persistence provider \'%s\'") DeploymentUnitProcessingException cannotDeployApp(@Cause Throwable cause, String providerName)
providerName
parameter, packaged.cause
- the cause of the error.providerName
- the persistence provider.DeploymentUnitProcessingException
for the error.@Message(id=11427, value="Couldn\'t get Hibernate session factory from entity manager") RuntimeException cannotGetSessionFactory(@Cause Throwable cause)
cause
- the cause of the error.RuntimeException
for the error.@Message(id=11428, value="Cannot inject RESOURCE_LOCAL container managed EntityManagers using @PersistenceContext") String cannotInjectResourceLocalEntityManager()
PersistenceUnitTransactionType.RESOURCE_LOCAL
container managed EntityManager
using the PersistenceContext
annotation.@Message(id=11429, value="Cannot inject RESOURCE_LOCAL entity manager %s using") DeploymentUnitProcessingException cannotInjectResourceLocalEntityManager(String unitName)
PersistenceUnitTransactionType.RESOURCE_LOCAL
entity manager, represented by the
unitName
parameter, using the <persistence-context-ref>
.unitName
- the unit name.DeploymentUnitProcessingException
for the error.@Message(id=11430, value="Persistence provider adapter module (%s) load error (class %s)") DeploymentUnitProcessingException cannotLoadAdapterModule(@Cause Throwable cause, String adapterModule, String persistenceProviderClass)
adapterModule
parameter, had an error loading.cause
- the cause of the error.adapterModule
- the name of the adapter module.persistenceProviderClass
- the persistence provider class.DeploymentUnitProcessingException
for the error.@Message(id=11431, value="Could not load entity class \'%s\' with PersistenceUnitInfo.getClassLoader()") RuntimeException cannotLoadEntityClass(@Cause Throwable cause, String className)
PersistenceUnitInfo.getClassLoader()
.cause
- the cause of the error.className
- the entity class name.RuntimeException
for the error.@Message(id=11432, value="Couldn\'t load %s from JPA modules classloader") RuntimeException cannotLoadFromJpa(@Cause Throwable cause, String injectionTypeName)
injectionTypeName
could not be loaded from the JPA modules class
loader.cause
- the cause of the error.injectionTypeName
- the name of the type.RuntimeException
for the error.@Message(id=11433, value="Could not load module %s to add %s adapter to deployment") RuntimeException cannotLoadModule(@Cause Throwable cause, org.jboss.modules.ModuleIdentifier moduleId, String name)
moduleId
parameter, could not be loaded
for the adapter, represented by the name
parameter.cause
- the cause of the error.moduleId
- the module id that was attempting to be loaded.name
- the name of the adapter.RuntimeException
for the error.@Message(id=11434, value="Persistence provider module load error %s (class %s)") DeploymentUnitProcessingException cannotLoadPersistenceProviderModule(@Cause Throwable cause, String persistenceProviderModule, String persistenceProviderClass)
persistenceProviderModule
parameter, had an error loading.cause
- the cause of the error.persistenceProviderModule
- the name of the adapter module.persistenceProviderClass
- the persistence provider class.DeploymentUnitProcessingException
for the error.@Message(id=11435, value="Internal error: Cannot replace top of stack as stack is null (same as being empty).") RuntimeException cannotReplaceStack()
null
.RuntimeException
for the error.@Message(id=11436, value="Cannot specify both %s (%s) and %s (%s) in %s for %s") DeploymentUnitProcessingException cannotSpecifyBoth(String key1, Object value1, String key2, Object value2, String parentTag, Object object)
key1
and key2
cannot be specified for the object.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.DeploymentUnitProcessingException
for the error.@Message(id=11437, 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.") javax.ejb.EJBException cannotUseExtendedPersistenceTransaction(String puScopedName, javax.persistence.EntityManager existingEntityManager, javax.persistence.EntityManager self)
puScopedName
- the persistence unit name.existingEntityManager
- the existing transactional entity manager.self
- the entity manager attempting to be created.EJBException
for the error.@Message(id=11438, value="Could not find child \'%s\' on \'%s\'") RuntimeException childNotFound(String child, org.jboss.vfs.VirtualFile parent)
child
- the child that could not be found.parent
- the parent.RuntimeException
for the error.@Message(id=11439, value="Class level %s annotations must provide a %s") IllegalArgumentException classLevelAnnotationParameterRequired(String annotation, String parameter)
annotation
- the annotation.parameter
- the parameter.IllegalArgumentException
for the error.@Message(id=11440, value="Can\'t find a persistence unit named %s in %s") String persistenceUnitNotFound(String puName, DeploymentUnit deploymentUnit)
path
parameter, could not be found at
the current deployment unit, represented by the deploymentUnit
parameter.puName
- the persistence unit name.deploymentUnit
- the deployment unit.@Message(id=11441, value="Can\'t find a persistence unit named %s#%s at %s") IllegalArgumentException persistenceUnitNotFound(String path, String puName, DeploymentUnit deploymentUnit)
path
and puName
parameters, could not be found at the current deployment unit, represented by the deploymentUnit
parameter.path
- the path.puName
- the persistence unit name.deploymentUnit
- the deployment unit.IllegalArgumentException
for the error.@Message(id=11442, value="Parameter %s is empty") IllegalArgumentException emptyParameter(String parameterName)
parameterName
- the parameter name.IllegalArgumentException
for the error.@Message(id=11443, value="An error occurred while getting the transaction associated with the current thread: %s") IllegalStateException errorGettingTransaction(Exception cause)
cause
- the cause of the error.IllegalStateException
for the error.@Message(id=11445, value="Failed to get adapter for persistence provider \'%s\'") DeploymentUnitProcessingException failedToGetAdapter(String className)
className
- the adapter class name.DeploymentUnitProcessingException
for the error.@Message(id=11446, value="Failed to add persistence unit service for %s") DeploymentUnitProcessingException failedToAddPersistenceUnit(@Cause Throwable cause, String puName)
cause
- the cause of the error.puName
- the persistence unit name.DeploymentUnitProcessingException
for the error.@Message(id=11447, value="Failed to get module attachment for %s") DeploymentUnitProcessingException failedToGetModuleAttachment(DeploymentUnit deploymentUnit)
deploymentUnit
parameter.deploymentUnit
- the deployment unit that failed.DeploymentUnitProcessingException
for the error.@Message(id=11448, value="Failed to parse %s") String failedToParse(org.jboss.vfs.VirtualFile file)
file
- the file that could not be parsed.@Message(id=11449, value="Can only inject from a Hibernate EntityManagerFactoryImpl") RuntimeException hibernateOnlyEntityManagerFactory()
RuntimeException
for the error.@Message(id=11451, value="Persistence unit name (%s) contains illegal \'%s\' character") IllegalArgumentException invalidPersistenceUnitName(String persistenceUnitName, char c)
persistenceUnitName
- the persistence unit name.c
- the invalid character.IllegalArgumentException
for the error.@Message(id=11452, value="Scoped persistence name should be \"%s\" but was %s") RuntimeException invalidScopeName(String validName, String name)
validName
- the valid scope name.name
- the scope name that was supplied.RuntimeException
for the error.@Message(id=11453, value="Could not add %s integration module to deployment, did not get expected JarUrlConnection, got %s") RuntimeException invalidUrlConnection(String integrationName, URLConnection connection)
integrationName
parameter, to the deployment as it expected a JarURLConnection
.integrationName
- the name of the integration that could not be integrated.connection
- the invalid connection.RuntimeException
for the error.@Message(id=11455, value="Missing PersistenceUnitMetadata (thread local wasn\'t set)") RuntimeException missingPersistenceUnitMetadata()
RuntimeException
for the error.@Message(id=11456, value="Persistence provider adapter module (%s) has more than one adapter") RuntimeException multipleAdapters(String adapterModule)
adapterModule
parameter, has more than one adapter.adapterModule
- the adapter module name.RuntimeException
for the error.@Message(id=11457, value="More than one thread is invoking stateful session bean \'%s\' at the same time") RuntimeException multipleThreadsInvokingSfsb(Object sessionBean)
sessionBean
- the stateful session bean.RuntimeException
for the error.@Message(id=11458, value="More than one thread is using EntityManager instance \'%s\' at the same time") RuntimeException multipleThreadsUsingEntityManager(javax.persistence.EntityManager entityManager)
entityManager
- the entity manager.RuntimeException
for the error.@Message(id=11459, value="%s not set in InterceptorContext: %s") IllegalArgumentException notSetInInterceptorContext(String name, org.jboss.invocation.InterceptorContext context)
name
was not set in the InterceptorContext
.name
- the name of the field not set.context
- the context.IllegalArgumentException
for the error.@Message(id=11460, value="Not yet implemented") RuntimeException notYetImplemented()
RuntimeException
for the error.@Message(id=11461, value="Internal %s error, null %s passed in") RuntimeException nullParameter(String description, String parameterName)
description
is null
.description
- the description of the parameter.parameterName
- the parameter name.RuntimeException
for the error.@Message(id=11462, value="Parameter %s is null") IllegalArgumentException nullVar(String varName)
null
.varName
- the variable name.IllegalArgumentException
for the error.@Message(id=11463, value="Previous object for class %s is %s instead of null") String objectAlreadyDefined(Class<?> cls, Object previous)
cls
has been defined and is not null
.cls
- the class for the object.previous
- the previously defined object.@Message(id=11465, value="Internal error, expected parameter of type ExtendedEntityManager but instead got %s") RuntimeException parameterMustBeExtendedEntityManager(String gotClass)
gotClass
- RuntimeException
for the error.@Message(id=11466, value="PersistenceProvider \'%s\' not found") javax.persistence.PersistenceException persistenceProviderNotFound(String providerName)
providerName
- the provider name.PersistenceException
for the error.@Message(id=11467, value="Could not find relative path: %s") RuntimeException relativePathNotFound(@Cause Throwable cause, String path)
cause
- the cause of the error.path
- the path that could not be found.RuntimeException
for the error.@Message(id=11468, value="%s injection target is invalid. Only setter methods are allowed: %s") String setterMethodOnlyAnnotation(String annotation, org.jboss.jandex.MethodInfo methodInfo)
annotation
- the annotation.methodInfo
- the method information.@Message(id=11469, value="Transaction is required to perform this operation (either use a transaction or extended persistence context)") javax.persistence.TransactionRequiredException transactionRequired()
TransactionRequiredException
for the error.@Message(id=11470, value="Persistence unitName was not specified and there are %d persistence unit definitions in application %s. Either change the application to have only one persistence unit definition or specify the unitName for each reference to a persistence unit.") IllegalArgumentException noPUnitNameSpecifiedAndMultiplePersistenceUnits(int puCount, DeploymentUnit deploymentUnit)
deploymentUnit
- the deployment unit.puCount
- is number of persistence units defined in applicationIllegalArgumentException
for the error.@Message(id=11471, value="Could not create instance of persistence provider class %s") RuntimeException couldNotCreateInstanceProvider(@Cause Throwable cause, String providerClassName)
cause
- the cause of the error.providerClassName
- RuntimeException
for the error.@Message(id=11472, 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)
RuntimeException
for the errorCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.