commit | aa5826900e1123d6b266ded201e3d40fc77c50ca | [log] [tgz] |
---|---|---|
author | Andreas Hartmann <andreas@apache.org> | Wed Oct 01 10:30:48 2008 +0000 |
committer | Andreas Hartmann <andreas@apache.org> | Wed Oct 01 10:30:48 2008 +0000 |
tree | 6d3b235a177e89d48d69a3bcd6eedbea08b5667d | |
parent | 1b37ddfd2f1cedfd56a3938236d03aa88c6ada3d [diff] |
Improved traceability of attribute-set-releated authenticator issues. git-svn-id: https://svn.apache.org/repos/asf/lenya/branches/branch_1_2_x_shibboleth@700730 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/java/org/apache/lenya/ac/attr/impl/AttributeManagerImpl.java b/src/java/org/apache/lenya/ac/attr/impl/AttributeManagerImpl.java index a46f2a8..fb48896 100644 --- a/src/java/org/apache/lenya/ac/attr/impl/AttributeManagerImpl.java +++ b/src/java/org/apache/lenya/ac/attr/impl/AttributeManagerImpl.java
@@ -52,7 +52,7 @@ try { attrs = (AttributeSet) this.attrSetSelector.select(name); } catch (ServiceException e) { - throw new RuntimeException(); + throw new RuntimeException(e); } this.name2attributeSet.put(name, attrs); }
diff --git a/src/java/org/apache/lenya/ac/shibboleth/ShibbolethAuthenticator.java b/src/java/org/apache/lenya/ac/shibboleth/ShibbolethAuthenticator.java index faae8ba..06712a4 100644 --- a/src/java/org/apache/lenya/ac/shibboleth/ShibbolethAuthenticator.java +++ b/src/java/org/apache/lenya/ac/shibboleth/ShibbolethAuthenticator.java
@@ -494,6 +494,10 @@ public AttributeSet getAttributeSet() { if (this.attributeSet == null) { + if (this.attributeSetHint == null) { + throw new RuntimeException("The parameter 'attribute-set' was not set. " + + "Please check $WEBAPP_HOME/WEB-INF/cocoon.xconf."); + } try { this.attributeManager = (AttributeManager) this.manager.lookup(AttributeManager.ROLE); this.attributeSet = this.attributeManager.getAttributeSet(this.attributeSetHint);