Uploaded image for project: 'Crucible'
  1. Crucible
  2. CRUC-2619

FTL exception in email

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 2.1
    • None
    • None
    • None

    Description

      A sample email where the description is null

      CR-BAM-677 James Dumay says:-

      ID: CR-BAM-677 https://atlaseye.atlassian.com/cru/CR-BAM-677

      Title: Review cleanup for CR-BAM-656

      Statement of Objectives:

      Expression review.description is undefined on line 10, column 3 in review-precis-plain.ftl.
      The problematic instruction:
      ----------
      ==> ${review.description} [on line 10, column 1 in review-precis-plain.ftl]
      ----------

      Java backtrace for programmers:
      ----------
      freemarker.core.InvalidReferenceException: Expression review.description is undefined on line 10, column 3 in review-precis-plain.ftl.
      at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
      at freemarker.core.Expression.getStringValue(Expression.java:118)
      at freemarker.core.Expression.getStringValue(Expression.java:93)
      at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
      at freemarker.core.Environment.visit(Environment.java:196)
      at freemarker.core.MixedContent.accept(MixedContent.java:92)
      at freemarker.core.Environment.visit(Environment.java:196)
      at freemarker.core.Environment.process(Environment.java:176)
      at freemarker.template.Template.process(Template.java:231)
      at com.cenqua.crucible.model.Review.getPrecis(Review.java:1012)
      at sun.reflect.GeneratedMethodAccessor928.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
      at com.cenqua.crucible.model.Review$$EnhancerByCGLIB$$74864558.getPrecis(<generated>)
      at sun.reflect.GeneratedMethodAccessor927.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:583)
      at freemarker.ext.beans.BeanModel.invokeThroughDescriptor(BeanModel.java:252)
      at freemarker.ext.beans.BeanModel.get(BeanModel.java:177)
      at freemarker.core.Dot._getAsTemplateModel(Dot.java:76)
      at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
      at freemarker.core.Expression.getStringValue(Expression.java:93)
      at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
      at freemarker.core.Environment.visit(Environment.java:196)
      at freemarker.core.MixedContent.accept(MixedContent.java:92)
      at freemarker.core.Environment.visit(Environment.java:196)
      at freemarker.core.Environment.process(Environment.java:176)
      at freemarker.template.Template.process(Template.java:231)
      at com.cenqua.crucible.notification.Notification.makeEmailNote(Notification.java:256)
      at com.cenqua.crucible.notification.Notification.getEmailNote(Notification.java:85)
      at com.cenqua.crucible.notification.Recipient.processNotification(Recipient.java:142)
      at com.cenqua.crucible.notification.NotificationManager.processNotifications(NotificationManager.java:262)
      at com.atlassian.fisheye.quartz.CrucibleNotificationManagerJob.execute(CrucibleNotificationManagerJob.java:20)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

      Attachments

        Activity

          People

            Unassigned Unassigned
            mark@atlassian.com MarkC
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: