Re: Odd observation during debugging
Christopher Schultz <[email protected]>
| Newsgroups | gmane.comp.jakarta.velocity.user |
|---|---|
| Message-ID | <[email protected]> |
All, On 12/31/12 7:58 AM, Christopher Schultz wrote: > Nathan, > > On 7/11/12 12:28 PM, Nathan Bubna wrote: >> Just set: >> directive.if.tostring.nullcheck = false > > We just went into production last night after testing in this > configuration for months, and we're getting this bizarre error message > that filled-up our logs files and the whole disk on the server. > > [...] > > Caused by: java.lang.ClassCastException: > 'directive.if.tostring.nullcheck' doesn't map to a Boolean object So this turned out to be a birazzely-merged properties file that contained these lines: # Turn off template re-loading webapp.resource.loader.modificationCheckInterval=0 <<<<<<< .mine # Disable the use or toString to determine 'truth' of references directive.if.tostring.nullcheck=false ======= # Set output encoding output.encoding=UTF-8 # Disable convert-to-string for truth-checking in #if directive directive.if.tostring.nullcheck=false >>>>>>> .r11696 So, for whatever reason, the above confused the heck out of either the property-file parser or the code that tries to test the peroperty's value. Sor, this was entirely our fault and had nothing to do with Velocity per se though it would have been nice if an insane value had issued a single ERROR or WARN and then silently used the default rather than spewing gigabytes of stack traces ;) -chris
signature.asc
(application/pgp-signature, 306 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEAREIAAYFAlDh8UgACgkQ9CaO5/Lv0PCmIACeIyOLbtKBjlbcSrXdKB2xHJ3E cpQAoKz950A7PsGfp7srn2s6UY1sjOFk =blhf -----END PGP SIGNATURE-----