java.lang.NullPointerException

Sakai JIRA | Ivan Masár | 2 years ago
  1. 0

    This ticket collects several issues that you should see when running oai on the latest master branch (+ DS-2253 solr version bump). They seem to be DB-related. Feel free to them split out to individual subtasks as needed. 1) 2014-11-06 18:29:37,632 INFO org.dspace.core.Context @ abort() was called on a closed Context object. No changes to abort. 2) 2014-11-06 18:27:18,359 WARN org.dspace.xoai.util.ItemUtils @ Authorization denied for action READ on BITSTREAM:5991 by user 0 org.dspace.authorize.AuthorizeException: Authorization denied for action READ on BITSTREAM:5991 by user 0 3) ListSets returns error "No matches for the query" 4) running with storage=database in [dspace]/config/modules/oai.cfg: 2014-11-06 18:44:49,850 ERROR org.dspace.xoai.filter.DSpaceSetSpecFilter @ java.lang.NullPointerException at org.dspace.xoai.filter.DSpaceSetSpecFilter.buildDatabaseQuery(DSpaceSetSpecFilter.java:66) at org.dspace.xoai.services.impl.xoai.BaseDSpaceFilterResolver.buildDatabaseQuery(BaseDSpaceFilterResolver.java:40) at org.dspace.xoai.services.impl.database.DSpaceDatabaseQueryResolver.buildQuery(DSpaceDatabaseQueryResolver.java:91) at org.dspace.xoai.services.impl.database.DSpaceDatabaseQueryResolver.buildCondition(DSpaceDatabaseQueryResolver.java:97) at org.dspace.xoai.services.impl.database.DSpaceDatabaseQueryResolver.buildQuery(DSpaceDatabaseQueryResolver.java:49) at org.dspace.xoai.services.impl.xoai.DSpaceItemDatabaseRepository.getItemIdentifiers(DSpaceItemDatabaseRepository.java:185) at org.dspace.xoai.services.impl.xoai.DSpaceItemRepository.getItemIdentifiers(DSpaceItemRepository.java:54) at com.lyncode.xoai.dataprovider.data.internal.ItemRepositoryHelper.getItemIdentifiers(ItemRepositoryHelper.java:133) at com.lyncode.xoai.dataprovider.handlers.ListIdentifiersHandler.handle(ListIdentifiersHandler.java:92) at com.lyncode.xoai.dataprovider.OAIDataProvider.handle(OAIDataProvider.java:210) at org.dspace.xoai.controller.DSpaceOAIDataProvider.contextAction(DSpaceOAIDataProvider.java:103) 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:606) at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) at javax.servlet.http.HttpServlet.service(HttpServlet.java:620) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2441) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2430) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)

    Sakai JIRA | 2 years ago | Ivan Masár
    java.lang.NullPointerException
  2. 0

    This ticket collects several issues that you should see when running oai on the latest master branch (+ DS-2253 solr version bump). They seem to be DB-related. Feel free to them split out to individual subtasks as needed. 1) 2014-11-06 18:29:37,632 INFO org.dspace.core.Context @ abort() was called on a closed Context object. No changes to abort. 2) 2014-11-06 18:27:18,359 WARN org.dspace.xoai.util.ItemUtils @ Authorization denied for action READ on BITSTREAM:5991 by user 0 org.dspace.authorize.AuthorizeException: Authorization denied for action READ on BITSTREAM:5991 by user 0 3) ListSets returns error "No matches for the query" 4) running with storage=database in [dspace]/config/modules/oai.cfg: 2014-11-06 18:44:49,850 ERROR org.dspace.xoai.filter.DSpaceSetSpecFilter @ java.lang.NullPointerException at org.dspace.xoai.filter.DSpaceSetSpecFilter.buildDatabaseQuery(DSpaceSetSpecFilter.java:66) at org.dspace.xoai.services.impl.xoai.BaseDSpaceFilterResolver.buildDatabaseQuery(BaseDSpaceFilterResolver.java:40) at org.dspace.xoai.services.impl.database.DSpaceDatabaseQueryResolver.buildQuery(DSpaceDatabaseQueryResolver.java:91) at org.dspace.xoai.services.impl.database.DSpaceDatabaseQueryResolver.buildCondition(DSpaceDatabaseQueryResolver.java:97) at org.dspace.xoai.services.impl.database.DSpaceDatabaseQueryResolver.buildQuery(DSpaceDatabaseQueryResolver.java:49) at org.dspace.xoai.services.impl.xoai.DSpaceItemDatabaseRepository.getItemIdentifiers(DSpaceItemDatabaseRepository.java:185) at org.dspace.xoai.services.impl.xoai.DSpaceItemRepository.getItemIdentifiers(DSpaceItemRepository.java:54) at com.lyncode.xoai.dataprovider.data.internal.ItemRepositoryHelper.getItemIdentifiers(ItemRepositoryHelper.java:133) at com.lyncode.xoai.dataprovider.handlers.ListIdentifiersHandler.handle(ListIdentifiersHandler.java:92) at com.lyncode.xoai.dataprovider.OAIDataProvider.handle(OAIDataProvider.java:210) at org.dspace.xoai.controller.DSpaceOAIDataProvider.contextAction(DSpaceOAIDataProvider.java:103) 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:606) at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) at javax.servlet.http.HttpServlet.service(HttpServlet.java:620) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2441) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2430) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)

    Sakai JIRA | 2 years ago | Ivan Masár
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. 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.dspace.xoai.filter.DSpaceSetSpecFilter.buildDatabaseQuery()
    2. org.dspace.xoai
      DSpaceItemRepository.getItemIdentifiers
      1. org.dspace.xoai.filter.DSpaceSetSpecFilter.buildDatabaseQuery(DSpaceSetSpecFilter.java:66)
      2. org.dspace.xoai.services.impl.xoai.BaseDSpaceFilterResolver.buildDatabaseQuery(BaseDSpaceFilterResolver.java:40)
      3. org.dspace.xoai.services.impl.database.DSpaceDatabaseQueryResolver.buildQuery(DSpaceDatabaseQueryResolver.java:91)
      4. org.dspace.xoai.services.impl.database.DSpaceDatabaseQueryResolver.buildCondition(DSpaceDatabaseQueryResolver.java:97)
      5. org.dspace.xoai.services.impl.database.DSpaceDatabaseQueryResolver.buildQuery(DSpaceDatabaseQueryResolver.java:49)
      6. org.dspace.xoai.services.impl.xoai.DSpaceItemDatabaseRepository.getItemIdentifiers(DSpaceItemDatabaseRepository.java:185)
      7. org.dspace.xoai.services.impl.xoai.DSpaceItemRepository.getItemIdentifiers(DSpaceItemRepository.java:54)
      7 frames
    3. com.lyncode.xoai
      OAIDataProvider.handle
      1. com.lyncode.xoai.dataprovider.data.internal.ItemRepositoryHelper.getItemIdentifiers(ItemRepositoryHelper.java:133)
      2. com.lyncode.xoai.dataprovider.handlers.ListIdentifiersHandler.handle(ListIdentifiersHandler.java:92)
      3. com.lyncode.xoai.dataprovider.OAIDataProvider.handle(OAIDataProvider.java:210)
      3 frames
    4. org.dspace.xoai
      DSpaceOAIDataProvider.contextAction
      1. org.dspace.xoai.controller.DSpaceOAIDataProvider.contextAction(DSpaceOAIDataProvider.java:103)
      1 frame
    5. 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
    6. Spring
      InvocableHandlerMethod.invokeForRequest
      1. org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)
      2. org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
      2 frames
    7. Spring MVC
      FrameworkServlet.doGet
      1. org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
      2. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
      3. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
      4. org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
      5. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
      6. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
      7. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
      8. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
      8 frames
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      2 frames
    9. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      2 frames
    10. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      1 frame
    11. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      10 frames
    12. Grizzly HTTP
      AprEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
      3. org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2441)
      4. org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2430)
      4 frames
    13. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames