Uploaded image for project: 'Contrib: Clog'
  1. Contrib: Clog
  2. CLOG-105

NPE when adding new post in Oracle

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Non-Issue
    • Affects Version/s: 11.x
    • Fix Version/s: 11.x
    • Component/s: Clog

      Description

      After adding a new post in Oracle launch this error:

      INFO org.sakaiproject.clog.tool.entityprovider.ClogPostEntityProvider - Failed to get post with id 'a99b812b-5344-467c-ab36-a78e40fedb8a'. This could happen if this is the first time a post has been saved or published.
      java.lang.Exception: getPost: Unable to find post with id:a99b812b-5344-467c-ab36-a78e40fedb8a
      at org.sakaiproject.clog.impl.PersistenceManager.getPost(PersistenceManager.java:514)
      at org.sakaiproject.clog.impl.ClogManagerImpl.getPostHeader(ClogManagerImpl.java:101)
      at org.sakaiproject.clog.tool.entityprovider.ClogPostEntityProvider.createEntity(ClogPostEntityProvider.java:132)
      at org.sakaiproject.entitybroker.rest.EntityHandlerImpl.handleEntityAccess(EntityHandlerImpl.java:667)
      at org.sakaiproject.entitybroker.util.servlet.DirectServlet.dispatch(DirectServlet.java:183)
      at org.sakaiproject.entitybroker.servlet.SakaiDirectServlet.dispatch(SakaiDirectServlet.java:146)
      at org.sakaiproject.entitybroker.util.servlet.DirectServlet.handleRequest(DirectServlet.java:154)
      at org.sakaiproject.entitybroker.util.servlet.DirectServlet.service(DirectServlet.java:132)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:695)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)
      DEBUG umu.sakai.login.event.UmuLoginEvent - Evento: clog.post.created::/clog/e2968dfa-2579-4afb-b87d-d6aacb502846/posts/a99b812b-5344-467c-ab36-a78e40fedb8a
      DEBUG org.sakaiproject.search.component.service.impl.SearchNotificationAction - Notify clog.post.created
      DEBUG org.sakaiproject.search.component.service.impl.SearchIndexBuilderImpl - Add resource org.sakaiproject.event.impl.BaseNotificationService$BaseNotification
      Edit@1d62945::0:clog.post.created@/clog/e2968dfa-2579-4afb-b87d-d6aacb502846/posts/a99b812b-5344-467c-ab36-a78e40fedb8a[m, 2]
      DEBUG org.sakaiproject.search.component.service.impl.SearchIndexBuilderImpl - new entitycontent producer
      DEBUG org.sakaiproject.search.component.service.impl.SearchIndexBuilderImpl - Matched Entity Content Producer for event 0:clog.post.created@/clog/e2968dfa-2579-4afb-b87d-d6aacb502846/posts/a99b812b-5344-467c-ab36-a78e40fedb8a[m, 2] with org.sakaiproject.clog.impl.ClogContentProducer@de6bc2
      DEBUG org.sakaiproject.search.component.service.impl.SearchIndexBuilderImpl - SEARCHBUILDER: Added Resource 1 /clog/e2968dfa-2579-4afb-b87d-d6aacb502846/posts/a99b812b-5344-467c-ab36-a78e40fedb8a
      WARN org.sakaiproject.clog.impl.ClogManagerImpl - getEntity(): java.lang.NullPointerException
      WARN org.sakaiproject.event.impl.ClusterEventTracking - postEvent, notifyObservers(), event: 0:clog.post.created@/clog/e2968dfa-2579-4afb-b87d-d6aacb502846/posts/a99b812b-5344-467c-ab36-a78e40fedb8a[m, 2]
      java.lang.NullPointerException
      at org.sakaiproject.clog.impl.NewPostNotification.getSubject(NewPostNotification.java:91)
      at org.sakaiproject.clog.impl.NewPostNotification.getHeaders(NewPostNotification.java:105)
      at org.sakaiproject.util.EmailNotification.reNotify(EmailNotification.java:221)
      at org.sakaiproject.util.EmailNotification.notify(EmailNotification.java:161)
      at org.sakaiproject.event.impl.BaseNotificationService$BaseNotification.notify(BaseNotificationService.java:1111)
      at org.sakaiproject.event.impl.BaseNotificationService.update(BaseNotificationService.java:613)
      at java.util.Observable.notifyObservers(Observable.java:159)
      at org.sakaiproject.event.impl.BaseEventTrackingService.notifyObservers(BaseEventTrackingService.java:126)
      at org.sakaiproject.event.impl.ClusterEventTracking.postEvent(ClusterEventTracking.java:305)
      at org.sakaiproject.event.impl.BaseEventTrackingService.post(BaseEventTrackingService.java:276)
      at org.sakaiproject.clog.impl.SakaiProxyImpl.postEvent(SakaiProxyImpl.java:451)
      at org.sakaiproject.clog.tool.entityprovider.ClogPostEntityProvider.createEntity(ClogPostEntityProvider.java:145)
      at org.sakaiproject.entitybroker.rest.EntityHandlerImpl.handleEntityAccess(EntityHandlerImpl.java:667)
      at org.sakaiproject.entitybroker.util.servlet.DirectServlet.dispatch(DirectServlet.java:183)
      at org.sakaiproject.entitybroker.servlet.SakaiDirectServlet.dispatch(SakaiDirectServlet.java:146)
      at org.sakaiproject.entitybroker.util.servlet.DirectServlet.handleRequest(DirectServlet.java:154)
      at org.sakaiproject.entitybroker.util.servlet.DirectServlet.service(DirectServlet.java:132)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:695)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)
      ERROR org.sakaiproject.clog.tool.entityprovider.ClogPostEntityProvider - Caught exception whilst getting posts.
      java.lang.NullPointerException
      at org.sakaiproject.clog.api.datamodel.Post.setKeywordsText(Post.java:102)
      at org.sakaiproject.clog.impl.PersistenceManager.transformResultSetInPostCollection(PersistenceManager.java:625)
      at org.sakaiproject.clog.impl.PersistenceManager.getPosts(PersistenceManager.java:476)
      at org.sakaiproject.clog.impl.ClogManagerImpl.getPosts(ClogManagerImpl.java:119)
      at org.sakaiproject.clog.tool.entityprovider.ClogPostEntityProvider.getEntities(ClogPostEntityProvider.java:223)
      at org.sakaiproject.entitybroker.impl.EntityBrokerManagerImpl.internalGetEntities(EntityBrokerManagerImpl.java:590)
      at org.sakaiproject.entitybroker.impl.EntityBrokerManagerImpl.getEntitiesData(EntityBrokerManagerImpl.java:442)
      at org.sakaiproject.entitybroker.rest.EntityHandlerImpl.handleEntityAccess(EntityHandlerImpl.java:561)
      at org.sakaiproject.entitybroker.util.servlet.DirectServlet.dispatch(DirectServlet.java:183)
      at org.sakaiproject.entitybroker.servlet.SakaiDirectServlet.dispatch(SakaiDirectServlet.java:146)
      at org.sakaiproject.entitybroker.util.servlet.DirectServlet.handleRequest(DirectServlet.java:154)
      at org.sakaiproject.entitybroker.util.servlet.DirectServlet.service(DirectServlet.java:132)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:695)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)
      INFO: EntityEncodingManager: No entities to format (json) and output for ref (/clog-post)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  a.fish@lancaster.ac.uk Adrian Fish
                  Reporter:
                  jjmerono@um.es Juan José Meroño Sánchez
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code