• Email import not working properly.

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #53755  by sajal
 
Hi,

I use openkm knowledge management ( open source ) version 6.3.9 (build:e57b626). Configured IMAPS for gmails via Tools>Preferences.
Gmails were being imported fine for first 4 or 5 users. Then the email import not working at all. The configuration test shows ok for all user. Please help.
 #53770  by jllort
 
Take a look at openkm.log file for some error. If some error is shown please share the stack trace of the error.
 #53780  by sajal
 
I have checked my openkm.log file.
Some error has appeared:
Code: Select all
2022-08-05 12:30:00,377 [Thread-4752] [] WARN  com.openkm.dao.NodeDocumentDAO - There was a problem extracting text from '/okm:mail/albert/inbox/2013/12/18/1378-Fwd: NEW FAX (7 pages) - 12-18-2013 at 01:04:01 PM MST - (916) 721-3633/fax-52731116.pdf': Too few text extracted
2022-08-05 12:30:00,406 [Thread-4752] [] INFO  c.o.extractor.TextExtractorWorker - processSerial.Working on {docUuid=d1acabee-9bf2-48d5-81ef-1ac15808bf08, docPath=/okm:mail/albert/inbox/2014/2/1/728-check by mail payments/Dwan Bryant .pdf, docVerUuid=a5e9b435-34c2-4d91-b4bf-d4d9b90e8e4c, date=Wed Aug 03 17:54:33 UTC 2022}
2022-08-05 12:30:00,442 [Thread-4752] [] INFO  c.o.extractor.TextExtractorWorker - processSerial.Working on {docUuid=d1b13893-7cf3-4c93-91fd-dc3aa0f2112b, docPath=/okm:mail/albert/inbox/2014/1/26/722-Check By Mail Payments/Jason Gordnoshnka.pdf, docVerUuid=88dc28e7-e1b0-40e4-9ec8-f0723df6d98a, date=Wed Aug 03 17:53:17 UTC 2022}
2022-08-05 12:30:00,498 [Thread-4752] [] INFO  c.o.extractor.TextExtractorWorker - processSerial.Working on {docUuid=d1bf5897-651a-4673-9bb3-0d4b8cda13c2, docPath=/okm:mail/albert/inbox/2014/2/18/1054-Check By Mail Payments/Suzanne Pummill.pdf, docVerUuid=3f77a3f7-925e-42b5-9638-15280e38e890, date=Wed Aug 03 18:03:21 UTC 2022}
2022-08-05 12:30:00,531 [Thread-4752] [] INFO  c.o.extractor.TextExtractorWorker - processSerial.Working on {docUuid=d1c9f6bb-5caa-43e9-8038-8bf2f2190520, docPath=/okm:mail/albert/inbox/2013/12/21/2161-Check By Mail Payments/Hiran Ranasinghe1.pdf, docVerUuid=1757bad3-47b5-4ad8-aadb-3477fa233578, date=Wed Aug 03 19:29:10 UTC 2022}
2022-08-05 12:30:00,564 [Thread-4752] [] INFO  c.o.extractor.TextExtractorWorker - processSerial.Working on {docUuid=d1cf9a1d-7a69-4abb-9119-32343555ca51, docPath=/okm:mail/albert/inbox/2013/12/21/2161-Check By Mail Payments/Deshundra Chaney.pdf, docVerUuid=1eaee83b-6f4a-488f-881b-39328763cc6c, date=Wed Aug 03 19:29:05 UTC 2022}
2022-08-05 12:30:00,598 [Thread-4752] [] INFO  c.o.extractor.TextExtractorWorker - processSerial.Working on {docUuid=d1d6fc77-49d5-4a58-91ae-5971f9e9c912, docPath=/okm:mail/albert/inbox/2014/3/1/2158-Check By Mail Payments/Juan Maldonado.pdf, docVerUuid=c089eeab-006b-430a-93b9-02d8f627cdc4, date=Wed Aug 03 19:26:41 UTC 2022}
2022-08-05 12:30:01,201 [Thread-4751] [] INFO  com.openkm.util.MailUtils - ======= ======= 0 ======= =======
2022-08-05 12:30:01,201 [Thread-4751] [] INFO  com.openkm.util.MailUtils - Folder: inbox
2022-08-05 12:30:01,454 [Thread-4751] [] INFO  com.openkm.util.MailUtils - Subject: null
2022-08-05 12:30:01,454 [Thread-4751] [] INFO  com.openkm.util.MailUtils - From: Catherine Gilbert <cathygilbertc@yahoo.com>
2022-08-05 12:30:01,454 [Thread-4751] [] INFO  com.openkm.util.MailUtils - Received: Tue Jul 26 10:40:13 UTC 2011
2022-08-05 12:30:01,454 [Thread-4751] [] INFO  com.openkm.util.MailUtils - Sent: Tue Jul 26 10:40:13 UTC 2011
2022-08-05 12:30:01,906 [Thread-4751] [] WARN  com.openkm.util.MailUtils - null
java.lang.NullPointerException: null
2022-08-05 12:30:01,907 [Thread-4751] [] WARN  com.openkm.core.Cron - Error executing crontab task 'User Mail Importer': bsh.TargetError: Sourced file: inline evaluation of: ``new com.openkm.core.UserMailImporter().run();'' : Method Invocation run : at Line: 1 : in file: inline evaluation of: ``new com.openkm.core.UserMailImporter().run();'' : .run ( ) 

Target exception: java.lang.NullPointerException

2022-08-05 12:30:01,909 [Thread-4751] [] WARN  com.openkm.core.Cron - Error sending mail: Sourced file: inline evaluation of: ``new com.openkm.core.UserMailImporter().run();'' : Method Invocation run : at Line: 1 : in file: inline evaluation of: ``new com.openkm.core.UserMailImporter().run();'' : .run ( ) 

Target exception: java.lang.NullPointerException

2022-08-05 12:35:00,178 [Thread-4756] [] INFO  c.o.extractor.TextExtractorWorker - processSerial.Working on {docUuid=d2008877-9a62-429b-ac7f-62abb41ab87f, docPath=/okm:mail/albert/inbox/2013/8/24/4556-Check By Mail Payments.../Dawn Foti.pdf, docVerUuid=eff93e1c-df8d-4791-b5ce-cecf06df6047, date=Wed Aug 03 21:24:08 UTC 2022}
 #53793  by jllort
 
Seems the email do not comes with subject ( at least is shown null where expected some value ). Can export the email as eml or msg and share here for testing in our development servers?

What OpenKM version are you using ( if you are not using version 6.3.11 I suggest upgrade to this version because some bugs importing emails have been solved there https://docs.openkm.com/kcenter/view/ok ... -6311.html )

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.