javax.naming.AuthenticationException

[LDAP: error code 49 - Invalid Credentials]

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web270

  • [LDAP: error code 49 - Invalid Credentials]
  • via Oracle Community by 746344, 1 year ago
    [LDAP: error code 49 - Invalid Credentials]
  • via Google Groups by Gsandtner Michael, 6 days ago
    [LDAP: error code 49 - Invalid Credentials]
  • Stack trace

    • javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials] at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3067) at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3013) at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2815) at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2729) at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:296) at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175) at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193) at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136) at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) at javax.naming.InitialContext.init(InitialContext.java:223) at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:134) at com.liferay.portal.security.auth.LDAPAuth.authenticate(LDAPAuth.java:150) at com.liferay.portal.security.auth.LDAPAuth.authenticate(LDAPAuth.java:263) at com.liferay.portal.security.auth.LDAPAuth.authenticate(LDAPAuth.java:359) at com.liferay.portal.security.auth.LDAPAuth.authenticateByScreenName(LDAPAuth.java:92) at com.liferay.portal.security.auth.AuthPipeline._authenticate(AuthPipeline.java:230) at com.liferay.portal.security.auth.AuthPipeline.authenticateByScreenName(AuthPipeline.java:51) at com.liferay.portal.service.impl.UserLocalServiceImpl.authenticate(UserLocalServiceImpl.java:2603) at com.liferay.portal.service.impl.UserLocalServiceImpl.authenticateByScreenName(UserLocalServiceImpl.java:579) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:87) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy118.authenticateByScreenName(Unknown Source) at com.liferay.portal.service.UserLocalServiceUtil.authenticateByScreenName(UserLocalServiceUtil.java:202) at com.liferay.portlet.login.util.LoginUtil.getAuthenticatedUserId(LoginUtil.java:149) at com.liferay.portlet.login.util.LoginUtil.login(LoginUtil.java:218) at com.liferay.portlet.login.action.LoginAction.login(LoginAction.java:137) at com.liferay.portlet.login.action.LoginAction.processAction(LoginAction.java:76) at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:171) at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:188) at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:72) at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:50) at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:655) at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:689) at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:363) at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:744) at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:549) at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:216) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:156) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:507) at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:484) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:128) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:128) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:274) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:125) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:128) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:128) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:206) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:125) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:245) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:125) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253) at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:135) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:128) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:47) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:125) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:128) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:238) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:125) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:128) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:128) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:206) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:125) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:224) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:125) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:128) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:443) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:125) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:245) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:125) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:128) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:128) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:128) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:244) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:125) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:128) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:128) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:128) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter.processFilter(ThreadLocalFilter.java:54) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:125) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:198) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:128) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    9 times, 1 year ago
    Unknown user
    Once, 8 months ago
    Unknown user
    Once, 2 years ago
    Unknown user
    Once, 7 months ago
    Unknown user
    Once, 9 months ago
    4 more bugmates