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

Anahide Tchertchian updated NXP-8538:
-------------------------------------

    Summary: Fix NPE in nuxeo-platform-importer addon when multi threaded  
(was: NPE in nuxeo-platform-importer addon when multi threaded)

> Fix NPE in nuxeo-platform-importer addon when multi threaded
> ------------------------------------------------------------
>
>                 Key: NXP-8538
>                 URL: https://jira.nuxeo.com/browse/NXP-8538
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>          Components: Importer
>    Affects Versions: 5.4.2, 5.5
>            Reporter: Benoit Delbosc
>            Assignee: Benoit Delbosc
>             Fix For: 5.4.2-HF15, 5.5.0-HF01, 5.6
>
>
> NPE is raised when trying to access session from a document model.
> This happens when the session of the root document has been closed by another 
> thread/task.
> The root document of a new thread/task must be re/attached with the task 
> session.
> {code}
> 7:37,171 [pool-1-thread-2] ERROR [NUXEO:base.GenericThreadedImportTask] 
> Unable to create leaf document for 
> /home/....xml:java.lang.NullPointerException
> 16:47:37,171 [pool-1-thread-2] ERROR [NUXEO:base.GenericThreadedImportTask] 
> Error during import
> java.lang.Exception: java.lang.NullPointerException
>       at 
> org.nuxeo.ecm.platform.importer.base.GenericThreadedImportTask.doCreateLeafNode(GenericThreadedImportTask.java:223)
>       at 
> org.nuxeo.ecm.platform.importer.base.GenericThreadedImportTask.recursiveCreateDocumentFromNode(GenericThreadedImportTask.java:330)
>       at 
> org.nuxeo.ecm.platform.importer.base.GenericThreadedImportTask.recursiveCreateDocumentFromNode(GenericThreadedImportTask.java:325)
>       at 
> org.nuxeo.ecm.platform.importer.base.GenericThreadedImportTask.run(GenericThreadedImportTask.java:366)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>       at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.NullPointerException
>       at org.nuxeo.ecm.core.api.CoreInstance.getSession(CoreInstance.java:223)
>       at 
> org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getCoreSession(DocumentModelImpl.java:403)
>       at 
> org.nuxeo.ecm.core.api.impl.DocumentModelImpl$RunWithCoreSession.execute(DocumentModelImpl.java:440)
>       at 
> org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getACP(DocumentModelImpl.java:878)
>       at ...
> org.nuxeo.ecm.platform.importer.base.GenericThreadedImportTask.doCreateLeafNode(GenericThreadedImportTask.java:215)
>       ... 6 more
> {code}

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

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to