Uploaded image for project: 'Jahia Community'
  1. Jahia Community
  2. JAHIA-960

Erreur pour l'envoi de mail avec les workflows N-step

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • WCM 5.0
    • None
    • Windows - Postgresql - jahia5.0.0_CVS_r13907

    Description

      Lorsque je workflote avec un workflow N step, j'ai l'erreur suivante dans la log et je ne reçois aucun mail.

      Test réalisé sous Corporate Portal.

      1852203 [2006-04-13 15:56:34,812] [org.jahia.bin.Jahia] INFO - Processed [/jahia/Jahia/engineName/workflow/op/edit/pid/37]
      user=[u1] ip=[127.0.0.1] in [687ms]
      1853484 [2006-04-13 15:56:36,093] [org.jahia.services.scheduler.BackgroundJob] INFO - execute Background job BackgroundJob-
      8a5e669d-4630-474a-86b1-e9a80cacbf5b
      started @ Thu Apr 13 15:56:36 CEST 2006
      1854359 [2006-04-13 15:56:36,968] [org.jahia.services.mail.MailServiceImpl] WARN - Couldn't send message
      org.springframework.mail.MailPreparationException: Could not prepare mail: startup failed, Script1.groovy: 1: expecting EOF,
      found '$' @ line 1, column 18.
      1 Error
      ; nested exception is org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script1.groovy: 1: exp
      ecting EOF, found '$' @ line 1, column 18.
      1 Error

      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script1.groovy: 1: expecting EOF, found '$'
      @ line 1, column 18.
      1 Error

      at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:325)
      at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:173)
      at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:143)
      at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:155)
      at org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:379)
      at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:87)
      at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:276)
      at org.codehaus.groovy.control.CompilationUnit$3.call(CompilationUnit.java:526)
      at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:861)
      at org.codehaus.groovy.control.CompilationUnit.parse(CompilationUnit.java:513)
      at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:441)
      at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:300)
      at groovy.lang.GroovyShell.parseClass(GroovyShell.java:555)
      at groovy.lang.GroovyShell.parse(GroovyShell.java:567)
      at groovy.lang.GroovyShell.parse(GroovyShell.java:542)
      at groovy.lang.GroovyShell.evaluate(GroovyShell.java:520)
      at groovy.lang.GroovyShell.evaluate(GroovyShell.java:496)
      at groovy.lang.Script.evaluate(Script.java:198)
      at gjdk.nstep_workflow_mailnotif_GroovyReflector.invoke(Unknown Source)
      at groovy.lang.MetaMethod.invoke(MetaMethod.java:111)
      at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:636)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:345)
      at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:156)
      at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104)
      at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(ScriptBytecodeAdapter.java:85)
      at nstep_workflow_mailnotif.run(nstep_workflow_mailnotif.groovy:5)
      at groovy.util.GroovyScriptEngine.run(GroovyScriptEngine.java:428)
      at org.jahia.services.mail.GroovyMimeMessagePreparator.prepare(GroovyMimeMessagePreparator.java:34)
      at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:338)
      at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:330)
      at org.jahia.services.mail.MailServiceImpl.sendTemplateMessage(MailServiceImpl.java:198)
      at org.jahia.services.mail.MailServiceImpl$$FastClassByCGLIB$$10d0328.invoke(<generated>)
      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:661)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:57)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:
      546)
      at org.jahia.services.mail.MailServiceImpl$$EnhancerByCGLIB$$6c64f1d9.sendTemplateMessage(<generated>)
      at org.jahia.workflow.nstep.NStepWorkflow.sendResults(NStepWorkflow.java:608)
      at org.jahia.services.workflow.ActivationJob.executeJahiaJob(ActivationJob.java:97)
      at org.jahia.services.scheduler.BackgroundJob.execute(BackgroundJob.java:101)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      1854391 [2006-04-13 15:56:37,000] [org.jahia.services.scheduler.BackgroundJob] INFO - Background job (of type workflow) end
      ed with status successful executed in 0s
      1861766 [2006-04-13 15:56:44,375] [org.jahia.bin.Jahia] INFO - Processed [/jahia/Jahia/op/edit/pid/37] user=[u1] ip=[127.0.
      0.1] in [3657ms]
      1864984 [2006-04-13 15:56:47,593] [org.jahia.bin.Jahia] INFO - Processed [/jahia/Jahia/engineName/logout/op/edit/pid/37] us
      er=[guest] ip=[127.0.0.1] in [547ms]
      1866219 [2006-04-13 15:56:48,828] [org.jahia.bin.Jahia] INFO - Processed [/jahia/Jahia/engineName/login/pid/37] user=[guest
      ] ip=[127.0.0.1] in [0ms]
      1869687 [2006-04-13 15:56:52,296] [org.jahia.bin.Jahia] INFO - Processed [/jahia/Jahia/engineName/login/pid/37] user=[u2] i
      p=[127.0.0.1] in [46ms]
      1870453 [2006-04-13 15:56:53,062] [org.jahia.bin.Jahia] INFO - Processed [/jahia/Jahia/pid/37] user=[u2] ip=[127.0.0.1] in
      [422ms]

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                cedmail_old Cédric Mailleux (Inactive)
                xfetizon Xavier Fétizon
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases

                      Packages

                        Version Package