Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-21572

Fix missing mail template to notify import result by mail

    XMLWordPrintable

    Details

      Description

      It is in nuxeo-csv-jsf and the core can't access it when JSF UI is not installed.

      Stacktrace is:

      17:45:03,124 ERROR [AbstractWork] Exception during work: CSVImporterWork(, Progress(?%, ?/0), Sending email)
      java.lang.RuntimeException: org.nuxeo.ecm.automation.OperationException: Failed to inject parameter 'message'. Seems it is missing from the context. Operation: Document.Mail
      	at org.nuxeo.common.utils.ExceptionUtils.runtimeException(ExceptionUtils.java:128)
      	at org.nuxeo.ecm.csv.core.CSVImporterWork.sendMail(CSVImporterWork.java:639)
      	at org.nuxeo.ecm.csv.core.CSVImporterWork.work(CSVImporterWork.java:241)
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:410)
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransactionAndCheckExceptions(AbstractWork.java:371)
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:332)
      	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57)
      	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)
      Caused by: org.nuxeo.ecm.automation.OperationException: Failed to inject parameter 'message'. Seems it is missing from the context. Operation: Document.Mail
      	at org.nuxeo.ecm.automation.core.impl.OperationTypeImpl.inject(OperationTypeImpl.java:271)
      	at org.nuxeo.ecm.automation.core.impl.OperationTypeImpl.newInstance(OperationTypeImpl.java:228)
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:162)
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:178)
      	at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:168)
      	at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.invoke(OperationChainCompiler.java:194)
      	at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.doRun(OperationServiceImpl.java:125)
      	at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:116)
      	at org.nuxeo.ecm.csv.core.CSVImporterWork.sendMail(CSVImporterWork.java:632)
      	... 8 more
      17:45:03,142 ERROR [WorkManagerImpl] Uncaught error on thread Nuxeo-Work-csvImporter-1
      java.lang.RuntimeException: org.nuxeo.ecm.automation.OperationException: Failed to inject parameter 'message'. Seems it is missing from the context. Operation: Document.Mail
      	at org.nuxeo.common.utils.ExceptionUtils.runtimeException(ExceptionUtils.java:128)
      	at org.nuxeo.ecm.csv.core.CSVImporterWork.sendMail(CSVImporterWork.java:639)
      	at org.nuxeo.ecm.csv.core.CSVImporterWork.work(CSVImporterWork.java:241)
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:410)
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransactionAndCheckExceptions(AbstractWork.java:371)
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:332)
      	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57)
      	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)
      Caused by: org.nuxeo.ecm.automation.OperationException: Failed to inject parameter 'message'. Seems it is missing from the context. Operation: Document.Mail
      	at org.nuxeo.ecm.automation.core.impl.OperationTypeImpl.inject(OperationTypeImpl.java:271)
      	at org.nuxeo.ecm.automation.core.impl.OperationTypeImpl.newInstance(OperationTypeImpl.java:228)
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:162)
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:178)
      	at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:168)
      	at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.invoke(OperationChainCompiler.java:194)
      	at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.doRun(OperationServiceImpl.java:125)
      	at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:116)
      	at org.nuxeo.ecm.csv.core.CSVImporterWork.sendMail(CSVImporterWork.java:632)
      	... 8 more
      
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: