Thanks Karl for the patch!!!

A minor correction is required on the patch https://issues.apache.org/jira/secure/attachment/12877287/CONNECTORS-1444-2.patch(file:DCTM.java)
else if (dfe.getType() != DocumentumException.TYPE_CORRUPTEDDOCUMENT)
need to be modified to
else if (dfe.getType() == DocumentumException.TYPE_CORRUPTEDDOCUMENT)

After the change its working fine.

Also the observation is these errors(DM_PLATFORM_E_INTEGER_CONVERSION_ERROR and DM_OBJECT_E_LOAD_INVALID_STRING_LEN) are emitted from the org.apache.manifoldcf.crawler.common.DCTM.DocumentumImpl.getObjectByQualification method call. So all the changes on https://issues.apache.org/jira/secure/attachment/12877287/CONNECTORS-1444-2.patch and DocumentumException.java<https://issues.apache.org/jira/secure/attachment/12877287/CONNECTORS-1444-2.patch%20and%20DocumentumException.java> file change on https://issues.apache.org/jira/secure/attachment/12877277/CONNECTORS-1444.patch should be sufficient.

Regards,
Tamizh Kumaran Thamizharasan

From: Karl Wright [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 14, 2017 5:41 PM
To: [EMAIL PROTECTED]
Cc: Sharnel Merdeck Pereira; Sundarapandian Arumaidurai Vethasigamani
Subject: Re: Documentum job stops on error

Ok, I've attached and committed an additional patch.  Please let me know.

Karl
On Fri, Jul 14, 2017 at 7:54 AM, Tamizh Kumaran Thamizharasan <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:
Hi Karl,

The patch provided is not working since the error is thrown from org.apache.manifoldcf.crawler.common.DCTM.DocumentumImpl.getObjectByQualification

return new DocumentumObjectImpl(objIDfSession,objIDfSession.getObjectByQualification(dql));

Error log as follows:

DfException:: THREAD: RMI TCP Connection(1083)-127.0.0.1; MSG: [DM_OBJECT_E_LOAD_INVALID_STRING_LEN]error:  "Error loading object: invalid string length 0 found in input stream"; ERRORCODE: 100; NEXT: null
        at com.documentum.fc.client.impl.docbase.DocbaseExceptionMapper.newException(DocbaseExceptionMapper.java:57)
        at com.documentum.fc.client.impl.connection.docbase.MessageEntry.getException(MessageEntry.java:39)
        at com.documentum.fc.client.impl.connection.docbase.DocbaseMessageManager.getException(DocbaseMessageManager.java:137)
        at com.documentum.fc.client.impl.connection.docbase.netwise.NetwiseDocbaseRpcClient.checkForMessages(NetwiseDocbaseRpcClient.java:310)
        at com.documentum.fc.client.impl.connection.docbase.netwise.NetwiseDocbaseRpcClient.applyForObject(NetwiseDocbaseRpcClient.java:653)
        at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection$8.evaluate(DocbaseConnection.java:1370)
        at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.evaluateRpc(DocbaseConnection.java:1129)
        at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.applyForObject(DocbaseConnection.java:1362)
        at com.documentum.fc.client.impl.docbase.DocbaseApi.parameterizedFetch(DocbaseApi.java:107)
        at com.documentum.fc.client.impl.objectmanager.PersistentDataManager.fetchFromServer(PersistentDataManager.java:191)
        at com.documentum.fc.client.impl.objectmanager.PersistentDataManager.getData(PersistentDataManager.java:82)
        at com.documentum.fc.client.impl.objectmanager.PersistentObjectManager.getObjectFromServer(PersistentObjectManager.java:355)
        at com.documentum.fc.client.impl.objectmanager.PersistentObjectManager.getObject(PersistentObjectManager.java:311)
        at com.documentum.fc.client.impl.session.Session.getObject(Session.java:958)
        at com.documentum.fc.client.impl.session.Session.getObjectByQualificationEx(Session.java:1139)
        at com.documentum.fc.client.impl.session.Session.getObjectByQualification(Session.java:1117)
        at com.documentum.fc.client.impl.session.SessionHandle.getObjectByQualification(SessionHandle.java:755)
        at org.apache.manifoldcf.crawler.common.DCTM.DocumentumImpl.getObjectByQualification(DocumentumImpl.java:334)
        at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:346)
        at sun.rmi.transport.Transport$1.run(Transport.java:200)
        at sun.rmi.transport.Transport$1.run(Transport.java:197)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

Regards,
Tamizh Kumaran Thamizharasan

From: Karl Wright [mailto:[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>]
Sent: Friday, July 14, 2017 4:32 PM

To: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
Cc: Sharnel Merdeck Pereira; Sundarapandian Arumaidurai Vethasigamani
Subject: Re: Documentum job stops on error

I have created a ticket (CONNECTORS-1444) to track this issue, and attached a fix.  I've also committed the fix to trunk.

The fix is not the code change you have done, but instead introduces a new kind of DocumentumException: CORRUPTEDDOCUMENT.  This will be thrown whenever permanent document corruption is detected, and will cause the document to be skipped and
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB