java.lang.NullPointerException

Stack Overflow | randikaisuru | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at com.geek.pos.controller.AppController.initializeProfiles()
  2. com.geek.pos
    AppController.initializeProfiles
    1. com.geek.pos.controller.AppController.initializeProfiles(AppController.java:168)
    1 frame
  3. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  4. com.google.appengine
    Runtime.invoke
    1. com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:130)
    1 frame
  5. Spring
    HandlerMethodInvoker.invokeHandlerMethod
    1. org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:164)
    1 frame
  6. Spring MVC
    FrameworkServlet.doGet
    1. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:444)
    2. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:432)
    3. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
    4. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
    5. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968)
    6. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:859)
    6 frames
  7. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    1 frame
  8. Spring MVC
    FrameworkServlet.service
    1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844)
    1 frame
  9. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    1 frame
  10. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
    2 frames
  11. com.google.appengine
    ServeBlobFilter.doFilter
    1. com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:63)
    1 frame
  12. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    1 frame
  13. AppEngine Testing
    DevAppServerModulesFilter.doFilter
    1. com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectRequest(DevAppServerModulesFilter.java:366)
    2. com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectModuleRequest(DevAppServerModulesFilter.java:349)
    3. com.google.appengine.tools.development.DevAppServerModulesFilter.doFilter(DevAppServerModulesFilter.java:116)
    3 frames
  14. Jetty Server
    WebAppContext.handle
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    6 frames
  15. AppEngine Testing
    DevAppEngineWebAppContext.handle
    1. com.google.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:98)
    1 frame
  16. Jetty Server
    Dispatcher.forward
    1. org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
    2. org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
    2 frames
  17. AppEngine Testing
    LocalResourceFileServlet.doGet
    1. com.google.appengine.tools.development.StaticFileUtils.serveWelcomeFileAsForward(StaticFileUtils.java:84)
    2. com.google.appengine.tools.development.LocalResourceFileServlet.maybeServeWelcomeFile(LocalResourceFileServlet.java:253)
    3. com.google.appengine.tools.development.LocalResourceFileServlet.doGet(LocalResourceFileServlet.java:120)
    3 frames
  18. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    2 frames
  19. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
    2 frames
  20. Objectify App Engine
    ObjectifyFilter.doFilter
    1. com.googlecode.objectify.ObjectifyFilter.doFilter(ObjectifyFilter.java:48)
    1 frame
  21. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    1 frame
  22. com.google.appengine
    DevSocketFilter.doFilter
    1. com.google.appengine.api.socket.dev.DevSocketFilter.doFilter(DevSocketFilter.java:74)
    1 frame
  23. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    1 frame
  24. AppEngine Testing
    ResponseRewriterFilter.doFilter
    1. com.google.appengine.tools.development.ResponseRewriterFilter.doFilter(ResponseRewriterFilter.java:128)
    1 frame
  25. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    1 frame
  26. AppEngine Testing
    HeaderVerificationFilter.doFilter
    1. com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:34)
    1 frame
  27. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    1 frame
  28. com.google.appengine
    ServeBlobFilter.doFilter
    1. com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:63)
    1 frame
  29. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    1 frame
  30. Google AppEngine
    TransactionCleanupFilter.doFilter
    1. com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:50)
    1 frame
  31. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    1 frame
  32. AppEngine Testing
    StaticFileFilter.doFilter
    1. com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:125)
    1 frame
  33. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    1 frame
  34. AppEngine Testing
    DevAppServerModulesFilter.doFilter
    1. com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectRequest(DevAppServerModulesFilter.java:366)
    2. com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectModuleRequest(DevAppServerModulesFilter.java:349)
    3. com.google.appengine.tools.development.DevAppServerModulesFilter.doFilter(DevAppServerModulesFilter.java:116)
    3 frames
  35. Jetty Server
    WebAppContext.handle
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    6 frames
  36. AppEngine Testing
    DevAppEngineWebAppContext.handle
    1. com.google.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:98)
    1 frame
  37. Jetty Server
    HandlerWrapper.handle
    1. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    1 frame
  38. AppEngine Testing
    JettyContainerService$ApiProxyHandler.handle
    1. com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:513)
    1 frame
  39. Jetty Server
    SelectChannelEndPoint.run
    1. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    2. org.mortbay.jetty.Server.handle(Server.java:326)
    3. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    4. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
    5. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
    6. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    7. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    8. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    8 frames
  40. Jetty Util
    QueuedThreadPool$PoolThread.run
    1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
    1 frame