Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-622

CMIS Connector returns NPE trying to get an empty boolean or date value

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: ManifoldCF 1.0.1
    • Fix Version/s: ManifoldCF 1.1
    • Component/s: CMIS connector
    • Labels:
      None

      Description

      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:

      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)
      

      And another one related to date values:

      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)
      

      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.

        Attachments

          Activity

            People

            • Assignee:
              piergiorgiolucidi@gmail.com Piergiorgio Lucidi
              Reporter:
              piergiorgiolucidi@gmail.com Piergiorgio Lucidi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified