summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakozak2011-11-25 01:21:49 (EST)
committer Winston Prakash2011-12-01 20:47:30 (EST)
commite4eef09915f4e8d2480af6edeb4359b826b21d9f (patch)
treef61c2efdcc9608ad3b33df7cd1c0f5476c8e44f5
parentab611e36a6addf54acd71f6b82937e61a050dc82 (diff)
downloadorg.eclipse.hudson.core-e4eef09915f4e8d2480af6edeb4359b826b21d9f.zip
org.eclipse.hudson.core-e4eef09915f4e8d2480af6edeb4359b826b21d9f.tar.gz
org.eclipse.hudson.core-e4eef09915f4e8d2480af6edeb4359b826b21d9f.tar.bz2
FIxed HUDSON-8896 - Useless stacktraces reported on XML unmarshall problems.
Signed-off-by: Winston Prakash <winston.prakash@gmail.com>
-rw-r--r--hudson-core/src/main/java/hudson/util/RobustCollectionConverter.java4
-rw-r--r--hudson-core/src/main/java/hudson/util/RobustReflectionConverter.java6
2 files changed, 5 insertions, 5 deletions
diff --git a/hudson-core/src/main/java/hudson/util/RobustCollectionConverter.java b/hudson-core/src/main/java/hudson/util/RobustCollectionConverter.java
index 636690c..6b6f3fe 100644
--- a/hudson-core/src/main/java/hudson/util/RobustCollectionConverter.java
+++ b/hudson-core/src/main/java/hudson/util/RobustCollectionConverter.java
@@ -78,10 +78,10 @@ public class RobustCollectionConverter extends CollectionConverter {
Object item = readItem(reader, context, collection);
collection.add(item);
} catch (CannotResolveClassException e) {
- LOGGER.log(WARNING,"Failed to resolve class",e);
+ LOGGER.log(WARNING, "Failed to resolve class " + e.getMessage());
RobustReflectionConverter.addErrorInContext(context, e);
} catch (LinkageError e) {
- LOGGER.log(WARNING,"Failed to resolve class",e);
+ LOGGER.log(WARNING, "Failed to resolve class " + e.getMessage());
RobustReflectionConverter.addErrorInContext(context, e);
}
reader.moveUp();
diff --git a/hudson-core/src/main/java/hudson/util/RobustReflectionConverter.java b/hudson-core/src/main/java/hudson/util/RobustReflectionConverter.java
index 5188832..3e72775 100644
--- a/hudson-core/src/main/java/hudson/util/RobustReflectionConverter.java
+++ b/hudson-core/src/main/java/hudson/util/RobustReflectionConverter.java
@@ -245,13 +245,13 @@ public class RobustReflectionConverter implements Converter {
}
}
} catch (NonExistentFieldException e) {
- LOGGER.log(WARNING,"Skipping a non-existent field "+e.getFieldName(),e);
+ LOGGER.log(WARNING, "Skipping a non-existent field " + e.getFieldName());
addErrorInContext(context, e);
} catch (CannotResolveClassException e) {
- LOGGER.log(WARNING,"Skipping a non-existent type",e);
+ LOGGER.log(WARNING, "Skipping a non-existent type " + e.getMessage());
addErrorInContext(context, e);
} catch (LinkageError e) {
- LOGGER.log(WARNING,"Failed to resolve a type",e);
+ LOGGER.log(WARNING, "Failed to resolve a type " + e.getMessage());
addErrorInContext(context, e);
}