Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-12146

NPE first time accessing to polls tab and creating a Poll

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 5.7.2
    • Component/s: Polls

      Description

      When accessing for the first time to the Polls tab (the Polls container is created at this time, a HiddenFolder) and then creating a Poll, we have the following error on async listeners / works (FulltextUpdaterWork, pictureViewListener, videoAutomaticConversions and activityStreamListener):

      java.lang.NullPointerException
      	at org.nuxeo.ecm.core.storage.sql.Node.isProxy(Node.java:158)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.newDocument(SQLSession.java:642)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.newDocument(SQLSession.java:629)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.getParent(SQLSession.java:730)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.getParent(SQLDocumentLive.java:117)
      	at org.nuxeo.ecm.core.api.DocumentModelFactory.createDocumentModel(DocumentModelFactory.java:93)
      	at org.nuxeo.ecm.core.api.AbstractSession.readModel(AbstractSession.java:507)
      	at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:1231)
      	at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper.invoke(TransactionalCoreSessionWrapper.java:133)
      	at com.sun.proxy.$Proxy45.getDocument(Unknown Source)
      	at org.nuxeo.ecm.core.storage.sql.FulltextUpdaterWork.work(FulltextUpdaterWork.java:149)
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:163)
      	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:722)
      

      Node#getPrimaryType() returns null.
      Path is: /
      The hierFragment row values are all nulls.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: