cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] izenk opened a new issue #2853: LDAP login java.lang.NullPointerException
Date Wed, 19 Sep 2018 10:04:26 GMT
izenk opened a new issue #2853: LDAP login java.lang.NullPointerException
URL: https://github.com/apache/cloudstack/issues/2853
 
 
   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and master branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
    
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   Management server, API
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master branch.
   -->
   ~~~
   4.11.1
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking,
etc.  N/A otherwise
   -->
   Advanced networking, LDAP integration
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   CentOS Linux release 7.4.1708
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   During LDAP user login java.lang.NullPointerException appeared.
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots
if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   - Create domain
   - Set LDAP configuration for this domain (not for ROOT domain and not in GLOBAL SETTINGS)
   - Import LDAP Accounts through "Add LDAP account" button
   - Accounts are imported and enabled
   -  Try to login with LDAP user
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   Login is successfull
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   2018-09-19 11:08:01,989 INFO  [o.a.c.l.LdapContextFactory] (qtp1595953398-18:ctx-c3e6b91e)
(logid:574192d6) LDAP SSL enabled.
   2018-09-19 11:08:02,232 INFO  [o.a.c.l.LdapContextFactory] (qtp1595953398-18:ctx-c3e6b91e)
(logid:574192d6) LDAP SSL enabled.
   2018-09-19 11:08:02,436 ERROR [c.c.a.ApiServlet] (qtp1595953398-18:ctx-c3e6b91e) (logid:574192d6)
unknown exception writing api response
   com.cloud.exception.InvalidParameterValueException: Unable to find account test4 in domain
id=8 to create user
           at com.cloud.user.AccountManagerImpl.createUser(AccountManagerImpl.java:1139)
           at com.cloud.user.AccountManagerImpl.createUser(AccountManagerImpl.java:178)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:338)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
           at org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:107)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:174)
           at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:174)
           at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
           at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
           at com.sun.proxy.$Proxy39.createUser(Unknown Source)
           at org.apache.cloudstack.ldap.LdapAuthenticator.authenticate(LdapAuthenticator.java:123)
           at org.apache.cloudstack.ldap.LdapAuthenticator.authenticate(LdapAuthenticator.java:78)
           at com.cloud.user.AccountManagerImpl.getUserAccount(AccountManagerImpl.java:2266)
           at com.cloud.user.AccountManagerImpl.authenticateUser(AccountManagerImpl.java:2107)
           at sun.reflect.GeneratedMethodAccessor248.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:338)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
           at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
           at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
           at com.sun.proxy.$Proxy39.authenticateUser(Unknown Source)
           at com.cloud.api.ApiServer.loginUser(ApiServer.java:1048)
           at com.cloud.api.auth.DefaultLoginAPIAuthenticatorCmd.authenticate(DefaultLoginAPIAuthenticatorCmd.java:172)
           at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:214)
           at com.cloud.api.ApiServlet$1.run(ApiServlet.java:130)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
           at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:127)
           at com.cloud.api.ApiServlet.doPost(ApiServlet.java:94)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:706)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:791)
           at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852)
           at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535)
           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
           at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
           at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
           at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
           at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
           at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
           at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
           at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
           at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
           at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
           at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
           at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
           at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:527)
           at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
           at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
           at org.eclipse.jetty.server.Server.handle(Server.java:530)
           at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347)
           at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256)
           at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
           at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
           at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
           at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
           at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
           at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
           at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382)
           at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)
           at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)
           at java.lang.Thread.run(Thread.java:748)
   2018-09-19 11:08:02,558 INFO  [o.a.c.l.LdapContextFactory] (qtp1595953398-397:ctx-854d4618)
(logid:af5dd97c) LDAP SSL enabled.
   2018-09-19 11:08:02,795 INFO  [o.a.c.l.LdapContextFactory] (qtp1595953398-397:ctx-854d4618)
(logid:af5dd97c) LDAP SSL enabled.
   2018-09-19 11:08:03,080 ERROR [c.c.a.ApiServlet] (qtp1595953398-397:ctx-854d4618) (logid:af5dd97c)
unknown exception writing api response
   com.cloud.exception.InvalidParameterValueException: Unable to find account test4 in domain
id=8 to create user
           at com.cloud.user.AccountManagerImpl.createUser(AccountManagerImpl.java:1139)
           at com.cloud.user.AccountManagerImpl.createUser(AccountManagerImpl.java:178)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:338)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
           at org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:107)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:174)
           at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:174)
           at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
           at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
           at com.sun.proxy.$Proxy39.createUser(Unknown Source)
           at org.apache.cloudstack.ldap.LdapAuthenticator.authenticate(LdapAuthenticator.java:123)
           at org.apache.cloudstack.ldap.LdapAuthenticator.authenticate(LdapAuthenticator.java:78)
           at com.cloud.user.AccountManagerImpl.getUserAccount(AccountManagerImpl.java:2266)
           at com.cloud.user.AccountManagerImpl.authenticateUser(AccountManagerImpl.java:2107)
           at sun.reflect.GeneratedMethodAccessor248.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:338)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
           at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
           at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
           at com.sun.proxy.$Proxy39.authenticateUser(Unknown Source)
           at com.cloud.api.ApiServer.loginUser(ApiServer.java:1048)
           at com.cloud.api.auth.DefaultLoginAPIAuthenticatorCmd.authenticate(DefaultLoginAPIAuthenticatorCmd.java:172)
           at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:214)
           at com.cloud.api.ApiServlet$1.run(ApiServlet.java:130)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
           at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:127)
           at com.cloud.api.ApiServlet.doPost(ApiServlet.java:94)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:706)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:791)
           at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852)
           at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535)
           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
           at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
           at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
           at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
           at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
           at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
           at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
           at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
           at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
           at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
           at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
           at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
           at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:527)
           at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
           at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
           at org.eclipse.jetty.server.Server.handle(Server.java:530)
           at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347)
           at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256)
           at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
           at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
           at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
           at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
           at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
           at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
           at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382)
           at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)
           at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)
           at java.lang.Thread.run(Thread.java:748)
   2018-09-19 11:08:04,470 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl] (AsyncJobMgr-Heartbeat-1:ctx-497fb6cf)
(logid:57db90a0) Begin cleanup expired async-jobs
   ~~~
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message