You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Handles spanning multiple rows in a grid. A separate interface to allow for easier mixing and matching with DisplayColumn implementations. */
@@ -488,7 +497,7 @@ public String getFormattedText(RenderContext ctx)
488
497
}
489
498
catch (IllegalArgumentExceptione)
490
499
{
491
-
LOG.warn("Unable to apply format to {} value\"{}\" for column \"{}\", likely a SQL type mismatch between XML metadata and actual ResultSet", value.getClass().getName(), value, getName());
500
+
warnFormatMismatch(value);
492
501
returnvalue.toString();
493
502
}
494
503
}
@@ -497,6 +506,13 @@ public String getFormattedText(RenderContext ctx)
* Render the value as text using the <code>expr</code> or <code>format</code> if provided without
502
518
* any html encoding.
@@ -540,7 +556,7 @@ else if (null != format)
540
556
}
541
557
catch (IllegalArgumentExceptione)
542
558
{
543
-
LOG.warn("Unable to apply format to {} value\"{}\" for column \"{}\", likely a SQL type mismatch between XML metadata and actual ResultSet", value.getClass().getName(), value, getName());
if (!this.us.getContainer().allowRowMutationForContainer(rowContainer))
724
728
{
725
729
getRowError().addError(newSimpleValidationError("Row supplied container value: " + rowContainerVal + " cannot be used for actions against the container: " + us.getContainer().getPath()));
726
-
LOG.warn("Resolved container to {} but rejected as valid location for import into {} in {}.{}", rowContainer.getPath(), us.getContainer().getPath(), us.getSchemaName(), tableInfo.getPublicSchemaName());
730
+
if (loggedRejectedContainers.add(rowContainerVal))
731
+
LOG.warn("Resolved container to {} but rejected as valid location for import into {} in {}.{}", rowContainer.getPath(), us.getContainer().getPath(), us.getSchemaName(), tableInfo.getPublicSchemaName());
727
732
}
728
733
else
729
734
{
@@ -734,8 +739,8 @@ public Object get()
734
739
}
735
740
else
736
741
{
737
-
// only log if the incoming value is GUID-like
738
-
if (rowContainerValinstanceofString && GUID.isGUID((String)rowContainerVal))
742
+
// only log if the incoming value is GUID-like, and only once per distinct value
743
+
if (rowContainerValinstanceofStrings&& GUID.isGUID(s) && loggedUnresolvedContainers.add(rowContainerVal))
739
744
{
740
745
LOG.warn("Failed to resolve container value '{}' to container for import into {}.{}, defaulting to original target container of {}", rowContainerVal, us.getSchemaName(), tableInfo.getPublicSchemaName(), us.getContainer().getPath());
0 commit comments