java.lang.NullPointerException

JIRA | Ramin Haeri Azad | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    - stopped the server - built an opal project - started the server Got this exception at startup: {code} 2013-10-18 18:01:58:784 INFO Loading configuration from input stream [OServerConfigurationLoaderXml] 2013-10-18 18:01:59:020 INFO Profiler is recording metrics with configuration: 0,0,0 [OJVMProfiler] 2013-10-18 18:01:59:021 INFO OrientDB Server v1.5.1 is starting up... [OServer] 2013-10-18 18:01:59:055 INFO Listening binary connections on 0.0.0.0:2424 (protocol v.17) [OServerNetworkListener] 2013-10-18 18:01:59:055 INFO Listening http connections on 0.0.0.0:2480 (protocol v.10) [OServerNetworkListener] 2013-10-18 18:01:59:065 INFO Mail plugin installed and active. Loaded 1 profile(s): [default] [OMailPlugin] 2013-10-18 18:01:59:067 INFO OrientDB Server v1.5.1 is active. [OServer]Upgrading Opal. Upgrade successful. Starting Opal. Exception in thread "Thread-16" java.lang.NullPointerException at org.obiba.opal.search.es.EsIndexManager.createIndex(EsIndexManager.java:132) at org.obiba.opal.search.es.EsIndexManager$EsIndexer.run(EsIndexManager.java:176) at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:352) at org.obiba.opal.search.IndexSynchronizationManager$SyncConsumer.consume(IndexSynchronizationManager.java:216) at org.obiba.opal.search.IndexSynchronizationManager$SyncConsumer.run(IndexSynchronizationManager.java:202) at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) at java.lang.Thread.run(Thread.java:722) Opal Server successfully started. Opal is attached to this console. Press ctrl-c to stop. Once the server was up, I got another exception when I tried to go the projects section: 2013-10-18 18:03:02,096 - ERROR - der.RuntimeExceptionMapper - Unhandled exception java.lang.IllegalStateException: The initialise() method must be called before getVariableValueSources(). at org.obiba.magma.js.views.VariablesClause.getVariableValueSources(VariablesClause.java:62) at org.obiba.magma.views.View.getListVariables(View.java:276) at org.obiba.magma.views.View.getVariables(View.java:262) at org.obiba.magma.support.AbstractValueTableWrapper.getVariables(AbstractValueTableWrapper.java:77) at org.obiba.magma.security.SecuredValueTable.getVariables(SecuredValueTable.java:56) at org.obiba.opal.web.project.Dtos.asSummaryDto(Dtos.java:94) at org.obiba.opal.web.project.ProjectResource.getSummary(ProjectResource.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:167) at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216) at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:542) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:524) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:126) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1329) at org.obiba.opal.server.httpd.OpalJettyServer$TransactionFilter$1.doInTransactionWithoutResult(OpalJettyServer.java:325) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131) at org.obiba.opal.server.httpd.OpalJettyServer$TransactionFilter.doFilterInternal(OpalJettyServer.java:321) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300) at org.obiba.opal.server.httpd.security.AuthenticationFilter.doFilterInternal(AuthenticationFilter.java:82) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300) at org.obiba.opal.server.httpd.OpalJettyServer$OpalVersionFilter.doFilterInternal(OpalJettyServer.java:305) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:363) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:920) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:982) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:722) 2013-10-18 18:03:03,318 - ERROR - der.RuntimeExceptionMapper - Unhandled exception {code}

    JIRA | 4 years ago | Ramin Haeri Azad
    java.lang.NullPointerException
  2. 0

    - stopped the server - built an opal project - started the server Got this exception at startup: {code} 2013-10-18 18:01:58:784 INFO Loading configuration from input stream [OServerConfigurationLoaderXml] 2013-10-18 18:01:59:020 INFO Profiler is recording metrics with configuration: 0,0,0 [OJVMProfiler] 2013-10-18 18:01:59:021 INFO OrientDB Server v1.5.1 is starting up... [OServer] 2013-10-18 18:01:59:055 INFO Listening binary connections on 0.0.0.0:2424 (protocol v.17) [OServerNetworkListener] 2013-10-18 18:01:59:055 INFO Listening http connections on 0.0.0.0:2480 (protocol v.10) [OServerNetworkListener] 2013-10-18 18:01:59:065 INFO Mail plugin installed and active. Loaded 1 profile(s): [default] [OMailPlugin] 2013-10-18 18:01:59:067 INFO OrientDB Server v1.5.1 is active. [OServer]Upgrading Opal. Upgrade successful. Starting Opal. Exception in thread "Thread-16" java.lang.NullPointerException at org.obiba.opal.search.es.EsIndexManager.createIndex(EsIndexManager.java:132) at org.obiba.opal.search.es.EsIndexManager$EsIndexer.run(EsIndexManager.java:176) at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:352) at org.obiba.opal.search.IndexSynchronizationManager$SyncConsumer.consume(IndexSynchronizationManager.java:216) at org.obiba.opal.search.IndexSynchronizationManager$SyncConsumer.run(IndexSynchronizationManager.java:202) at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) at java.lang.Thread.run(Thread.java:722) Opal Server successfully started. Opal is attached to this console. Press ctrl-c to stop. Once the server was up, I got another exception when I tried to go the projects section: 2013-10-18 18:03:02,096 - ERROR - der.RuntimeExceptionMapper - Unhandled exception java.lang.IllegalStateException: The initialise() method must be called before getVariableValueSources(). at org.obiba.magma.js.views.VariablesClause.getVariableValueSources(VariablesClause.java:62) at org.obiba.magma.views.View.getListVariables(View.java:276) at org.obiba.magma.views.View.getVariables(View.java:262) at org.obiba.magma.support.AbstractValueTableWrapper.getVariables(AbstractValueTableWrapper.java:77) at org.obiba.magma.security.SecuredValueTable.getVariables(SecuredValueTable.java:56) at org.obiba.opal.web.project.Dtos.asSummaryDto(Dtos.java:94) at org.obiba.opal.web.project.ProjectResource.getSummary(ProjectResource.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:167) at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216) at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:542) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:524) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:126) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1329) at org.obiba.opal.server.httpd.OpalJettyServer$TransactionFilter$1.doInTransactionWithoutResult(OpalJettyServer.java:325) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131) at org.obiba.opal.server.httpd.OpalJettyServer$TransactionFilter.doFilterInternal(OpalJettyServer.java:321) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300) at org.obiba.opal.server.httpd.security.AuthenticationFilter.doFilterInternal(AuthenticationFilter.java:82) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300) at org.obiba.opal.server.httpd.OpalJettyServer$OpalVersionFilter.doFilterInternal(OpalJettyServer.java:305) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:363) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:920) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:982) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:722) 2013-10-18 18:03:03,318 - ERROR - der.RuntimeExceptionMapper - Unhandled exception {code}

    JIRA | 4 years ago | Ramin Haeri Azad
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.obiba.opal.search.es.EsIndexManager.createIndex()
    2. org.obiba.opal
      EsIndexManager$EsIndexer.run
      1. org.obiba.opal.search.es.EsIndexManager.createIndex(EsIndexManager.java:132)
      2. org.obiba.opal.search.es.EsIndexManager$EsIndexer.run(EsIndexManager.java:176)
      2 frames
    3. Shiro
      DelegatingSubject.execute
      1. org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120)
      2. org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108)
      3. org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:352)
      3 frames
    4. org.obiba.opal
      IndexSynchronizationManager$SyncConsumer.run
      1. org.obiba.opal.search.IndexSynchronizationManager$SyncConsumer.consume(IndexSynchronizationManager.java:216)
      2. org.obiba.opal.search.IndexSynchronizationManager$SyncConsumer.run(IndexSynchronizationManager.java:202)
      2 frames
    5. Shiro
      SubjectRunnable.run
      1. org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120)
      2. org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108)
      2 frames
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:722)
      1 frame