Skip to content

Commit

Permalink
Moved messages to proper bundle. Lowered some logging levels.
Browse files Browse the repository at this point in the history
Signed-off-by: Tomáš Kraus <[email protected]>
  • Loading branch information
Tomas-Kraus committed Feb 12, 2025
1 parent 38c21c8 commit 6dc5d0f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -483,16 +483,6 @@ Current thread (id: {3} name: {4}) stack trace:
// JPA 3.2
{ "unknown_property_type", "Unknown {0} type of {1} persistence property"},
{ "error_queryTimeoutParse", "Cannot parse the {0} jakarta.persistence.query.timeout property value: {1}"},
{ "schema_default_truncate_tables_failed", "Failed to truncate tables in the default table schema: {0}"},
{ "schema_default_create_tables_failed", "Failed to create tables in the default table schema: {0}"},
{ "schema_default_drop_tables_failed", "Failed to drop tables in the default table schema: {0}"},
{ "schema_default_replace_tables_failed", "Failed to replace tables in the default table schema: {0}"},
{ "schema_default_extend_tables_failed", "Failed to extend tables in the default table schema: {0}"},
{ "schema_drop_object_failed", "Failed to drop object in the default table schema: {0}"},
{ "validate_object_space", "validate object space." },
{ "stack_of_visited_objects_that_refer_to_the_corrupt_object", "stack of visited objects that refer to the corrupt object: {0}" },
{ "corrupt_object_referenced_through_mapping", "The following corrupt object is referenced through mapping: {0}" },
{ "corrupt_object", "corrupt object: {0}" },

{ "encryptor_script_usage", "Usage is `passwordUpdate.sh|.cmd -ip <old encrypted password>`"},
{ "encryptor_script_description", "This application has an old encrypted password that was used by a previous version of EclipseLink. Reencrypt it with the latest algorithm."},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,19 @@ The thread is working in the context of (CacheKey) = ({2}) .\s
{ "using_conversion_tzone", "ConversionManager using default zone offset: {1}."},
{ "open_pkg", "Opening package {0} in {1} to {2} for reflection access."},
{ "set_accessible", "Cannot setAccessible {0} for {1}."},
{ "set_accessible_in", "Cannot setAccessible {0} {1} in {2}."}
{ "set_accessible_in", "Cannot setAccessible {0} {1} in {2}."},
// JPA 3.2
{ "schema_default_truncate_tables_failed", "Failed to truncate tables in the default table schema: {0}"},
{ "schema_default_create_tables_failed", "Failed to create tables in the default table schema: {0}"},
{ "schema_default_drop_tables_failed", "Failed to drop tables in the default table schema: {0}"},
{ "schema_default_replace_tables_failed", "Failed to replace tables in the default table schema: {0}"},
{ "schema_default_extend_tables_failed", "Failed to extend tables in the default table schema: {0}"},
{ "schema_drop_object_failed", "Failed to drop object in the default table schema: {0}"},
{ "stack_of_visited_objects_that_refer_to_the_corrupt_object", "stack of visited objects that refer to the corrupt object: {0}" },
{ "validate_object_space", "Validate object space." },
{ "corrupt_object_referenced_through_mapping", "The following corrupt object is referenced through mapping: {0}" },
{ "corrupt_object", "corrupt object: {0}" }

};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3024,15 +3024,15 @@ public Object internalExecuteQuery(DatabaseQuery query, AbstractRecord databaseR
}

private void validateObjectTree(Object startNode) {
log(SessionLog.INFO, SessionLog.TRANSACTION, "validate_object_space");
log(SessionLog.FINER, SessionLog.TRANSACTION, "validate_object_space");
// This defines an inner class for process the iteration operation, don't be scared, it's just an inner class.
DescriptorIterator iterator = new DescriptorIterator() {
@Override
public void iterate(Object object) {
if (object != null && !isObjectRegistered(object) && getVisitedStack() != null && !getVisitedStack().isEmpty()) {
log(SessionLog.WARNING, SessionLog.CACHE, "stack_of_visited_objects_that_refer_to_the_corrupt_object", getVisitedStack());
log(SessionLog.WARNING, SessionLog.CACHE, "corrupt_object_referenced_through_mapping", getCurrentMapping());
log(SessionLog.WARNING, SessionLog.CACHE, "corrupt_object", object);
log(SessionLog.FINEST, SessionLog.CACHE, "stack_of_visited_objects_that_refer_to_the_corrupt_object", getVisitedStack());
log(SessionLog.FINER, SessionLog.CACHE, "corrupt_object_referenced_through_mapping", getCurrentMapping());
log(SessionLog.FINER, SessionLog.CACHE, "corrupt_object", object);
}
}
};
Expand Down

0 comments on commit 6dc5d0f

Please sign in to comment.