Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The default logging provifded in logback.xml is for a truncated information from exceptions.  Particularly when debugging a development system it may be helpful to turn up the amount of information in the log. This page has mpore details but replacing this line in logback.xml

Code Block
languagexml
            <Pattern>%date{ISO8601} - %level [%logger:%line] - %msg%n%ex{short}</Pattern>

...

Code Block
languagexml
            <Pattern>%date{ISO8601} - %level [%logger:%line] - %msg%n%ex{full}</Pattern>

Can often provide a useful hint of where the fault has come from.  For instance:

Code Block
Caused by:
java.lang.IllegalArgumentException: name           
at sun.misc.URLClassPath$Loader.findResource(Unknown Source)           
at sun.misc.URLClassPath.findResource(Unknown Source)           
at java.net.URLClassLoader$2.run(Unknown Source)           
at java.net.URLClassLoader$2.run(Unknown Source)           
at java.security.AccessController.doPrivileged(Native Method)           
at java.net.URLClassLoader.findResource(Unknown Source)           
at org.eclipse.jetty.webapp.WebAppClassLoader.getResource(WebAppClassLoader.java:402)           
at java.net.URLClassLoader.getResourceAsStream(Unknown Source)           
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:166)           
at net.shibboleth.idp.profile.spring.factory.BasicX509CredentialFactoryBean.getCertificates(BasicX509CredentialFactoryBean.java:177)


Is more helpful when debugging than

Code Block
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#6a98f353': Cannot create inner bean '(inner bean)#3b35798' of type [net.shibboleth.idp.profile.spring.factory.BasicX509CredentialFactoryBean] while setting bean property 'trustCredential'; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3b35798': Invocation of init method failed; 
nested exception is java.lang.IllegalArgumentException: name