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

Chack WAI: plus de warning dans les big texts engines - exception groovy pendant le workflow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • WCM 5.0
    • WCM 5.0
    • None
    • 15021 - 320

    Description

      Activé les checks de liens + WAI sur mon site.

      J'ai rajouté une table, des images, des liens internes ou externes dans mon big text. Il n'y a aucun warning WAI dans mon engine lors de la validation.

      Par contre si je lance le workflow sur la page il m'indique que mon tableau n'est pas complet alors qu'il aurait déjà dû me l'infiquer dans l'engine.

      Si je force la validation quand même, j'ai le droit à une erreur groovy:

      6809282 [2006-08-29 15:46:16,328] [org.jahia.bin.Jahia] INFO - Processed [/jahia/Jahia/engineName/workflow/site/demo/op/edit/pid/200] esi=[not cached] user=[
      root] ip=[127.0.0.1] in [16ms]
      6810469 [2006-08-29 15:46:17,515] [org.jahia.services.htmlparser.WAIValidator] INFO - validateTable
      6810469 [2006-08-29 15:46:17,515] [org.jahia.services.htmlparser.WAIValidator] INFO - validateImage
      6810469 [2006-08-29 15:46:17,515] [org.jahia.services.htmlparser.WAIValidator] INFO - validateLink
      6810469 [2006-08-29 15:46:17,515] [org.jahia.services.htmlparser.WAIValidator] INFO - validateImage
      6810469 [2006-08-29 15:46:17,515] [org.jahia.services.htmlparser.WAIValidator] INFO - validateImage
      6810469 [2006-08-29 15:46:17,515] [org.jahia.services.htmlparser.WAIValidator] INFO - validateLink
      6810563 [2006-08-29 15:46:17,609] [org.jahia.ajax.sitemap.SiteMapAbstractAction] INFO - Lock acquired for object ContentPage_200 by root
      6810610 [2006-08-29 15:46:17,656] [org.jahia.services.htmlparser.WAIValidator] INFO - validateLink
      6812672 [2006-08-29 15:46:19,718] [org.jahia.bin.Jahia] INFO - Processed [/jahia/Jahia/engineName/workflow/site/demo/op/edit/pid/200] esi=[not cached] user=[
      root] ip=[127.0.0.1] in [78ms]
      6812735 [2006-08-29 15:46:19,781] [org.jahia.services.scheduler.BackgroundJob] INFO - execute Background job BackgroundJob-900b6e9a-0487-4ebe-ae67-fe2a9e3918
      69
      started @ Tue Aug 29 15:46:19 CEST 2006
      6812782 [2006-08-29 15:46:19,828] [org.jahia.services.htmlparser.WAIValidator] INFO - validateTable
      6812782 [2006-08-29 15:46:19,828] [org.jahia.services.htmlparser.WAIValidator] INFO - validateImage
      6812782 [2006-08-29 15:46:19,828] [org.jahia.services.htmlparser.WAIValidator] INFO - validateLink
      6812782 [2006-08-29 15:46:19,828] [org.jahia.services.htmlparser.WAIValidator] INFO - validateImage
      6812797 [2006-08-29 15:46:19,843] [org.jahia.services.htmlparser.WAIValidator] INFO - validateImage
      6812797 [2006-08-29 15:46:19,843] [org.jahia.services.htmlparser.WAIValidator] INFO - validateLink
      6813266 [2006-08-29 15:46:20,312] [org.jahia.services.mail.MailServiceImpl] WARN - Couldn't send message
      org.springframework.mail.MailPreparationException: Could not prepare mail: startup failed, Script1.groovy: 2: unexpected token: – @ line 2, column 3.
      1 Error
      ; nested exception is org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script1.groovy: 2: unexpected token: – @ line 2, column
      3.
      1 Error

      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script1.groovy: 2: unexpected token: – @ line 2, column 3.
      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.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 workflow_mailnotif.run(workflow_mailnotif.groovy:105)
      at groovy.util.GroovyScriptEngine.run(GroovyScriptEngine.java:428)
      at org.jahia.services.mail.GroovyMimeMessagePreparator.prepare(GroovyMimeMessagePreparator.java:50)
      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:203)
      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.jahia.spring.aop.interceptor.SilentJamonPerformanceMonitorInterceptor.invokeUnderTrace(SilentJamonPerformanceMonitorInterceptor.java:43)
      at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:77)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:606)
      at org.jahia.services.mail.MailServiceImpl$$EnhancerByCGLIB$$572becc9.sendTemplateMessage(<generated>)
      at org.jahia.services.workflow.ActivationJob.sendMail(ActivationJob.java:396)
      at org.jahia.services.workflow.ActivationJob.executeJahiaJob(ActivationJob.java:118)
      at org.jahia.services.scheduler.BackgroundJob.execute(BackgroundJob.java:126)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      6813282 [2006-08-29 15:46:20,328] [org.jahia.services.scheduler.BackgroundJob] INFO - Background job (of type workflow) ended with status successful executed
      in 0s
      6813297 [2006-08-29 15:46:20,343] [org.jahia.services.scheduler.BackgroundJob] INFO - Initiating ESI SOAP invalidations due to finished Background job.
      6814750 [2006-08-29 15:46:21,796] [org.jahia.bin.Jahia] INFO - Processed [/jahia/Jahia/site/demo/pid/200] esi=[not cached] user=[GGRONLIER] ip=[127.0.0.1] in
      [1047ms]

      TestRail: Results

        Attachments

          Activity

            People

              cedmail_old Cédric Mailleux (Inactive)
              scroisier Stephane Croisier (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases

                    Packages

                      Version Package
                      WCM 5.0