An annoying nit in Spring parsing

Rod Widdowson rdw at steadingsoftware.com
Fri Aug 8 07:40:35 EDT 2014


My apologies if this is well-known information, but I just got bitten and
thought I should share.

I was trying to find the source of this log message:

> DEBUG
[net.shibboleth.ext.spring.util.SchemaTypeAwareBeanDefinitionParserDelegate:
495] - Neither XML 'id' nor 'name' specified - us.....

When the class mentioned had only 68 lines.

It turns out that when that particular base class initializes it says
"logger = LogFactory.getLog(getClass());"

Which means that you need to look into the parent classes until you find
what you are interested in - also that we will inherit a lot of spring log
message when we derive from a spring class.

I have no idea how widespread that sort of nonsense is, and it is not a big
deal, but worth sharing - 
/R



More information about the dev mailing list