Query Exceptions (6001 – 6121)
QueryException
is a development exception that is raised when insufficient information has been provided to the query. If possible, the message indicates the query that caused the exception. A query is optional and is displayed if TopLink is able to determine the query that caused this exception, as shown in Example 13-6.
Format
EXCEPTION [TOPLINK – error code]: Exception name
EXCEPTION DESCRIPTION: Message
QUERY:
Example 13-6 Query Exception
EXCEPTION [TOPLINK – 6026]: oracle.toplink.exceptions.QueryException
EXCEPTION DESCRIPTION: The query is not defined. When executing a query on the session, the parameter that takes the query is null.
-
6001: ADDITIONAL_SIZE_QUERY_NOT_SPECIFIED
-
Cause: Cursored SQL queries must provide an additional query to retrieve the size of the result set. Failure to include the additional query causes this exception.
-
Action: Specify a size query.
-
6002: AGGREGATE_OBJECT_CANNOT_BE_DELETED
-
Cause: Aggregated objects cannot be written or deleted independent of their owners. No identity is maintained on such objects.
-
Action: Do not try to delete aggregate objects directly.
-
6003: ARGUMENT_SIZE_MISMATCH_IN_QUERY_AND_ QUERY_DEFINITION
-
Cause: The number of arguments provided to the query for execution does not match the number of arguments provided with the query definition.
-
Action: Check the query and the query execution.
-
6004: BACKUP_CLONE_IS_ORIGINAL_FROM_PARENT
-
Cause: The object clone
of class clone.getClass()
with identity hash code (System.identityHashCode()) (System.identityHashCode(clone))
is not from this unit of work space but from the parent session. The object was never registered in this unit of work but read from the parent session and related to an object registered in the unit of work.
-
Action: Verify that you are correctly registering your objects. If you are still having problems, use the validateObjectSpace
method of the UnitOfWork to help debug where the error occurred.
-
6005: BACKUP_CLONE_IS_ORIGINAL_FROM_SELF
-
Cause: The object clone of class clone.getClass()
with identity hash code (System.identityHashCode())
(System.identityHashCode(clone))
is the original to a registered new object. Because the unit of work clones new objects that are registered, ensure that an object is registered before it is referenced by another object. If you do not want the new object to be cloned, use the registerNewObject(Object)
method of the UnitOfWork.
-
Action: Verify that you are correctly registering your objects. If you are still having problems, use the validateObjectSpace
method of the UnitOfWork to help debug where the error occurred.
-
6006: BATCH_READING_NOT_SUPPORTED
-
Cause: This mapping does not support batch reading. The optimization of batch reading all the target rows is not supported for the mapping.
-
Action: The problem is a TopLink development problem, and the user should never encounter this error code unless the mapping is a new custom mapping. Contact Oracle Support Services.
-
6007: DESCRIPTOR_IS_MISSING
-
Cause: The descriptor for reference Class
is missing. The descriptor related to the class or the object is not found in the session.
-
Action: Verify whether or not the related descriptor was added to the session, and whether or not the query is performed on the right object or class.
-
6008: DESCRIPTOR_IS_MISSING_FOR_NAMED_QUERY
-
Cause: The descriptor domainClassName
for the query named queryName
is missing. The descriptor where named query is defined is not added to the session.
-
Action: Verify whether or not the related descriptor was added to the session, and whether or not the query is performed on the right class.
-
6013: INCORRECT_SIZE_QUERY_FOR_CURSOR_STREAM
-
Cause: The size query given on the queries returning cursor streams is not correct. The execution of the size query did not return any size.
-
Action: If the cursor stream query was a custom query, then check the size of the query that was specified, or report this problem to Oracle Support Services.
-
6014: INVALID_QUERY
-
Cause: Objects cannot be written in a unit of work using modify queries. They must be registered.
-
Action: Objects are registered in the unit of work, and during commit, the unit of work performs the required changes to the database.
-
6015: INVALID_QUERY_KEY_IN_EXPRESSION
-
Cause: The query key key
does not exist. Usually this happens because of a misspelled query key.
-
Action: Check the query key that was specified in the expression and verify that a query key was added to the descriptor.
-
6016: INVALID_QUERY_ON_SERVER_SESSION
-
Cause: Objects and the database cannot be changed through the server session: all changes must be performed through a client session's unit of work. The objects cannot be changed on the server session by modifying queries. Objects are changed in the client sessions that are acquired from this server session.
-
Action: Use the client session's unit of work to change the object.
-
6020: NO_CONCRETE_CLASS_INDICATED
-
Cause: No concrete class is indicated for the type in this row. The type indicator read from the database row has no entry in the type indicator hash table or if class extraction method was used, it did not return any concrete class type. The exception is raised when subclasses are being read.
-
Action: Check the class extraction method, if specified, or check the descriptor to verify all the type indicator values were specified.
-
6021: NO_CURSOR_SUPPORT
-
Cause: No cursor support is provided for abstract class multiple table descriptors using expressions.
-
Action: Consider using custom SQL or multiple queries.
-
6023: OBJECT_TO_INSERT_IS_EMPTY
-
Cause: There are no fields to be inserted into the table. The fields to insert into the table table
, are empty.
-
Action: Define at least one mapping for this table.
-
6024: OBJECT_TO_MODIFY_NOT_SPECIFIED
-
Cause: An object to modify is required for a modify query.
-
Action: Verify that the query contains an object before executing.
-
6026: QUERY_NOT_DEFINED
-
Cause: The query is not defined. When executing a query on the session, the parameter that takes the query is null
.
-
Action: Verify that the query is passed properly.
-
6027: QUERY_SENT_TO_INACTIVE_UNIT_OF_WORK
-
Cause: The unit of work has been released and is now inactive.
-
Action: The unit of work, once released, cannot be reused unless the commitAndResume
method is called.
-
6028: READ_BEYOND_QUERY
-
Cause: An attempt has been made to read from the cursor streams beyond its limits (beyond the end of the stream).
-
Action: Ensure that the stream is checked for an end of stream condition before attempting to retrieve more objects.
-
6029: REFERENCE_CLASS_MISSING
-
Cause: The reference class in the query is not specified. A reference class must be provided.
-
Action: Check the query.
-
6030: REFRESH_NOT_POSSIBLE_WITHOUT_CACHE
-
Cause: Refresh is not possible if caching is not set. The read queries that skip the cache to read objects cannot be used to refresh the objects. Refreshing is not possible without identity.
-
Action: Check the query.
-
6031: SIZE_ONLY_SUPPORTED_ON_EXPRESSION_QUERIES
-
Cause: TopLink did not find a size query. Size is supported only on expression queries unless a size query is given.
-
Action: The cursor streams on a custom query should also define a size query.
-
6032: SQL_STATEMENT_NOT_SET_PROPERLY
-
Cause: The SQL statement has not been properly set. The user should never encounter this error code unless queries have been customized.
-
Action: Contact Oracle Support Services.
-
6034: INVALID_QUERY_ITEM
-
Cause: TopLink is unable to validate a query item expression.
-
Action: Validate the expression being used.
-
6041: SELECTION_OBJECT_CANNOT_BE_NULL
-
Cause: The selection object that was passed to a read object or refresh was null
.
-
Action: Check setSelectionObject
method on read query.
-
6042: UNNAMED_QUERY_ON_SESSION_BROKER
-
Cause: Data read and data modify queries are being executed without the session name. Only object-level queries can be directly executed by the session broker, unless the query is named.
-
Action: Specify the session name.
-
6043: REPORT_RESULT_WITHOUT_PKS
-
Cause: ReportQuery
without primary keys cannot read the objects. The report query result that was returned is without primary key values. An object from the result can be created only if primary keys were also read.
-
Action: See the documentation about retrievePrimaryKeys
method on report query.
-
6044: NULL_PRIMARY_KEY_IN_BUILDING_OBJECT
-
Cause: The primary key that was read from the row databaseRow
during the execution of the query was detected to be null
; primary keys must not contain null
.
-
Action: Check the query and the table on the database.
-
6045: NO_DESCRIPTOR_FOR_SUBCLASS
-
Cause: The subclass has no descriptor defined for it.
-
Action: Ensure the descriptor was added to the session, or check class extraction method.
-
6046: CANNOT_DELETE_READ_ONLY_OBJECT
-
Cause: The class you are attempting to delete is a read-only class.
-
Action: Contact Oracle Support Services.
-
6047: INVALID_OPERATOR
-
Cause: The operator data
used in the expression is not valid.
-
Action: Check ExpressionOperator
class to see a list of all the operators that are supported.
-
6048: ILLEGAL_USE_OF_GETFIELD
-
Cause: This is an invalid use of getField
method's data
in the expression. This is a TopLink development exception that users should not encounter.
-
Action: Report this problem to Oracle Support Services.
-
6049: ILLEGAL_USE_OF_GETTABLE
-
Cause: This is an invalid use of getTable
method's data in the expression. This is a TopLink development exception that users should not encounter.
-
Action: Report this problem to Oracle Support Services.
-
6050: REPORT_QUERY_RESULT_SIZE_MISMATCH
-
Cause: The number of attributes requested does not match the attributes returned from the database in report query. This can happen as a result of a custom query on the report query.
-
Action: Check the custom query to ensure it is specified, or report the problem to Oracle Support Services.
-
6051: CANNOT_CACHE_PARTIAL_OBJECT
-
Cause: Partial Objects are never put in the cache. Partial object queries are not allowed to maintain the cache or to be edited. Use the dontMaintainCache
method.
-
Action: Call the dontMaintainCache
method before executing the query.
-
6052: OUTER_JOIN_ONLY_VALID_FOR_ONE_TO_ONE
-
Cause: An outer join (getAllowingNull
method) is valid only for one-to-one mappings and cannot be used for the mapping.
-
Action: Do not attempt to use the getAllowingNull
method for mappings other than one-to-one.
-
6054: CANNOT_ADD_TO_CONTAINER
-
Cause: TopLink is unable to add an object to a container class using policy
. This is TopLink development exception, and the user should never encounter this problem unless a custom container policy has been written.
-
Action: Contact Oracle Support Services.
-
6055: METHOD_INVOCATION_FAILED
-
Cause: The invocation of a method on the object anObject
threw a Java reflection exception while accessing the method.
-
Action: Inspect the internal exception, and refer to the Java documentation.
-
6056: CANNOT_CREATE_CLONE
-
Cause: Cannot create a clone of the object anObject
using policy
.
This is a TopLink development exception, and the user should never encounter this problem unless a custom container policy has been written.
-
Action: Report this problem to Oracle Support Services.
-
6057: METHOD_NOT_VALID
-
Cause: The method methodName
is not valid to call on object aReceiver
. This is a TopLink development exception, and the user should never encounter this problem unless a custom container policy has been written.
-
Action: Contact Oracle Support Services.
-
6058: METHOD_DOES_NOT_EXIST_IN_CONTAINER_CLASS
-
Cause: The method named methodName
was not found in the class aClass
. This exception is raised when looking for a clone method on the container class. The clone is needed to create clones of the container in unit of work.
-
Action: Define a clone method on the container class.
-
6059: COULD_NOT_INSTANTIATE_CONTAINER_CLASS
-
Cause: The class aClass
cannot be used as the container for the results of a query because it cannot be instantiated. The exception is a Java exception that is raised when a new interface container policy is being created using Java reflection. TopLink wraps only the Java exception.
-
Action: Inspect the internal exception, and refer to the Java documentation.
-
6060: MAP_KEY_NOT_COMPARABLE
-
Cause: Cannot use the object anObject
of type ObjectClass
as a key into aContainer
which is of type ContainerClass
. The key cannot be compared with the keys currently in the map. This raises a Java reflection exception while accessing the method. TopLink wraps only the Java exception.
-
Action: Inspect the internal exception, and refer to the Java documentation.
-
6061: CANNOT_ACCESS_METHOD_ON_OBJECT
-
Cause: Cannot reflectively access the method aMethod
for object: anObject
of type ObjectClass
. This raises a Java reflection exception while accessing the method. TopLink wraps only the Java exception.
-
Action: Inspect the internal exception, and refer to the Java documentation.
-
6062: CALLED_METHOD_THREW_EXCEPTION
-
Cause: The method aMethod
was called reflectively on objectClass
and threw an exception. The method aMethod
raises a Java reflection exception while accessing a method. TopLink wraps only the Java exception.
-
Action: Inspect the internal exception, and refer to the Java documentation.
-
6063: INVALID_OPERATION
-
Cause: This is an invalid operation operation
on the cursor. The operation is not supported.
-
Action: Check the class documentation and look for the corresponding method to use.
-
6064: CANNOT_REMOVE_FROM_CONTAINER
-
Cause: Cannot remove anObject
of type anObjectClass
from aContainerClass
using policy
. This is a TopLink development exception and, the user should never encounter this problem unless a custom container policy has been written.
-
Action: Contact Oracle Support Services.
-
6065: CANNOT_ADD_ELEMENT
-
Cause: Cannot add an element to the collection container policy (cannot add object anObject
of type ObjectClass
to a ContainerClass
).
-
Action: Inspect the internal exception, and refer to the Java documentation.
-
6066: BACKUP_CLONE_DELETED
-
Cause: Deleted objects cannot have references after being deleted. The object clone of class clone.getClass
with identity hash code (System.identityHashCode())
(System.identityHashCode(clone)
)
has been deleted, but it still has references.
-
Action: Ensure that you are correctly registering your objects. If you are still having problems, use the validateObjectSpace()
method of the UnitOfWork to help identify where the error occurred.
-
6068: CANNOT_COMPARE_TABLES_IN_EXPRESSION
-
Cause: Cannot compare table reference to data
in expression.
-
Action: Check the expression.
-
6069: INVALID_TABLE_FOR_FIELD_IN_EXPRESSION
-
Cause: Field has invalid table in this context for field data
in expression.
-
Action: Check the expression.
-
6070: INVALID_USE_OF_TO_MANY_QUERY_KEY_IN_EXPRESSION
-
Cause: This is an invalid use of a query key representing a one-to-many relationship data
in expression.
-
Action: Use the anyOf
operator instead of the get
operator.
-
6071: INVALID_USE_OF_ANY_OF_IN_EXPRESSION
-
Cause: This is an invalid use of anyOf
for a query key not representing a to-many relationship data
in expression.
-
Action: Use the get
operator instead of the anyOf
operator.
-
6072: CANNOT_QUERY_ACROSS_VARIABLE_ONE_TO_ONE_MAPPING
-
Cause: Querying across a variable one-to-one mapping is not supported.
-
Action: Change the expression such that the query is not performed across a variable one-to-one mapping.
-
6073: ILL_FORMED_EXPRESSION
-
Cause: This is an ill-formed expression in query, attempting to print an object reference into a SQL statement for queryKey
.
-
Action: Contact Oracle Support Services.
-
6074: CANNOT_CONFORM_EXPRESSION
-
Cause: This expression cannot determine if the object conforms in memory. Set the query to check the database.
-
Action: Change the query such that it does not attempt to conform to the results of the query.
-
6075: INVALID_OPERATOR_FOR_OBJECT_EXPRESSION
-
Cause: Object comparisons can use only the equal
or notEqual
operators. Other comparisons must be performed through query keys or direct attribute level comparisons.
-
Action: Ensure the query uses only equal
and notEqual
if object comparisons are being used.
-
6076: UNSUPPORTED_MAPPING_FOR_OBJECT_COMPARISON
-
Cause: Object comparisons can be used only with one-to-one mappings; other mapping comparisons must be performed through query keys or direct attribute level comparisons.
-
Action: Use a query key instead of attempting to compare objects across the mapping.
-
6077: OBJECT_COMPARISON_CANNOT_BE_PARAMETERIZED
-
Cause: Object comparisons cannot be used in parameter queries.
-
Action: Change the query so that it does not attempt to use objects when using parameterized queries.
-
6078: INCORRECT_CLASS_FOR_OBJECT_COMPARISON
-
Cause: The class of the argument for the object comparison is incorrect.
-
Action: Ensure the class for the query is correct.
-
6079: CANNOT_COMPARE_TARGET_FOREIGN_KEYS_ TO_NULL
-
Cause: Object comparison cannot be used for target foreign key relationships.
-
Action: Query on source primary key.
-
6080: INVALID_DATABASE_CALL
-
Cause: This is an invalid database call. The call must be an instance of DatabaseCall
.
-
Action: Ensure the call being used is a DatabaseCall
.
-
6081: INVALID_DATABASE_ACCESSOR
-
Cause: Invalid database accessor. The accessor must be an instance of DatabaseAccessor
.
-
Action: Ensure the accessor being used is a DatabaseAccessor
.
-
6082: METHOD_DOES_NOT_EXIST_ON_EXPRESSION
-
Cause: The method methodName
with argument type argTypes
cannot be invoked on an expression.
-
Action: Ensure the method being used is a supported method.
-
6083: IN_CANNOT_BE_PARAMETERIZED
-
Cause: Queries using IN
cannot be parameterized.
-
Action: Disable the query prepare or binding.
-
6084: REDIRECTION_CLASS_OR_METHOD_NOT_SET
-
Cause: The redirection query was not configured properly, the class or method name was not set.
-
Action: Verify the configuration for the redirection class.
-
6085: REDIRECTION_METHOD_NOT_DEFINED_CORRECTLY
-
Cause: The redirection query's method is not defined or it defines with the wrong arguments. It must be public static and have the following arguments: DatabaseQuery
, DatabaseRow
, or Session
(the interface).
-
Action: Check the redirection query's method.
-
6086: REDIRECTION_METHOD_ERROR
-
Cause: The static invoke method provided to MethodBaseQueryRedirector
threw an Exception when invoked.
-
Action: Check the static invoke method for problems.
-
6087: EXAMPLE_AND_REFERENCE_OBJECT_CLASS_MISMATCH
-
Cause: There is a class mismatch between the example object and the reference class specified for this query.
-
Action: Ensure that the example and reference classes are compatible.
-
6088: NO_ATTRIBUTES_FOR _REPORT_QUERY
-
Cause: A ReportQuery
has been built with no attributes specified.
-
Action: Specify the attribute for the query.
-
6089: NO_EXPRESSION_BUILDER_CLASS_FOUND
-
Cause: The expression has not been initialized correctly. Only a single ExpressionBuilder
should be used for a query. For parallel expressions, the query class must be provided to the ExpressionBuilder
constructor, and the query's ExpressionBuilder
must always be on the left side of the expression.
-
Action: Contact Oracle Support Services.
-
6090: CANNOT_SET_REPORT_QUERY_TO_CHECK_CACHE_ONLY
-
Cause: The checkCacheOnly
method was invoked on a ReportQuery
. You cannot invoke the checkCacheOnly
method on a ReportQuery
because a ReportQuery
returns data rather than objects and the TopLink cache is built with objects.
-
Action: Do not use a ReportQuery
in this case.
-
6091: TYPE_MISMATCH_BETWEEN_ATTRIBUTE_AND_CONSTANT_ON_EXPRESSION
-
Cause: The type of the constant used for comparison in the expression does not match the type of the attribute.
-
Action: Contact Oracle Support Services.
-
6092: MUST_INSTANTIATE_VALUEHOLDERS
-
Cause: Uninstantiated value holders have been detected.
-
Action: Instantiate the value holders for the collection on which you want to query.
-
6093: MUST_BE_ONE_TO_ONE_OR_ONE_TO_MANY_MAPPING
-
Cause: The buildSelectionCriteria
method was invoked on a mapping that was neither one-to-one nor one-to-many. Only the one-to-one and one-to-many mapping exposes this public API to build selection criteria. Using the buildSelectionCriteria
method with other mapping types will not return correct results.
-
Action: Use the buildSelectionCriteria
method only with one-to-one and one-to-many mappings.
-
6094: PARAMETER_NAME_MISMATCH
-
Cause: An unmapped field was used in a parameterized expression.
-
Action: Map the field or define an alternate expression that does not rely on the unmapped field.
-
6095: CLONE_METHOD_REQUIRED
-
Cause: A delegate class of an IndirectContainer
implementation does not implement Cloneable
. If you implement IndirectContainer
you must also implement Cloneable
. For example, see oracle.toplink.indirection.IndirectSet
. The clone
method must clone the delegate. For example, the IndirectSet
implementation uses reflection to invoke the clone
method because it is not included in the common interface shared by IndirectSet
and its base delegate class, HashSet
.
-
Action: Ensure that your IndirectContainer
implementation or its delegate class implements Cloneable
.
-
6096: CLONE_METHOD_INACCESSIBLE
-
Cause: A delegate class of an IndirectContainer
implementation implements Cloneable
but the IndirectContainer
implementation does not have access to the specified clone method. That is, a java.lang.IllegalAccessException
is raised when the delegate's clone method is invoked.
-
Action: Ensure that both the delegate clone method and the delegate class are public. Ensure permission is set for Java reflection in your VM security settings. See also the invoke
method of java.lang.reflect.Method.
-
6097: CLONE_METHOD_THORW_EXCEPTION
-
Cause: A delegate class of an IndirectContainer
implementation implements Cloneable
and the IndirectContainer
implementation has access to the specified clone
method, but the specified clone
method raises a java.lang.reflect.InvocationTargetException
when invoked.
-
Action: Verify the implementation of the delegate's clone method.
-
6098: UNEXPECTED_INVOCATION
-
Cause: A proxy object method raises an unexpected exception when invoked (that is, some exception other than InvocationTargetException
and ValidationException
.)
-
Action: Review the proxy object to see where it is throwing the exception described in the exception Message. Ensure this exception is no longer raised.
-
6099: JOINING_ACROSS_INHERITANCE_WITH_MULTIPLE_TABLES
-
Cause: Joining with query across inheritance class with multiple table subclasses is not supported.
-
Action: Joining cannot be used on relationships with inheritance classes that have subclasses that span multiple tables as this requires multiple separate queries. The multiple queries cannot be joined into a single query. Use batch reading on the relationship instead, as this will provide equivalent or better performance.
-
6100: MULTIPLE_ROWS_DETECTED_FROM_SINGLE_OBJECT_READ
-
Cause: Multiple values detected for single-object read query.
-
Action: This is a CMP compliance option that ensures the finder methods for a single object only return a single row. Set the system property toplink.cts.checkMultipleRows
to false
, or ensure that the finder query only returns a single row from the database.
-
6101: HISTORICAL_QUERIES_MUST_PRESERVE_GLOBAL_CACHE
-
Cause: Executing this query could violate the integrity of the global session cache which must contain only the latest versions of objects.
-
Action: To execute a query that returns objects of a historical nature, you must do one of the following:
-
Use a HistoricalSession
(acquireSessionAsOf
). All objects read will be cached and automatically read at that time. This applies also to triggering object relationships.
-
Set shouldMaintainCache
to false
. You may make any object expression as of a previous time, provided none of its fields are represented in the result set (i.e. used in the where
clause).
-
6102: HISTORICAL_QUERIES_ONLY_SUPPORTED_ON_ORACLE
-
Cause: Historical queries only work with Oracle 9R2 or later databases, as it uses the Oracle database Flashback feature.
-
Action: Ensure that historical queries are only used with an Oracle 9R2 database.
-
6103: INVALID_QUERY_ON_HISTORICAL_SESSION
-
Cause: You may not execute a WriteQuery
from inside a read-only HistoricalSession
. To restore historical objects, try the following: read the same object as it is now with a UnitOfWork
and commit the UnitOfWork
.
-
Action: To restore historical objects, read the same object as it is now with a UnitOfWork
and commit the UnitOfWork
.
-
6104: OBJECT_DOES_NOT_EXIST_IN_CACHE
-
Cause: The object does not exist in the cache.
-
Action: Ensure that the object exists in the cache.
-
6105: MUST_USE_CURSOR_STREAM_POLICY
-
Cause: Query must be re-initialized with a cursor stream policy.
-
Action: Re-initialize the query with a cursor stream policy.
-
6106: CLASS_PK_DOES_NOT_EXIST_IN_CACHE
-
Cause: The object with primary key does not exist in the cache.
-
Action: Ensure that the object exists in the cache.
-
6107: UPDATE_STATEMENTS_NOT_SPECIFIED
-
Cause: Missing update statements on UpdateAllQuery
.
-
Action: Add update statements using the addUpdate
method.
-
6108: INHERITANCE_WITH_MULTIPLE_TABLES_NOT_SUPPORTED
-
Cause: UpdateAllQuery
does not support inheritance with multiple tables.
-
Action: Do not use UpdateAllQuery
in this situation.
-
6109: QUERY_FETCHGROUP_NOT_DEFINED_IN_DESCRIPTOR
-
Cause: The named fetch group is not defined at the descriptor level.
-
Action: Ensure the fetch group is defined in the descriptor.
-
6110: CANNOT_CONFORM_UNFETCHED_ATTRIBUTE
-
Cause: Read query cannot conform to the unfetched attribute of the partially fetched object in the unit of work identity map.
-
Action: Do not use unfetched attribute conforming, or explicitly fetch the attribute before conforming.
-
6111: FETCH_GROUP_ATTRIBUTE_NOT_MAPPED
-
Cause: The fetch group attribute is not defined or mapped.
-
Action: Ensure that any attribute defined in a fetch group is defined in the class and mapped.
-
6112: FETCH_GROUP_NOT_SUPPORT_ON_REPORT_QUERY
-
Cause: Fetch group cannot be set on report query.
-
Action: Remove the fetch group setting on ReportQuery
, or use ReadObjectQuery
or ReadObjectQuery
instead.
-
6113: FETCH_GROUP_NOT_SUPPORT_ON_PARTIAL_ATTRIBUTE_READING
-
Cause: Fetch group cannot be used together with partial attribute reading.
-
Action: Remove the partial attribute reading setting in the query.
-
6114: FETCHGROUP_VALID_ONLY_IF_FETCHGROUP_MANAGER_IN_DESCRIPTOR
-
Cause: A fetch group manager is not defined at the descriptor while attempting to set a fetch group on a query.
-
Action: You must define a fetch group manager at the descriptor in order to set a fetch group on the query.
-
6115: ISOLATED_QUERY_EXECUTED_ON_SERVER_SESSION
-
Cause: Queries on isolated classes, or queries set to use exclusive connections, must not be executed on a ServerSession
or in CMP
, outside of a transaction.
-
Action: Do not execute queries on isolated classes or queries set to use exclusive connections on a ServerSession
or in CMP
outside of a transaction.
-
6116: NO_CALL_OR_INTERACTION_SPECIFIED
-
Cause: No call or interaction method was specified for the attempted operation.
-
Action: Specify a call or interaction method.
-
6117: CANNOT_CACHE_CURSOR_RESULTS_ON_QUERY
-
Cause: Cannot set a query that uses a cursored result to cache query results.
-
Action: Do not cache query results or do not use a cursor policy.
-
6118: CANNOT_CACHE_ISOLATED_DATA_ON_QUERY
-
Cause: A query on an isolated class must not cache query results on the query.
-
Action: Do not cache query results for a query on an isolated class.
-
6119: MAPPING_FOR_EXPRESSION_DOES_NOT_SUPPORT_JOINING
-
Cause: The join expression is not valid, or is for a mapping type that does not support joining.
-
Action: Joining is supported only for one-one and one-many mappings.
-
6120: SPECIFIED_PARTIAL_ATTRIBUTE_DOES_NOT_EXIST
-
Cause: The partial attribute is not a valid attribute of the class.
-
Action: Ensure that this attribute exists, and is mapped.
-
6121: INVALID_BUILDER_IN_QUERY
-
Cause: The query has not been defined correctly: the expression builder is missing.
-
Action: Ensure the queries builder is always on the left for sub queries and parallel queries.