[ 
https://jira.nuxeo.com/browse/NXP-5688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Florent Guillaume updated NXP-5688:
-----------------------------------

    Status: Open  (was: Triage)

> NullPointerException doing query
> --------------------------------
>
>                 Key: NXP-5688
>                 URL: https://jira.nuxeo.com/browse/NXP-5688
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>    Affects Versions: 5.3.2
>            Reporter: François-Denis Gonthier
>            Priority: Major
>
> For all I know, this crash happens pretty much out of the blue. This is from 
> a query done right after a folder document was deleted.
> query = "SELECT * FROM Folder WHERE ecm:parentId = '" + mboxDoc.getId() + "'";
> docIt = mboxSession.getCoreSession().queryIt(query, new NuxeoMailboxFilter(), 
> -1);
> The folder this query is looking for is still present in the repository. A 
> subfolder was deleted just before. I have seen this bug happen in other 
> situations so I doubt it is related.
> java.lang.NullPointerException
>       at 
> org.nuxeo.ecm.core.api.AbstractSession.getDocsResultChunk(AbstractSession.java:1079)
>       at 
> org.nuxeo.ecm.core.api.impl.DocumentModelIteratorImpl.<init>(DocumentModelIteratorImpl.java:93)
>       at 
> org.nuxeo.ecm.core.api.AbstractSession.queryIt(AbstractSession.java:1480)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:592)
>       at 
> org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper.invoke(TransactionalCoreSessionWrapper.java:98)
>       at $Proxy14.queryIt(Unknown Source)
>       at 
> com.rlnx.nuxeo.imap.namespace.NuxeoNamespaceImpl.list(NuxeoNamespaceImpl.java:216)
>       at 
> com.rlnx.nuxeo.imap.namespace.NuxeoNamespaceImpl.countChildren(NuxeoNamespaceImpl.java:52)
>       at 
> com.rlnx.nuxeo.imap.namespace.NuxeoNamespaceImpl.hasChildren(NuxeoNamespaceImpl.java:189)
>       at 
> com.rlnx.nuxeo.imap.NuxeoMailboxMapper.delete(NuxeoMailboxMapper.java:62)
>       at 
> org.apache.james.mailbox.store.StoreMailboxManager$1.runVoid(StoreMailboxManager.java:246)
>       at 
> org.apache.james.mailbox.store.transaction.Mapper$VoidTransaction.run(Mapper.java:60)
>       at 
> org.apache.james.mailbox.store.transaction.Mapper$VoidTransaction.run(Mapper.java:1)
>       at 
> com.rlnx.nuxeo.imap.NuxeoMailboxMapper.execute(NuxeoMailboxMapper.java:99)
>       at 
> org.apache.james.mailbox.store.StoreMailboxManager.deleteMailbox(StoreMailboxManager.java:239)
>       at 
> com.rlnx.nuxeo.imap.TestNuxeoMailboxManager.testDeleteMailboxChildren(TestNuxeoMailboxManager.java:144)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:592)
>       at junit.framework.TestCase.runTest(TestCase.java:168)
>       at org.jmock.core.VerifyingTestCase.runBare(Unknown Source)
>       at junit.framework.TestResult$1.protect(TestResult.java:110)
>       at junit.framework.TestResult.runProtected(TestResult.java:128)
>       at junit.framework.TestResult.run(TestResult.java:113)
>       at junit.framework.TestCase.run(TestCase.java:124)
>       at junit.framework.TestSuite.runTest(TestSuite.java:232)
>       at junit.framework.TestSuite.run(TestSuite.java:227)
>       at junit.framework.TestSuite.runTest(TestSuite.java:232)
>       at junit.framework.TestSuite.run(TestSuite.java:227)
>       at 
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
>       at 
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
>       at 
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
_______________________________________________
ECM-tickets mailing list
ECM-tickets@lists.nuxeo.com
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to