<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error getting a templated email containing @extends to send. in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/error-getting-a-templated-email-containing-extends-to-send/m-p/321282#M8283</link>
    <description>&lt;P&gt;I guess it's because the &amp;lt;@extends&amp;gt; directive is not available in the ftl rendering engine of the notification service. It will only work in a WebEngine ftl rendering engine.&lt;/P&gt;</description>
    <pubDate>Thu, 24 May 2012 18:57:46 GMT</pubDate>
    <dc:creator>Laurent_Doguin</dc:creator>
    <dc:date>2012-05-24T18:57:46Z</dc:date>
    <item>
      <title>Error getting a templated email containing @extends to send.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/error-getting-a-templated-email-containing-extends-to-send/m-p/321279#M8280</link>
      <description>&lt;P&gt;Essentially, when I make a base template for emails and I try to extend it using &amp;lt;@extends...&amp;gt;, I get the following error when Nuxeo should send email :&lt;/P&gt;
&lt;PRE&gt;10:56:25,864 ERROR [runtime] 

on line 1, column 1 in modif extends not found.
The problematic instruction:
----------
==&amp;gt; user-directive extends [on line 1, column 1 in modif]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: on line 1, column 1 in modif extends not found.
	at freemarker.core.UnifiedCall.accept(UnifiedCall.java:134)
	at freemarker.core.Environment.visit(Environment.java:208)
	at freemarker.core.Environment.process(Environment.java:188)
	at freemarker.template.Template.process(Template.java:232)
	at org.nuxeo.ecm.platform.rendering.template.FreemarkerRenderingEngine.process(FreemarkerRenderingEngine.java:62)
	at org.nuxeo.ecm.platform.rendering.impl.RenderingServiceImpl.process(RenderingServiceImpl.java:91)
	at org.nuxeo.ecm.platform.ec.notification.email.EmailHelper.sendmail(EmailHelper.java:150)
	at org.nuxeo.ecm.platform.ec.notification.NotificationEventListener.sendNotification(NotificationEventListener.java:303)
	at org.nuxeo.ecm.platform.ec.notification.NotificationEventListener.sendNotificationSignalForUser(NotificationEventListener.java:226)
	at org.nuxeo.ecm.platform.ec.notification.NotificationEventListener.handleNotifications(NotificationEventListener.java:128)
	at org.nuxeo.ecm.platform.ec.notification.NotificationEventListener.handleEvent(NotificationEventListener.java:92)
	at org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$Job.run(AsyncEventExecutor.java:159)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:679)
10:56:25,864 ERROR [NotificationEventListener] An error occurred while trying to send user notification
org.nuxeo.ecm.core.api.ClientException: Failed to send notification email 
	at org.nuxeo.ecm.platform.ec.notification.NotificationEventListener.sendNotification(NotificationEventListener.java:308)
	at org.nuxeo.ecm.platform.ec.notification.NotificationEventListener.sendNotificationSignalForUser(NotificationEventListener.java:226)
	at org.nuxeo.ecm.platform.ec.notification.NotificationEventListener.handleNotifications(NotificationEventListener.java:128)
	at org.nuxeo.ecm.platform.ec.notification.NotificationEventListener.handleEvent(NotificationEventListener.java:92)
	at org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$Job.run(AsyncEventExecutor.java:159)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:679)
Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: org.nuxeo.ecm.platform.rendering.RenderingException. message: Freemarker processing failed
	at org.nuxeo.ecm.platform.rendering.template.FreemarkerRenderingEngine.process(FreemarkerRenderingEngine.java:68)
	at org.nuxeo.ecm.platform.rendering.impl.RenderingServiceImpl.process(RenderingServiceImpl.java:91)
	at org.nuxeo.ecm.platform.ec.notification.email.EmailHelper.sendmail(EmailHelper.java:150)
	at org.nuxeo.ecm.platform.ec.notification.NotificationEventListener.sendNotification(NotificationEventListener.java:303)
	... 7 more
Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: freemarker.core.InvalidReferenceException. message: on line 1, column 1 in modif extends not found.
	at freemarker.core.UnifiedCall.accept(UnifiedCall.java:134)
	at freemarker.core.Environment.visit(Environment.java:208)
	at freemarker.core.Environment.process(Environment.java:188)
	at freemarker.template.Template.process(Template.java:232)
	at org.nuxeo.ecm.platform.rendering.template.FreemarkerRenderingEngine.process(FreemarkerRenderingEngine.java:62)
	... 10 more
&lt;/PRE&gt;
&lt;P&gt;I've read that this seems to be that it can't find the file I'm referring to, which is in the same directory.&lt;/P&gt;
&lt;P&gt;I then tried to deploy it to nxserver/nuxeo.war/skin/, which also fails with the same error.&lt;/P&gt;
&lt;P&gt;Is it really a file location issue?&lt;/P&gt;
&lt;P&gt;To me it sounds like a parser error, as if it didn't know what to do with the @extends directive.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2012 19:21:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/error-getting-a-templated-email-containing-extends-to-send/m-p/321279#M8280</guid>
      <dc:creator>ycmorissette_</dc:creator>
      <dc:date>2012-05-23T19:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error getting a templated email containing @extends to send.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/error-getting-a-templated-email-containing-extends-to-send/m-p/321280#M8281</link>
      <description>&lt;P&gt;How does your mail template look like ?&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2012 11:21:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/error-getting-a-templated-email-containing-extends-to-send/m-p/321280#M8281</guid>
      <dc:creator>Sun_Seng_David_</dc:creator>
      <dc:date>2012-05-24T11:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error getting a templated email containing @extends to send.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/error-getting-a-templated-email-containing-extends-to-send/m-p/321281#M8282</link>
      <description>&lt;P&gt;baseNotificationTemplate.ftl&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2012 17:50:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/error-getting-a-templated-email-containing-extends-to-send/m-p/321281#M8282</guid>
      <dc:creator>ycmorissette_</dc:creator>
      <dc:date>2012-05-24T17:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error getting a templated email containing @extends to send.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/error-getting-a-templated-email-containing-extends-to-send/m-p/321282#M8283</link>
      <description>&lt;P&gt;I guess it's because the &amp;lt;@extends&amp;gt; directive is not available in the ftl rendering engine of the notification service. It will only work in a WebEngine ftl rendering engine.&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2012 18:57:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/error-getting-a-templated-email-containing-extends-to-send/m-p/321282#M8283</guid>
      <dc:creator>Laurent_Doguin</dc:creator>
      <dc:date>2012-05-24T18:57:46Z</dc:date>
    </item>
  </channel>
</rss>

