When I have dug into the Robust*Converters before I've found some similar problems. The idea behind these converters is interesting, but there are some weird quirks in the implementation. There are times where it would be nice to influence or get more information about about the results, but no hooks for it.

The implementation really needs a re-work but it's a big, very complicated challenge.

Jeff Thompson

On 3/3/20 3:58 PM, Ullrich Hafner wrote:
Is there a way to prevent Jenkins to silently catch RuntimeExceptions during unmarshalling? From my perspective our Robost*Converters are too robust.

Background: After upgrading my warnings plugin to the latest release Jenkins XStream failed to unmarshall an instance of my old plugin data. (Actually XStream did not fail, I rather got a corrupt instance as return value). Rather then failing fast and throwing an exception (well at list I would expect that the NPE with stack trace is printed somewhere in the log) the unmarshalling code the prints a rather unsuspicious and unclear logging message (the important context of the file, class and attribute is missing):

WARNINGh.util.RobustReflectionConverter#doUnmarshal: Cannotconverttypeedu.hm.hafner.util.TreeStringtotypejava.lang.String

It took me quite a while to locate the actual problem.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/D1B81899-E976-4747-9D98-42FB3AF08078%40gmail.com <https://groups.google.com/d/msgid/jenkinsci-dev/D1B81899-E976-4747-9D98-42FB3AF08078%40gmail.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/b8817b94-65fb-dfb7-b57e-f6721dac2eeb%40cloudbees.com.

Reply via email to