Bug 1170359
| Summary: | [GSS](6.4.x) InitialContext re-wrapping specific NamingExceptions with more generic NamingException | |||
|---|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Brad Maxwell <bmaxwell> | |
| Component: | Naming | Assignee: | emartins | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | ||
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 6.2.1 | CC: | emartins, jmartisk, kkhan | |
| Target Milestone: | DR13 | |||
| Target Release: | EAP 6.4.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1171243 (view as bug list) | Environment: | ||
| Last Closed: | Type: | Bug | ||
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1171243 | |||
Verified in EAP 6.4.0.DR13. |
Change in InitialContext caused AuthenticationException to be wrapped with a more generic NamingException causing application issues: INFO [org.springframework.ldap.core.LdapTemplate] (http-/192.168.1.101:8543-3) Authentication failed for entry with DN 'uid=d1234567,ou=abcde,ou=us,ou=redhat,ou=customers,dc=jboss ,dc=com': org.springframework.ldap.UncategorizedLdapException: Uncategorized exception occured during LDAP processing; nested exception is javax.naming.NamingException: JBAS011843: Failed instan tiate InitialContextFactory com.sun.jndi.ldap.LdapCtxFactory from classloader ModuleClassLoader for Module "deployment.example.war:main" from Service Module Loader [Root exception is javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]] at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:228) [spring-ldap-core-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.ldap.core.support.AbstractContextSource.createContext(AbstractContextSource.java:347) [spring-ldap-core-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.ldap.core.support.AbstractContextSource.doGetContext(AbstractContextSource.java:131) [spring-ldap-core-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.ldap.core.support.AbstractContextSource.getContext(AbstractContextSource.java:122) [spring-ldap-core-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.ldap.transaction.compensating.manager.TransactionAwareContextSourceProxy.getContext(TransactionAwareContextSourceProxy.java:98) [spring-ldap-core-2.0.0.RELEASE.jar :2.0.0.RELEASE] at org.springframework.ldap.core.LdapTemplate.authenticate(LdapTemplate.java:1454) [spring-ldap-core-2.0.0.RELEASE.jar:2.0.0.RELEASE] ... Caused by: javax.naming.NamingException: JBAS011843: Failed instantiate InitialContextFactory com.sun.jndi.ldap.LdapCtxFactory from classloader ModuleClassLoader for Module "deployment.example.war:m ain" from Service Module Loader [Root exception is javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]] at org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:124) at org.jboss.as.naming.InitialContext.init(InitialContext.java:107) at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:153) [rt.jar:1.7.0_65] at org.jboss.as.naming.InitialContext.<init>(InitialContext.java:98) at org.jboss.as.naming.InitialContextFactory.getInitialContext(InitialContextFactory.java:44) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684) [rt.jar:1.7.0_65] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307) [rt.jar:1.7.0_65] at javax.naming.InitialContext.init(InitialContext.java:242) [rt.jar:1.7.0_65] at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:153) [rt.jar:1.7.0_65] at org.springframework.ldap.core.support.LdapContextSource.getDirContextInstance(LdapContextSource.java:42) [spring-ldap-core-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.ldap.core.support.AbstractContextSource.createContext(AbstractContextSource.java:335) [spring-ldap-core-2.0.0.RELEASE.jar:2.0.0.RELEASE] ... 83 more Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials] at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3087) [rt.jar:1.7.0_65] at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3033) [rt.jar:1.7.0_65] at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2835) [rt.jar:1.7.0_65] at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2749) [rt.jar:1.7.0_65] at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:316) [rt.jar:1.7.0_65] at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:193) [rt.jar:1.7.0_65] at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:211) [rt.jar:1.7.0_65] at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:154) [rt.jar:1.7.0_65] at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:84) [rt.jar:1.7.0_65] at org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:122) ... 93 more