Piergiorgio Lucidi created CONNECTORS-622:
---------------------------------------------

             Summary: CMIS Connector return NPE trying to get an empty boolean 
or date value
                 Key: CONNECTORS-622
                 URL: https://issues.apache.org/jira/browse/CONNECTORS-622
             Project: ManifoldCF
          Issue Type: Bug
          Components: CMIS connector
    Affects Versions: ManifoldCF 1.0.1
            Reporter: Piergiorgio Lucidi
            Assignee: Piergiorgio Lucidi


Trying to work on some CMIS repositories, it seems that getting a boolean or a 
date value from a content can return a null value.

I found this exception related to boolean values:
{code}
FATAL 2013-01-25 09:10:40,475 (Worker thread '32') - Error tossed: null
java.lang.NullPointerException
        at 
org.apache.manifoldcf.crawler.connectors.cmis.CmisRepositoryConnector.processDocuments(CmisRepositoryConnector.java:1120)
        at 
org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector.processDocuments(BaseRepositoryConnector.java:423)
        at 
org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:551)
{code}

And another one related to date values:
{code}
FATAL 2013-01-25 09:10:49,744 (Worker thread '27') - Error tossed: null
java.lang.NullPointerException
        at 
org.apache.manifoldcf.crawler.connectors.cmis.CmisRepositoryConnector.processDocuments(CmisRepositoryConnector.java:1157)
        at 
org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector.processDocuments(BaseRepositoryConnector.java:423)
        at 
org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:551)
{code}

After getting these errors the crawling remains looping, the unique way is to 
stop the job manually, because there are some active threads.

So we need to add some check instructions to avoid NPE.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to