mirror of
https://github.com/apache/activemq.git
synced 2025-02-09 03:25:33 +00:00
https://issues.apache.org/jira/browse/AMQ-4428 - patch applied with thanks - errors are now logged and throwables propagate
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1479852 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
436f892c16
commit
864fdbebef
@ -85,7 +85,7 @@ public final class IntrospectionSupport {
|
|||||||
props.put(optionPrefix + name, strValue);
|
props.put(optionPrefix + name, strValue);
|
||||||
rc = true;
|
rc = true;
|
||||||
|
|
||||||
} catch (Throwable ignore) {
|
} catch (Exception ignore) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -178,7 +178,8 @@ public final class IntrospectionSupport {
|
|||||||
setter.invoke(target, convert(value, setter.getParameterTypes()[0]));
|
setter.invoke(target, convert(value, setter.getParameterTypes()[0]));
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} catch (Throwable ignore) {
|
} catch (Exception e) {
|
||||||
|
LOG.error(String.format("Could not set property %s on %s", name, target), e);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -345,11 +346,11 @@ public final class IntrospectionSupport {
|
|||||||
if (o != null && o.getClass().isArray()) {
|
if (o != null && o.getClass().isArray()) {
|
||||||
try {
|
try {
|
||||||
o = Arrays.asList((Object[])o);
|
o = Arrays.asList((Object[])o);
|
||||||
} catch (Throwable e) {
|
} catch (Exception e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
map.put(field.getName(), o);
|
map.put(field.getName(), o);
|
||||||
} catch (Throwable e) {
|
} catch (Exception e) {
|
||||||
LOG.debug("Error getting field " + field + " on class " + startClass + ". This exception is ignored.", e);
|
LOG.debug("Error getting field " + field + " on class " + startClass + ". This exception is ignored.", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user