You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@manifoldcf.apache.org by lalit jangra <la...@gmail.com> on 2014/09/08 13:51:13 UTC

Couldn't encrypt: null error in CMIS Job

Hi,

I am using MCF 1.5.1 and connecting to alfresco 4.2.2 using CMIS connector.
For alfresco job, i am passing below query as parameter.

SELECT cmis:name FROM cmis:document WHERE
CONTAINS('PATH:/app:company_home/st:sites/cm:am/cm:documentLibrary//*') AND
cmis:createdBy NOT like '%System%' AND cmis:contentStreamLength > 0

But when i am trying to restart this job, i get this error and job does not
start.

ERROR 2014-09-08 12:24:54,604 (Startup thread) - Exception tossed: Couldn't
encrypt: null

org.apache.manifoldcf.core.interfaces.ManifoldCFException: Couldn't
encrypt: null

        at
org.apache.manifoldcf.core.system.ManifoldCF.addToHash(ManifoldCF.java:592)

        at
org.apache.manifoldcf.core.system.ManifoldCF.encrypt(ManifoldCF.java:647)

        at
org.apache.manifoldcf.core.system.ManifoldCF.hash(ManifoldCF.java:562)

        at
org.apache.manifoldcf.crawler.system.SeedingActivity.addSeedDocument(SeedingActivity.java:101)

        at
org.apache.manifoldcf.crawler.system.SeedingActivity.addSeedDocument(SeedingActivity.java:126)

        at
org.apache.manifoldcf.crawler.connectors.cmis.CmisRepositoryConnector.addSeedDocuments(CmisRepositoryConnector.java:761)

        at
org.apache.manifoldcf.crawler.system.StartupThread.run(StartupThread.java:153)

Caused by: java.lang.NullPointerException

        at
org.apache.manifoldcf.core.system.ManifoldCF.addToHash(ManifoldCF.java:587)

        ... 6 more

Please suggest.

Regards,
Lalit.

Re: Couldn't encrypt: null error in CMIS Job

Posted by Karl Wright <da...@gmail.com>.
Hi Lalit,

Yes, of course there are lots of improvements in 1.7.  That would be the
whole point.

You don't have to upgrade in production until you are sure it works for
you.  You can build and run a local 1.7 MCF instance (which has its own
Derby database) and just see if you can crawl using the new code.

Karl



On Mon, Sep 8, 2014 at 8:33 AM, lalit jangra <la...@gmail.com>
wrote:

> Hi Karl,
>
> Please suggest if using MCF 1.7 can be really worth trying here. I assume
> there wourd be lots of improvements in 1.7 as compared to 1.5.
>
> Regards.
>
> On Mon, Sep 8, 2014 at 5:44 PM, Karl Wright <da...@gmail.com> wrote:
>
>> Hi Lalit,
>>
>> You would have to patch the CMIS connector up to the 1.7 level first.
>> I'm not even sure that can easily be done, because of other infrastructure
>> changes between 1.5 and 1.7.  At any rate, if you want to try that, you'll
>> have to do it yourself; I'm very busy this week.
>>
>> Karl
>>
>>
>> On Mon, Sep 8, 2014 at 8:12 AM, lalit jangra <la...@gmail.com>
>> wrote:
>>
>>> Thanks Karl,
>>>
>>> Can i get any patch for MCF 1.5.1 or do i need to use 1.7 to fix this
>>> issue?
>>>
>>> Regards.
>>>
>>> On Mon, Sep 8, 2014 at 5:39 PM, Karl Wright <da...@gmail.com> wrote:
>>>
>>>> Hi Lalit,
>>>>
>>>> The CMIS connector in 1.5 had multiple problems, since corrected.  I
>>>> strongly suggest you adopt MCF 1.7 if you want any hope of getting fixes
>>>> for that connector.
>>>>
>>>> Also, in branches/dev_1x there is an updated alfresco connector, which
>>>> may very well work properly against Alfresco 4.2.x.  It might be worth an
>>>> experiment to see if that works for you, instead of the CMIS connector.
>>>>
>>>> Karl
>>>>
>>>>
>>>>
>>>> On Mon, Sep 8, 2014 at 8:04 AM, lalit jangra <la...@gmail.com>
>>>> wrote:
>>>>
>>>>> Thanks Karl,
>>>>>
>>>>> I am connecting to Alfresco version 4.2.2 using cmis connector.
>>>>> Connection works fine as in attached screenshot but job does not run.
>>>>>
>>>>> Regards.
>>>>>
>>>>> On Mon, Sep 8, 2014 at 5:25 PM, Karl Wright <da...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Lalit,
>>>>>>
>>>>>> CMIS is returning a null document identifier during seeding.  What
>>>>>> repository are you connecting to here?
>>>>>>
>>>>>> Karl
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mon, Sep 8, 2014 at 7:51 AM, lalit jangra <
>>>>>> lalit.j.jangra@gmail.com> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I am using MCF 1.5.1 and connecting to alfresco 4.2.2 using CMIS
>>>>>>> connector. For alfresco job, i am passing below query as parameter.
>>>>>>>
>>>>>>> SELECT cmis:name FROM cmis:document WHERE
>>>>>>> CONTAINS('PATH:/app:company_home/st:sites/cm:am/cm:documentLibrary//*') AND
>>>>>>> cmis:createdBy NOT like '%System%' AND cmis:contentStreamLength > 0
>>>>>>>
>>>>>>> But when i am trying to restart this job, i get this error and job
>>>>>>> does not start.
>>>>>>>
>>>>>>> ERROR 2014-09-08 12:24:54,604 (Startup thread) - Exception tossed:
>>>>>>> Couldn't encrypt: null
>>>>>>>
>>>>>>> org.apache.manifoldcf.core.interfaces.ManifoldCFException: Couldn't
>>>>>>> encrypt: null
>>>>>>>
>>>>>>>         at
>>>>>>> org.apache.manifoldcf.core.system.ManifoldCF.addToHash(ManifoldCF.java:592)
>>>>>>>
>>>>>>>         at
>>>>>>> org.apache.manifoldcf.core.system.ManifoldCF.encrypt(ManifoldCF.java:647)
>>>>>>>
>>>>>>>         at
>>>>>>> org.apache.manifoldcf.core.system.ManifoldCF.hash(ManifoldCF.java:562)
>>>>>>>
>>>>>>>         at
>>>>>>> org.apache.manifoldcf.crawler.system.SeedingActivity.addSeedDocument(SeedingActivity.java:101)
>>>>>>>
>>>>>>>         at
>>>>>>> org.apache.manifoldcf.crawler.system.SeedingActivity.addSeedDocument(SeedingActivity.java:126)
>>>>>>>
>>>>>>>         at
>>>>>>> org.apache.manifoldcf.crawler.connectors.cmis.CmisRepositoryConnector.addSeedDocuments(CmisRepositoryConnector.java:761)
>>>>>>>
>>>>>>>         at
>>>>>>> org.apache.manifoldcf.crawler.system.StartupThread.run(StartupThread.java:153)
>>>>>>>
>>>>>>> Caused by: java.lang.NullPointerException
>>>>>>>
>>>>>>>         at
>>>>>>> org.apache.manifoldcf.core.system.ManifoldCF.addToHash(ManifoldCF.java:587)
>>>>>>>
>>>>>>>         ... 6 more
>>>>>>>
>>>>>>> Please suggest.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Lalit.
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Regards,
>>>>> Lalit.
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Regards,
>>> Lalit.
>>>
>>
>>
>
>
> --
> Regards,
> Lalit.
>

Re: Couldn't encrypt: null error in CMIS Job

Posted by lalit jangra <la...@gmail.com>.
Hi Karl,

Please suggest if using MCF 1.7 can be really worth trying here. I assume
there wourd be lots of improvements in 1.7 as compared to 1.5.

Regards.

On Mon, Sep 8, 2014 at 5:44 PM, Karl Wright <da...@gmail.com> wrote:

> Hi Lalit,
>
> You would have to patch the CMIS connector up to the 1.7 level first.  I'm
> not even sure that can easily be done, because of other infrastructure
> changes between 1.5 and 1.7.  At any rate, if you want to try that, you'll
> have to do it yourself; I'm very busy this week.
>
> Karl
>
>
> On Mon, Sep 8, 2014 at 8:12 AM, lalit jangra <la...@gmail.com>
> wrote:
>
>> Thanks Karl,
>>
>> Can i get any patch for MCF 1.5.1 or do i need to use 1.7 to fix this
>> issue?
>>
>> Regards.
>>
>> On Mon, Sep 8, 2014 at 5:39 PM, Karl Wright <da...@gmail.com> wrote:
>>
>>> Hi Lalit,
>>>
>>> The CMIS connector in 1.5 had multiple problems, since corrected.  I
>>> strongly suggest you adopt MCF 1.7 if you want any hope of getting fixes
>>> for that connector.
>>>
>>> Also, in branches/dev_1x there is an updated alfresco connector, which
>>> may very well work properly against Alfresco 4.2.x.  It might be worth an
>>> experiment to see if that works for you, instead of the CMIS connector.
>>>
>>> Karl
>>>
>>>
>>>
>>> On Mon, Sep 8, 2014 at 8:04 AM, lalit jangra <la...@gmail.com>
>>> wrote:
>>>
>>>> Thanks Karl,
>>>>
>>>> I am connecting to Alfresco version 4.2.2 using cmis connector.
>>>> Connection works fine as in attached screenshot but job does not run.
>>>>
>>>> Regards.
>>>>
>>>> On Mon, Sep 8, 2014 at 5:25 PM, Karl Wright <da...@gmail.com> wrote:
>>>>
>>>>> Hi Lalit,
>>>>>
>>>>> CMIS is returning a null document identifier during seeding.  What
>>>>> repository are you connecting to here?
>>>>>
>>>>> Karl
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Sep 8, 2014 at 7:51 AM, lalit jangra <lalit.j.jangra@gmail.com
>>>>> > wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I am using MCF 1.5.1 and connecting to alfresco 4.2.2 using CMIS
>>>>>> connector. For alfresco job, i am passing below query as parameter.
>>>>>>
>>>>>> SELECT cmis:name FROM cmis:document WHERE
>>>>>> CONTAINS('PATH:/app:company_home/st:sites/cm:am/cm:documentLibrary//*') AND
>>>>>> cmis:createdBy NOT like '%System%' AND cmis:contentStreamLength > 0
>>>>>>
>>>>>> But when i am trying to restart this job, i get this error and job
>>>>>> does not start.
>>>>>>
>>>>>> ERROR 2014-09-08 12:24:54,604 (Startup thread) - Exception tossed:
>>>>>> Couldn't encrypt: null
>>>>>>
>>>>>> org.apache.manifoldcf.core.interfaces.ManifoldCFException: Couldn't
>>>>>> encrypt: null
>>>>>>
>>>>>>         at
>>>>>> org.apache.manifoldcf.core.system.ManifoldCF.addToHash(ManifoldCF.java:592)
>>>>>>
>>>>>>         at
>>>>>> org.apache.manifoldcf.core.system.ManifoldCF.encrypt(ManifoldCF.java:647)
>>>>>>
>>>>>>         at
>>>>>> org.apache.manifoldcf.core.system.ManifoldCF.hash(ManifoldCF.java:562)
>>>>>>
>>>>>>         at
>>>>>> org.apache.manifoldcf.crawler.system.SeedingActivity.addSeedDocument(SeedingActivity.java:101)
>>>>>>
>>>>>>         at
>>>>>> org.apache.manifoldcf.crawler.system.SeedingActivity.addSeedDocument(SeedingActivity.java:126)
>>>>>>
>>>>>>         at
>>>>>> org.apache.manifoldcf.crawler.connectors.cmis.CmisRepositoryConnector.addSeedDocuments(CmisRepositoryConnector.java:761)
>>>>>>
>>>>>>         at
>>>>>> org.apache.manifoldcf.crawler.system.StartupThread.run(StartupThread.java:153)
>>>>>>
>>>>>> Caused by: java.lang.NullPointerException
>>>>>>
>>>>>>         at
>>>>>> org.apache.manifoldcf.core.system.ManifoldCF.addToHash(ManifoldCF.java:587)
>>>>>>
>>>>>>         ... 6 more
>>>>>>
>>>>>> Please suggest.
>>>>>>
>>>>>> Regards,
>>>>>> Lalit.
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>> Lalit.
>>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>> Lalit.
>>
>
>


-- 
Regards,
Lalit.

Re: Couldn't encrypt: null error in CMIS Job

Posted by Karl Wright <da...@gmail.com>.
Hi Lalit,

You would have to patch the CMIS connector up to the 1.7 level first.  I'm
not even sure that can easily be done, because of other infrastructure
changes between 1.5 and 1.7.  At any rate, if you want to try that, you'll
have to do it yourself; I'm very busy this week.

Karl


On Mon, Sep 8, 2014 at 8:12 AM, lalit jangra <la...@gmail.com>
wrote:

> Thanks Karl,
>
> Can i get any patch for MCF 1.5.1 or do i need to use 1.7 to fix this
> issue?
>
> Regards.
>
> On Mon, Sep 8, 2014 at 5:39 PM, Karl Wright <da...@gmail.com> wrote:
>
>> Hi Lalit,
>>
>> The CMIS connector in 1.5 had multiple problems, since corrected.  I
>> strongly suggest you adopt MCF 1.7 if you want any hope of getting fixes
>> for that connector.
>>
>> Also, in branches/dev_1x there is an updated alfresco connector, which
>> may very well work properly against Alfresco 4.2.x.  It might be worth an
>> experiment to see if that works for you, instead of the CMIS connector.
>>
>> Karl
>>
>>
>>
>> On Mon, Sep 8, 2014 at 8:04 AM, lalit jangra <la...@gmail.com>
>> wrote:
>>
>>> Thanks Karl,
>>>
>>> I am connecting to Alfresco version 4.2.2 using cmis connector.
>>> Connection works fine as in attached screenshot but job does not run.
>>>
>>> Regards.
>>>
>>> On Mon, Sep 8, 2014 at 5:25 PM, Karl Wright <da...@gmail.com> wrote:
>>>
>>>> Hi Lalit,
>>>>
>>>> CMIS is returning a null document identifier during seeding.  What
>>>> repository are you connecting to here?
>>>>
>>>> Karl
>>>>
>>>>
>>>>
>>>> On Mon, Sep 8, 2014 at 7:51 AM, lalit jangra <la...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I am using MCF 1.5.1 and connecting to alfresco 4.2.2 using CMIS
>>>>> connector. For alfresco job, i am passing below query as parameter.
>>>>>
>>>>> SELECT cmis:name FROM cmis:document WHERE
>>>>> CONTAINS('PATH:/app:company_home/st:sites/cm:am/cm:documentLibrary//*') AND
>>>>> cmis:createdBy NOT like '%System%' AND cmis:contentStreamLength > 0
>>>>>
>>>>> But when i am trying to restart this job, i get this error and job
>>>>> does not start.
>>>>>
>>>>> ERROR 2014-09-08 12:24:54,604 (Startup thread) - Exception tossed:
>>>>> Couldn't encrypt: null
>>>>>
>>>>> org.apache.manifoldcf.core.interfaces.ManifoldCFException: Couldn't
>>>>> encrypt: null
>>>>>
>>>>>         at
>>>>> org.apache.manifoldcf.core.system.ManifoldCF.addToHash(ManifoldCF.java:592)
>>>>>
>>>>>         at
>>>>> org.apache.manifoldcf.core.system.ManifoldCF.encrypt(ManifoldCF.java:647)
>>>>>
>>>>>         at
>>>>> org.apache.manifoldcf.core.system.ManifoldCF.hash(ManifoldCF.java:562)
>>>>>
>>>>>         at
>>>>> org.apache.manifoldcf.crawler.system.SeedingActivity.addSeedDocument(SeedingActivity.java:101)
>>>>>
>>>>>         at
>>>>> org.apache.manifoldcf.crawler.system.SeedingActivity.addSeedDocument(SeedingActivity.java:126)
>>>>>
>>>>>         at
>>>>> org.apache.manifoldcf.crawler.connectors.cmis.CmisRepositoryConnector.addSeedDocuments(CmisRepositoryConnector.java:761)
>>>>>
>>>>>         at
>>>>> org.apache.manifoldcf.crawler.system.StartupThread.run(StartupThread.java:153)
>>>>>
>>>>> Caused by: java.lang.NullPointerException
>>>>>
>>>>>         at
>>>>> org.apache.manifoldcf.core.system.ManifoldCF.addToHash(ManifoldCF.java:587)
>>>>>
>>>>>         ... 6 more
>>>>>
>>>>> Please suggest.
>>>>>
>>>>> Regards,
>>>>> Lalit.
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Regards,
>>> Lalit.
>>>
>>
>>
>
>
> --
> Regards,
> Lalit.
>

Re: Couldn't encrypt: null error in CMIS Job

Posted by lalit jangra <la...@gmail.com>.
Thanks Karl,

Can i get any patch for MCF 1.5.1 or do i need to use 1.7 to fix this issue?

Regards.

On Mon, Sep 8, 2014 at 5:39 PM, Karl Wright <da...@gmail.com> wrote:

> Hi Lalit,
>
> The CMIS connector in 1.5 had multiple problems, since corrected.  I
> strongly suggest you adopt MCF 1.7 if you want any hope of getting fixes
> for that connector.
>
> Also, in branches/dev_1x there is an updated alfresco connector, which may
> very well work properly against Alfresco 4.2.x.  It might be worth an
> experiment to see if that works for you, instead of the CMIS connector.
>
> Karl
>
>
>
> On Mon, Sep 8, 2014 at 8:04 AM, lalit jangra <la...@gmail.com>
> wrote:
>
>> Thanks Karl,
>>
>> I am connecting to Alfresco version 4.2.2 using cmis connector.
>> Connection works fine as in attached screenshot but job does not run.
>>
>> Regards.
>>
>> On Mon, Sep 8, 2014 at 5:25 PM, Karl Wright <da...@gmail.com> wrote:
>>
>>> Hi Lalit,
>>>
>>> CMIS is returning a null document identifier during seeding.  What
>>> repository are you connecting to here?
>>>
>>> Karl
>>>
>>>
>>>
>>> On Mon, Sep 8, 2014 at 7:51 AM, lalit jangra <la...@gmail.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am using MCF 1.5.1 and connecting to alfresco 4.2.2 using CMIS
>>>> connector. For alfresco job, i am passing below query as parameter.
>>>>
>>>> SELECT cmis:name FROM cmis:document WHERE
>>>> CONTAINS('PATH:/app:company_home/st:sites/cm:am/cm:documentLibrary//*') AND
>>>> cmis:createdBy NOT like '%System%' AND cmis:contentStreamLength > 0
>>>>
>>>> But when i am trying to restart this job, i get this error and job does
>>>> not start.
>>>>
>>>> ERROR 2014-09-08 12:24:54,604 (Startup thread) - Exception tossed:
>>>> Couldn't encrypt: null
>>>>
>>>> org.apache.manifoldcf.core.interfaces.ManifoldCFException: Couldn't
>>>> encrypt: null
>>>>
>>>>         at
>>>> org.apache.manifoldcf.core.system.ManifoldCF.addToHash(ManifoldCF.java:592)
>>>>
>>>>         at
>>>> org.apache.manifoldcf.core.system.ManifoldCF.encrypt(ManifoldCF.java:647)
>>>>
>>>>         at
>>>> org.apache.manifoldcf.core.system.ManifoldCF.hash(ManifoldCF.java:562)
>>>>
>>>>         at
>>>> org.apache.manifoldcf.crawler.system.SeedingActivity.addSeedDocument(SeedingActivity.java:101)
>>>>
>>>>         at
>>>> org.apache.manifoldcf.crawler.system.SeedingActivity.addSeedDocument(SeedingActivity.java:126)
>>>>
>>>>         at
>>>> org.apache.manifoldcf.crawler.connectors.cmis.CmisRepositoryConnector.addSeedDocuments(CmisRepositoryConnector.java:761)
>>>>
>>>>         at
>>>> org.apache.manifoldcf.crawler.system.StartupThread.run(StartupThread.java:153)
>>>>
>>>> Caused by: java.lang.NullPointerException
>>>>
>>>>         at
>>>> org.apache.manifoldcf.core.system.ManifoldCF.addToHash(ManifoldCF.java:587)
>>>>
>>>>         ... 6 more
>>>>
>>>> Please suggest.
>>>>
>>>> Regards,
>>>> Lalit.
>>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>> Lalit.
>>
>
>


-- 
Regards,
Lalit.

Re: Couldn't encrypt: null error in CMIS Job

Posted by Karl Wright <da...@gmail.com>.
Hi Lalit,

The CMIS connector in 1.5 had multiple problems, since corrected.  I
strongly suggest you adopt MCF 1.7 if you want any hope of getting fixes
for that connector.

Also, in branches/dev_1x there is an updated alfresco connector, which may
very well work properly against Alfresco 4.2.x.  It might be worth an
experiment to see if that works for you, instead of the CMIS connector.

Karl



On Mon, Sep 8, 2014 at 8:04 AM, lalit jangra <la...@gmail.com>
wrote:

> Thanks Karl,
>
> I am connecting to Alfresco version 4.2.2 using cmis connector. Connection
> works fine as in attached screenshot but job does not run.
>
> Regards.
>
> On Mon, Sep 8, 2014 at 5:25 PM, Karl Wright <da...@gmail.com> wrote:
>
>> Hi Lalit,
>>
>> CMIS is returning a null document identifier during seeding.  What
>> repository are you connecting to here?
>>
>> Karl
>>
>>
>>
>> On Mon, Sep 8, 2014 at 7:51 AM, lalit jangra <la...@gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I am using MCF 1.5.1 and connecting to alfresco 4.2.2 using CMIS
>>> connector. For alfresco job, i am passing below query as parameter.
>>>
>>> SELECT cmis:name FROM cmis:document WHERE
>>> CONTAINS('PATH:/app:company_home/st:sites/cm:am/cm:documentLibrary//*') AND
>>> cmis:createdBy NOT like '%System%' AND cmis:contentStreamLength > 0
>>>
>>> But when i am trying to restart this job, i get this error and job does
>>> not start.
>>>
>>> ERROR 2014-09-08 12:24:54,604 (Startup thread) - Exception tossed:
>>> Couldn't encrypt: null
>>>
>>> org.apache.manifoldcf.core.interfaces.ManifoldCFException: Couldn't
>>> encrypt: null
>>>
>>>         at
>>> org.apache.manifoldcf.core.system.ManifoldCF.addToHash(ManifoldCF.java:592)
>>>
>>>         at
>>> org.apache.manifoldcf.core.system.ManifoldCF.encrypt(ManifoldCF.java:647)
>>>
>>>         at
>>> org.apache.manifoldcf.core.system.ManifoldCF.hash(ManifoldCF.java:562)
>>>
>>>         at
>>> org.apache.manifoldcf.crawler.system.SeedingActivity.addSeedDocument(SeedingActivity.java:101)
>>>
>>>         at
>>> org.apache.manifoldcf.crawler.system.SeedingActivity.addSeedDocument(SeedingActivity.java:126)
>>>
>>>         at
>>> org.apache.manifoldcf.crawler.connectors.cmis.CmisRepositoryConnector.addSeedDocuments(CmisRepositoryConnector.java:761)
>>>
>>>         at
>>> org.apache.manifoldcf.crawler.system.StartupThread.run(StartupThread.java:153)
>>>
>>> Caused by: java.lang.NullPointerException
>>>
>>>         at
>>> org.apache.manifoldcf.core.system.ManifoldCF.addToHash(ManifoldCF.java:587)
>>>
>>>         ... 6 more
>>>
>>> Please suggest.
>>>
>>> Regards,
>>> Lalit.
>>>
>>
>>
>
>
> --
> Regards,
> Lalit.
>

Re: Couldn't encrypt: null error in CMIS Job

Posted by lalit jangra <la...@gmail.com>.
Thanks Karl,

I am connecting to Alfresco version 4.2.2 using cmis connector. Connection
works fine as in attached screenshot but job does not run.

Regards.

On Mon, Sep 8, 2014 at 5:25 PM, Karl Wright <da...@gmail.com> wrote:

> Hi Lalit,
>
> CMIS is returning a null document identifier during seeding.  What
> repository are you connecting to here?
>
> Karl
>
>
>
> On Mon, Sep 8, 2014 at 7:51 AM, lalit jangra <la...@gmail.com>
> wrote:
>
>> Hi,
>>
>> I am using MCF 1.5.1 and connecting to alfresco 4.2.2 using CMIS
>> connector. For alfresco job, i am passing below query as parameter.
>>
>> SELECT cmis:name FROM cmis:document WHERE
>> CONTAINS('PATH:/app:company_home/st:sites/cm:am/cm:documentLibrary//*') AND
>> cmis:createdBy NOT like '%System%' AND cmis:contentStreamLength > 0
>>
>> But when i am trying to restart this job, i get this error and job does
>> not start.
>>
>> ERROR 2014-09-08 12:24:54,604 (Startup thread) - Exception tossed:
>> Couldn't encrypt: null
>>
>> org.apache.manifoldcf.core.interfaces.ManifoldCFException: Couldn't
>> encrypt: null
>>
>>         at
>> org.apache.manifoldcf.core.system.ManifoldCF.addToHash(ManifoldCF.java:592)
>>
>>         at
>> org.apache.manifoldcf.core.system.ManifoldCF.encrypt(ManifoldCF.java:647)
>>
>>         at
>> org.apache.manifoldcf.core.system.ManifoldCF.hash(ManifoldCF.java:562)
>>
>>         at
>> org.apache.manifoldcf.crawler.system.SeedingActivity.addSeedDocument(SeedingActivity.java:101)
>>
>>         at
>> org.apache.manifoldcf.crawler.system.SeedingActivity.addSeedDocument(SeedingActivity.java:126)
>>
>>         at
>> org.apache.manifoldcf.crawler.connectors.cmis.CmisRepositoryConnector.addSeedDocuments(CmisRepositoryConnector.java:761)
>>
>>         at
>> org.apache.manifoldcf.crawler.system.StartupThread.run(StartupThread.java:153)
>>
>> Caused by: java.lang.NullPointerException
>>
>>         at
>> org.apache.manifoldcf.core.system.ManifoldCF.addToHash(ManifoldCF.java:587)
>>
>>         ... 6 more
>>
>> Please suggest.
>>
>> Regards,
>> Lalit.
>>
>
>


-- 
Regards,
Lalit.

Re: Couldn't encrypt: null error in CMIS Job

Posted by Karl Wright <da...@gmail.com>.
Hi Lalit,

CMIS is returning a null document identifier during seeding.  What
repository are you connecting to here?

Karl



On Mon, Sep 8, 2014 at 7:51 AM, lalit jangra <la...@gmail.com>
wrote:

> Hi,
>
> I am using MCF 1.5.1 and connecting to alfresco 4.2.2 using CMIS
> connector. For alfresco job, i am passing below query as parameter.
>
> SELECT cmis:name FROM cmis:document WHERE
> CONTAINS('PATH:/app:company_home/st:sites/cm:am/cm:documentLibrary//*') AND
> cmis:createdBy NOT like '%System%' AND cmis:contentStreamLength > 0
>
> But when i am trying to restart this job, i get this error and job does
> not start.
>
> ERROR 2014-09-08 12:24:54,604 (Startup thread) - Exception tossed:
> Couldn't encrypt: null
>
> org.apache.manifoldcf.core.interfaces.ManifoldCFException: Couldn't
> encrypt: null
>
>         at
> org.apache.manifoldcf.core.system.ManifoldCF.addToHash(ManifoldCF.java:592)
>
>         at
> org.apache.manifoldcf.core.system.ManifoldCF.encrypt(ManifoldCF.java:647)
>
>         at
> org.apache.manifoldcf.core.system.ManifoldCF.hash(ManifoldCF.java:562)
>
>         at
> org.apache.manifoldcf.crawler.system.SeedingActivity.addSeedDocument(SeedingActivity.java:101)
>
>         at
> org.apache.manifoldcf.crawler.system.SeedingActivity.addSeedDocument(SeedingActivity.java:126)
>
>         at
> org.apache.manifoldcf.crawler.connectors.cmis.CmisRepositoryConnector.addSeedDocuments(CmisRepositoryConnector.java:761)
>
>         at
> org.apache.manifoldcf.crawler.system.StartupThread.run(StartupThread.java:153)
>
> Caused by: java.lang.NullPointerException
>
>         at
> org.apache.manifoldcf.core.system.ManifoldCF.addToHash(ManifoldCF.java:587)
>
>         ... 6 more
>
> Please suggest.
>
> Regards,
> Lalit.
>