Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    Thrown when an application is trying to use or access an object whose reference equals to null. You are probably trying to use a reference that points to no location in memory as though it were referencing an object.

Solutions on the web

via Apache's JIRA Issue Tracker by Helge-Frank Zimpel, 1 year ago
via Apache's JIRA Issue Tracker by Helge-Frank Zimpel, 1 year ago
java.lang.NullPointerException: null	at java.util.Hashtable.put(Hashtable.java:394)	at org.springframework.ldap.core.support.SimpleDirContextAuthenticationStrategy.setupEnvironment(SimpleDirContextAuthenticationStrategy.java:44)	at org.springframework.security.ldap.DefaultSpringSecurityContextSource$1.setupEnvironment(DefaultSpringSecurityContextSource.java:71)	at org.springframework.ldap.core.support.AbstractContextSource.setupAuthenticatedEnvironment(AbstractContextSource.java:155)	at org.springframework.ldap.core.support.AbstractContextSource.getAuthenticatedEnv(AbstractContextSource.java:481)	at org.springframework.ldap.core.support.AbstractContextSource.getContext(AbstractContextSource.java:106)	at org.artifactory.security.ldap.ArtifactoryBindAuthenticator$BindWithSpecificDnContextSource.getReadOnlyContext(ArtifactoryBindAuthenticator.java:166)	at org.springframework.ldap.core.LdapTemplate.executeReadOnly(LdapTemplate.java:792)	at org.springframework.security.ldap.SpringSecurityLdapTemplate.retrieveEntry(SpringSecurityLdapTemplate.java:114)	at org.artifactory.security.ldap.ArtifactoryBindAuthenticator.bindWithDn(ArtifactoryBindAuthenticator.java:141)	at org.artifactory.security.ldap.ArtifactoryBindAuthenticator.authenticate(ArtifactoryBindAuthenticator.java:117)	at org.artifactory.security.ldap.ArtifactoryLdapAuthenticator.authenticate(ArtifactoryLdapAuthenticator.java:123)	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.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)	at $Proxy40.authenticate(Unknown Source)	at org.artifactory.security.ldap.ArtifactoryLdapAuthenticationProvider.authenticate(ArtifactoryLdapAuthenticationProvider.java:82)	at org.springframework.security.authentication.ProviderManager.doAuthentication(ProviderManager.java:120)	at org.springframework.security.authentication.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:48)	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.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:416)	at org.apache.wicket.proxy.$Proxy119.authenticate(Unknown Source)	at org.artifactory.webapp.wicket.application.ArtifactoryWebSession.authenticate(ArtifactoryWebSession.java:99)	at org.apache.wicket.authentication.AuthenticatedWebSession.signIn(AuthenticatedWebSession.java:110)	at org.artifactory.addon.wicket.DefaultLoginLink.onSubmit(DefaultLoginLink.java:53)	at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1380)	at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:811)	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.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183)	at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)	at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)	at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1239)	at org.apache.wicket.RequestCycle.step(RequestCycle.java:1316)	at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1418)	at org.apache.wicket.RequestCycle.request(RequestCycle.java:532)	at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:356)	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:201)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)	at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:177)	at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:76)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)	at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:206)	at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:116)	at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:97)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)	at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:54)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)	at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:66)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:425)	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:494)	at org.eclipse.jetty.server.session.SessionHandler.handle(SessionHandler.java:182)	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:933)	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:362)	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:867)	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245)	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)	at org.eclipse.jetty.server.Server.handle(Server.java:334)	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559)	at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007)	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747)	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209)	at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406)	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462)	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)	at java.lang.Thread.run(Thread.java:619)