Correction o type argument from principal method

Error executing tag <shiro:principal>: groovy.lang.MissingMethodException: No signature of method: org.apache.shiro.subject.SimplePrincipalCollection.oneByType() is applicable for argument types: (java.lang.String)