Re: customer registration email problem - r778358

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: customer registration email problem - r778358

Rees Watkins
Hello

Yes -  my store is setup exactly like the demo store. I get emails when a product is purchased and for "forgot password" etc.

Registration email template is specified like this in demo store and my store:
component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification

The registration email is generated by a call to "sendGenericNotificationEmail" in CustomerEvents.xml which eventually ends up in prepareNotification NotificationServices.java which attempts to resolve the email template using  

URL templateUrl = UtilURL.fromResource(templateName);

All other email templates are resolved using a ComponentLocationResolver.

I believe this is why the emails are not generated and why I get the error message below. I have spend some time on this and have made no progress. Any ideas would be fantastic.

Cheers
Rees




________________________________
From: BJ Freeman <[hidden email]>
To: [hidden email]
Sent: Thursday, 18 June, 2009 15:41:43
Subject: Re: customer registration email problem

do you have the emails defined in the productstore>emails


Rees Watkins sent the following on 6/18/2009 2:38 AM:

> Hi
>
> I am unable to get ofbiz to send an email on customer registration on my ecommerce site. I get the error below. It does not seem to be able to find the email template; even though it is in the location specified. I have set the store emails up using the demo site as a guide. I have tried to register as a customer on the ofbiz demo ecommerce site, but I do not get a registration confirmation email either. Any help will be gratefully received.
>
> Kind regards
> Rees
>
> Problem getting the template URL: component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification not found
> prepareNotification failed: Problem finding template; see logs
> Invalid email body; null is not allowed
> Error in Service [sendGenericNotificationEmail]: Invalid email body; null is not allowed
>
>
>      

--
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com
http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
Systems Integrator.


Reply | Threaded
Open this post in threaded view
|

Re: customer registration email problem - r778358

Adrian Crum
Rees,

If you patch your local copy to use FlexibleLocation instead of UtilURL
and it solves the problem, then please create a Jira issue and supply a
patch so we can get it fixed.

-Adrian

Rees Watkins wrote:

> Hello
>
> Yes -  my store is setup exactly like the demo store. I get emails when a product is purchased and for "forgot password" etc.
>
> Registration email template is specified like this in demo store and my store:
> component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification
>
> The registration email is generated by a call to "sendGenericNotificationEmail" in CustomerEvents.xml which eventually ends up in prepareNotification NotificationServices.java which attempts to resolve the email template using  
>
> URL templateUrl = UtilURL.fromResource(templateName);
>
> All other email templates are resolved using a ComponentLocationResolver.
>
> I believe this is why the emails are not generated and why I get the error message below. I have spend some time on this and have made no progress. Any ideas would be fantastic.
>
> Cheers
> Rees
>
>
>
>
> ________________________________
> From: BJ Freeman <[hidden email]>
> To: [hidden email]
> Sent: Thursday, 18 June, 2009 15:41:43
> Subject: Re: customer registration email problem
>
> do you have the emails defined in the productstore>emails
>
>
> Rees Watkins sent the following on 6/18/2009 2:38 AM:
>> Hi
>>
>> I am unable to get ofbiz to send an email on customer registration on my ecommerce site. I get the error below. It does not seem to be able to find the email template; even though it is in the location specified. I have set the store emails up using the demo site as a guide. I have tried to register as a customer on the ofbiz demo ecommerce site, but I do not get a registration confirmation email either. Any help will be gratefully received.
>>
>> Kind regards
>> Rees
>>
>> Problem getting the template URL: component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification not found
>> prepareNotification failed: Problem finding template; see logs
>> Invalid email body; null is not allowed
>> Error in Service [sendGenericNotificationEmail]: Invalid email body; null is not allowed
>>
>>
>>      
>
Reply | Threaded
Open this post in threaded view
|

Re: customer registration email problem - r778358

Rees Watkins
Hi

Currently it uses this pattern

            FreeMarkerWorker.renderTemplate(templateUrl.toExternalForm(), templateData, writer);

Should it follow the pattern in  sendMailFromScreen and use the pattern

        ScreenRenderer screens = new ScreenRenderer(bodyWriter, screenContext, htmlScreenRenderer);
    ......
        screens.render(bodyScreenUri);

Thanks
Rees




________________________________
From: Adrian Crum <[hidden email]>
To: [hidden email]
Sent: Thursday, 18 June, 2009 17:09:21
Subject: Re: customer registration email problem - r778358

Rees,

If you patch your local copy to use FlexibleLocation instead of UtilURL and it solves the problem, then please create a Jira issue and supply a patch so we can get it fixed.

-Adrian

Rees Watkins wrote:

> Hello
>
> Yes -  my store is setup exactly like the demo store. I get emails when a product is purchased and for "forgot password" etc.
>
> Registration email template is specified like this in demo store and my store:
> component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification
>
> The registration email is generated by a call to "sendGenericNotificationEmail" in CustomerEvents.xml which eventually ends up in prepareNotification NotificationServices.java which attempts to resolve the email template using  
> URL templateUrl = UtilURL.fromResource(templateName);
>
> All other email templates are resolved using a ComponentLocationResolver.
> I believe this is why the emails are not generated and why I get the error message below. I have spend some time on this and have made no progress. Any ideas would be fantastic.
>
> Cheers
> Rees
>
>
>
>
> ________________________________
> From: BJ Freeman <[hidden email]>
> To: [hidden email]
> Sent: Thursday, 18 June, 2009 15:41:43
> Subject: Re: customer registration email problem
>
> do you have the emails defined in the productstore>emails
>
>
> Rees Watkins sent the following on 6/18/2009 2:38 AM:
>> Hi
>>
>> I am unable to get ofbiz to send an email on customer registration on my ecommerce site. I get the error below. It does not seem to be able to find the email template; even though it is in the location specified. I have set the store emails up using the demo site as a guide. I have tried to register as a customer on the ofbiz demo ecommerce site, but I do not get a registration confirmation email either. Any help will be gratefully received.
>>
>> Kind regards
>> Rees
>>
>> Problem getting the template URL: component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification not found
>> prepareNotification failed: Problem finding template; see logs
>> Invalid email body; null is not allowed
>> Error in Service [sendGenericNotificationEmail]: Invalid email body; null is not allowed
>>
>>
>>      
>



Reply | Threaded
Open this post in threaded view
|

Re: customer registration email problem - r778358

BJ Freeman
In reply to this post by Adrian Crum
as Adrian suggested contribute a patch
here is how:
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices
welcome to the community

Rees Watkins sent the following on 6/18/2009 9:33 AM:

> Hi
>
> Currently it uses this pattern
>
>             FreeMarkerWorker.renderTemplate(templateUrl.toExternalForm(), templateData, writer);
>
> Should it follow the pattern in  sendMailFromScreen and use the pattern
>
>         ScreenRenderer screens = new ScreenRenderer(bodyWriter, screenContext, htmlScreenRenderer);
>     ......
>         screens.render(bodyScreenUri);
>
> Thanks
> Rees
>
>
>
>
> ________________________________
> From: Adrian Crum <[hidden email]>
> To: [hidden email]
> Sent: Thursday, 18 June, 2009 17:09:21
> Subject: Re: customer registration email problem - r778358
>
> Rees,
>
> If you patch your local copy to use FlexibleLocation instead of UtilURL and it solves the problem, then please create a Jira issue and supply a patch so we can get it fixed.
>
> -Adrian
>
> Rees Watkins wrote:
>> Hello
>>
>> Yes -  my store is setup exactly like the demo store. I get emails when a product is purchased and for "forgot password" etc.
>>
>> Registration email template is specified like this in demo store and my store:
>> component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification
>>
>> The registration email is generated by a call to "sendGenericNotificationEmail" in CustomerEvents.xml which eventually ends up in prepareNotification NotificationServices.java which attempts to resolve the email template using  
>> URL templateUrl = UtilURL.fromResource(templateName);
>>
>> All other email templates are resolved using a ComponentLocationResolver.
>> I believe this is why the emails are not generated and why I get the error message below. I have spend some time on this and have made no progress. Any ideas would be fantastic.
>>
>> Cheers
>> Rees
>>
>>
>>
>>
>> ________________________________
>> From: BJ Freeman <[hidden email]>
>> To: [hidden email]
>> Sent: Thursday, 18 June, 2009 15:41:43
>> Subject: Re: customer registration email problem
>>
>> do you have the emails defined in the productstore>emails
>>
>>
>> Rees Watkins sent the following on 6/18/2009 2:38 AM:
>>> Hi
>>>
>>> I am unable to get ofbiz to send an email on customer registration on my ecommerce site. I get the error below. It does not seem to be able to find the email template; even though it is in the location specified. I have set the store emails up using the demo site as a guide. I have tried to register as a customer on the ofbiz demo ecommerce site, but I do not get a registration confirmation email either. Any help will be gratefully received.
>>>
>>> Kind regards
>>> Rees
>>>
>>> Problem getting the template URL: component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification not found
>>> prepareNotification failed: Problem finding template; see logs
>>> Invalid email body; null is not allowed
>>> Error in Service [sendGenericNotificationEmail]: Invalid email body; null is not allowed
>>>
>>>
>>>      
>
>
>
>      

--
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com
http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
Systems Integrator.

Reply | Threaded
Open this post in threaded view
|

Re: customer registration email problem - r778358

Rees Watkins
Hi

I have created issue OFBIZ-2631

I am afraid I am unable to fix this as this problem.

Regards
Rees



________________________________
From: BJ Freeman <[hidden email]>
To: [hidden email]
Sent: Thursday, 18 June, 2009 21:02:51
Subject: Re: customer registration email problem - r778358

as Adrian suggested contribute a patch
here is how:
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices
welcome to the community

Rees Watkins sent the following on 6/18/2009 9:33 AM:

> Hi
>
> Currently it uses this pattern
>
>             FreeMarkerWorker.renderTemplate(templateUrl.toExternalForm(), templateData, writer);
>
> Should it follow the pattern in  sendMailFromScreen and use the pattern
>
>         ScreenRenderer screens = new ScreenRenderer(bodyWriter, screenContext, htmlScreenRenderer);
>     ......
>         screens.render(bodyScreenUri);
>
> Thanks
> Rees
>
>
>
>
> ________________________________
> From: Adrian Crum <[hidden email]>
> To: [hidden email]
> Sent: Thursday, 18 June, 2009 17:09:21
> Subject: Re: customer registration email problem - r778358
>
> Rees,
>
> If you patch your local copy to use FlexibleLocation instead of UtilURL and it solves the problem, then please create a Jira issue and supply a patch so we can get it fixed.
>
> -Adrian
>
> Rees Watkins wrote:
>> Hello
>>
>> Yes -  my store is setup exactly like the demo store. I get emails when a product is purchased and for "forgot password" etc.
>>
>> Registration email template is specified like this in demo store and my store:
>> component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification
>>
>> The registration email is generated by a call to "sendGenericNotificationEmail" in CustomerEvents.xml which eventually ends up in prepareNotification NotificationServices.java which attempts to resolve the email template using  
>> URL templateUrl = UtilURL.fromResource(templateName);
>>
>> All other email templates are resolved using a ComponentLocationResolver.
>> I believe this is why the emails are not generated and why I get the error message below. I have spend some time on this and have made no progress. Any ideas would be fantastic.
>>
>> Cheers
>> Rees
>>
>>
>>
>>
>> ________________________________
>> From: BJ Freeman <[hidden email]>
>> To: [hidden email]
>> Sent: Thursday, 18 June, 2009 15:41:43
>> Subject: Re: customer registration email problem
>>
>> do you have the emails defined in the productstore>emails
>>
>>
>> Rees Watkins sent the following on 6/18/2009 2:38 AM:
>>> Hi
>>>
>>> I am unable to get ofbiz to send an email on customer registration on my ecommerce site. I get the error below. It does not seem to be able to find the email template; even though it is in the location specified. I have set the store emails up using the demo site as a guide. I have tried to register as a customer on the ofbiz demo ecommerce site, but I do not get a registration confirmation email either. Any help will be gratefully received.
>>>
>>> Kind regards
>>> Rees
>>>
>>> Problem getting the template URL: component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification not found
>>> prepareNotification failed: Problem finding template; see logs
>>> Invalid email body; null is not allowed
>>> Error in Service [sendGenericNotificationEmail]: Invalid email body; null is not allowed
>>>
>>>
>>>      
>
>
>
>      

--
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com
http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
Systems Integrator.


Reply | Threaded
Open this post in threaded view
|

Re: customer registration email problem - r778358

aswath narayana
I have submitted the patch to the issue OFBIZ-2631
O
Regards,
-Aswath

On Fri, Jun 19, 2009 at 1:54 PM, Rees Watkins <[hidden email]> wrote:

> Hi
>
> I have created issue OFBIZ-2631
>
> I am afraid I am unable to fix this as this problem.
>
> Regards
> Rees
>
>
>
> ________________________________
> From: BJ Freeman <[hidden email]>
> To: [hidden email]
> Sent: Thursday, 18 June, 2009 21:02:51
> Subject: Re: customer registration email problem - r778358
>
> as Adrian suggested contribute a patch
> here is how:
> http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices
> welcome to the community
>
> Rees Watkins sent the following on 6/18/2009 9:33 AM:
> > Hi
> >
> > Currently it uses this pattern
> >
> >             FreeMarkerWorker.renderTemplate(templateUrl.toExternalForm(),
> templateData, writer);
> >
> > Should it follow the pattern in  sendMailFromScreen and use the pattern
> >
> >         ScreenRenderer screens = new ScreenRenderer(bodyWriter,
> screenContext, htmlScreenRenderer);
> >     ......
> >         screens.render(bodyScreenUri);
> >
> > Thanks
> > Rees
> >
> >
> >
> >
> > ________________________________
> > From: Adrian Crum <[hidden email]>
> > To: [hidden email]
> > Sent: Thursday, 18 June, 2009 17:09:21
> > Subject: Re: customer registration email problem - r778358
> >
> > Rees,
> >
> > If you patch your local copy to use FlexibleLocation instead of UtilURL
> and it solves the problem, then please create a Jira issue and supply a
> patch so we can get it fixed.
> >
> > -Adrian
> >
> > Rees Watkins wrote:
> >> Hello
> >>
> >> Yes -  my store is setup exactly like the demo store. I get emails when
> a product is purchased and for "forgot password" etc.
> >>
> >> Registration email template is specified like this in demo store and my
> store:
> >>
> component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification
> >>
> >> The registration email is generated by a call to
> "sendGenericNotificationEmail" in CustomerEvents.xml which eventually ends
> up in prepareNotification NotificationServices.java which attempts to
> resolve the email template using
> >> URL templateUrl = UtilURL.fromResource(templateName);
> >>
> >> All other email templates are resolved using a
> ComponentLocationResolver.
> >> I believe this is why the emails are not generated and why I get the
> error message below. I have spend some time on this and have made no
> progress. Any ideas would be fantastic.
> >>
> >> Cheers
> >> Rees
> >>
> >>
> >>
> >>
> >> ________________________________
> >> From: BJ Freeman <[hidden email]>
> >> To: [hidden email]
> >> Sent: Thursday, 18 June, 2009 15:41:43
> >> Subject: Re: customer registration email problem
> >>
> >> do you have the emails defined in the productstore>emails
> >>
> >>
> >> Rees Watkins sent the following on 6/18/2009 2:38 AM:
> >>> Hi
> >>>
> >>> I am unable to get ofbiz to send an email on customer registration on
> my ecommerce site. I get the error below. It does not seem to be able to
> find the email template; even though it is in the location specified. I have
> set the store emails up using the demo site as a guide. I have tried to
> register as a customer on the ofbiz demo ecommerce site, but I do not get a
> registration confirmation email either. Any help will be gratefully
> received.
> >>>
> >>> Kind regards
> >>> Rees
> >>>
> >>> Problem getting the template URL:
> component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification
> not found
> >>> prepareNotification failed: Problem finding template; see logs
> >>> Invalid email body; null is not allowed
> >>> Error in Service [sendGenericNotificationEmail]: Invalid email body;
> null is not allowed
> >>>
> >>>
> >>>
> >
> >
> >
> >
>
> --
> BJ Freeman
> http://www.businessesnetwork.com/automation
> http://bjfreeman.elance.com
>
> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
> Systems Integrator.
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: customer registration email problem - r778358

Jacques Le Roux
Administrator
It's fixed at 829376  

Jacques

From: "aswath narayana" <[hidden email]>

>I have submitted the patch to the issue OFBIZ-2631
> O
> Regards,
> -Aswath
>
> On Fri, Jun 19, 2009 at 1:54 PM, Rees Watkins <[hidden email]> wrote:
>
>> Hi
>>
>> I have created issue OFBIZ-2631
>>
>> I am afraid I am unable to fix this as this problem.
>>
>> Regards
>> Rees
>>
>>
>>
>> ________________________________
>> From: BJ Freeman <[hidden email]>
>> To: [hidden email]
>> Sent: Thursday, 18 June, 2009 21:02:51
>> Subject: Re: customer registration email problem - r778358
>>
>> as Adrian suggested contribute a patch
>> here is how:
>> http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices
>> welcome to the community
>>
>> Rees Watkins sent the following on 6/18/2009 9:33 AM:
>> > Hi
>> >
>> > Currently it uses this pattern
>> >
>> >             FreeMarkerWorker.renderTemplate(templateUrl.toExternalForm(),
>> templateData, writer);
>> >
>> > Should it follow the pattern in  sendMailFromScreen and use the pattern
>> >
>> >         ScreenRenderer screens = new ScreenRenderer(bodyWriter,
>> screenContext, htmlScreenRenderer);
>> >     ......
>> >         screens.render(bodyScreenUri);
>> >
>> > Thanks
>> > Rees
>> >
>> >
>> >
>> >
>> > ________________________________
>> > From: Adrian Crum <[hidden email]>
>> > To: [hidden email]
>> > Sent: Thursday, 18 June, 2009 17:09:21
>> > Subject: Re: customer registration email problem - r778358
>> >
>> > Rees,
>> >
>> > If you patch your local copy to use FlexibleLocation instead of UtilURL
>> and it solves the problem, then please create a Jira issue and supply a
>> patch so we can get it fixed.
>> >
>> > -Adrian
>> >
>> > Rees Watkins wrote:
>> >> Hello
>> >>
>> >> Yes -  my store is setup exactly like the demo store. I get emails when
>> a product is purchased and for "forgot password" etc.
>> >>
>> >> Registration email template is specified like this in demo store and my
>> store:
>> >>
>> component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification
>> >>
>> >> The registration email is generated by a call to
>> "sendGenericNotificationEmail" in CustomerEvents.xml which eventually ends
>> up in prepareNotification NotificationServices.java which attempts to
>> resolve the email template using
>> >> URL templateUrl = UtilURL.fromResource(templateName);
>> >>
>> >> All other email templates are resolved using a
>> ComponentLocationResolver.
>> >> I believe this is why the emails are not generated and why I get the
>> error message below. I have spend some time on this and have made no
>> progress. Any ideas would be fantastic.
>> >>
>> >> Cheers
>> >> Rees
>> >>
>> >>
>> >>
>> >>
>> >> ________________________________
>> >> From: BJ Freeman <[hidden email]>
>> >> To: [hidden email]
>> >> Sent: Thursday, 18 June, 2009 15:41:43
>> >> Subject: Re: customer registration email problem
>> >>
>> >> do you have the emails defined in the productstore>emails
>> >>
>> >>
>> >> Rees Watkins sent the following on 6/18/2009 2:38 AM:
>> >>> Hi
>> >>>
>> >>> I am unable to get ofbiz to send an email on customer registration on
>> my ecommerce site. I get the error below. It does not seem to be able to
>> find the email template; even though it is in the location specified. I have
>> set the store emails up using the demo site as a guide. I have tried to
>> register as a customer on the ofbiz demo ecommerce site, but I do not get a
>> registration confirmation email either. Any help will be gratefully
>> received.
>> >>>
>> >>> Kind regards
>> >>> Rees
>> >>>
>> >>> Problem getting the template URL:
>> component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification
>> not found
>> >>> prepareNotification failed: Problem finding template; see logs
>> >>> Invalid email body; null is not allowed
>> >>> Error in Service [sendGenericNotificationEmail]: Invalid email body;
>> null is not allowed
>> >>>
>> >>>
>> >>>
>> >
>> >
>> >
>> >
>>
>> --
>> BJ Freeman
>> http://www.businessesnetwork.com/automation
>> http://bjfreeman.elance.com
>>
>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>> Systems Integrator.
>>
>>
>>
>>
>