[jira] Created: (OFBIZ-316) Email not sent, job not rescheduled

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

[jira] Created: (OFBIZ-316) Email not sent, job not rescheduled

Nicolas Malin (Jira)
Email not sent, job not rescheduled
-----------------------------------

                 Key: OFBIZ-316
                 URL: http://issues.apache.org/jira/browse/OFBIZ-316
             Project: OFBiz (The Open for Business Project)
          Issue Type: Bug
          Components: framework
            Reporter: Jacques Le Roux
         Assigned To: Jacques Le Roux


From jan krueger, not sure the problem always exists but there are some valuable informations if it's always there

 Hi,

We created our own ecommerce part in the ofbiz (called eportal).
Within this, we have an emailing functionality which schedules the sending of an email (<i>dispatcher.runSync("sendGenericNotificationEmail", mailData);</i>).
We often use this to send a notification to an employee and a confirmation to a customer right after another.

Now sometimes one of the emails is not sent.
According to the logfile,
<li>the email is scheduled (<i>04 Aug 2005 09:27:56,071 INFO GenericAsyncEngine [PoolThread-2][]: Persisted job queued : 1123140476061</i>),
<li>and then sent (<i>04 Aug 2005 09:28:05,905 INFO PersistedServiceJob [Thread-11][]: org.ofbiz.service.job.PersistedServiceJob@ba0dfc -- Next runtime: -1</i>)
- but it is not sent! And it is not rescheduled.
In the JobList, this emailjob is shown with the correct start time, but no finish time.

As far as I understood the problem, the job is scheduled and runs without errormessage, therefore no rescheduling. But for some reason, the email is not sent.

Unfortunately, this error can not be reproduced.
The PC we use is very busy (approx. 90% load). Can this be a reason?

Desperate Regards,
Jan

 Toutes   Commentaires   Temps Consommé   Historique des changements      Sort Order: [navigator.ascending.order]
Commentaire de la part de jan krueger [09/août/05 01:32 PM]
[ Lien permanent ]
Hi,

With debugging and logging, I found that the following is not executed correctly (from org.ofbiz.content.email.EmailServices.sendMail(...)).

Transport trans = session.getTransport("smtp");
if (!useSmtpAuth) {
    trans.connect(); //not exececuted correctly
} else {
    trans.connect(sendVia, authUser, authPass); //not exececuted correctly
}

Regards,
Jan

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-316) Email not sent, job not rescheduled

Nicolas Malin (Jira)
     [ http://issues.apache.org/jira/browse/OFBIZ-316?page=all ]

Jacques Le Roux closed OFBIZ-316.
---------------------------------

    Resolution: Cannot Reproduce

I think that adding a debug option will ease this kinf of issue. To my knowledge there are no pb there but SMTP configuration or email not used in the right domain, etc.

> Email not sent, job not rescheduled
> -----------------------------------
>
>                 Key: OFBIZ-316
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-316
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>            Reporter: Jacques Le Roux
>         Assigned To: Jacques Le Roux
>
> From jan krueger, not sure the problem always exists but there are some valuable informations if it's always there
>  Hi,
> We created our own ecommerce part in the ofbiz (called eportal).
> Within this, we have an emailing functionality which schedules the sending of an email (<i>dispatcher.runSync("sendGenericNotificationEmail", mailData);</i>).
> We often use this to send a notification to an employee and a confirmation to a customer right after another.
> Now sometimes one of the emails is not sent.
> According to the logfile,
> <li>the email is scheduled (<i>04 Aug 2005 09:27:56,071 INFO GenericAsyncEngine [PoolThread-2][]: Persisted job queued : 1123140476061</i>),
> <li>and then sent (<i>04 Aug 2005 09:28:05,905 INFO PersistedServiceJob [Thread-11][]: org.ofbiz.service.job.PersistedServiceJob@ba0dfc -- Next runtime: -1</i>)
> - but it is not sent! And it is not rescheduled.
> In the JobList, this emailjob is shown with the correct start time, but no finish time.
> As far as I understood the problem, the job is scheduled and runs without errormessage, therefore no rescheduling. But for some reason, the email is not sent.
> Unfortunately, this error can not be reproduced.
> The PC we use is very busy (approx. 90% load). Can this be a reason?
> Desperate Regards,
> Jan
>  Toutes   Commentaires   Temps Consommé   Historique des changements      Sort Order: [navigator.ascending.order]
> Commentaire de la part de jan krueger [09/août/05 01:32 PM]
> [ Lien permanent ]
> Hi,
> With debugging and logging, I found that the following is not executed correctly (from org.ofbiz.content.email.EmailServices.sendMail(...)).
> Transport trans = session.getTransport("smtp");
> if (!useSmtpAuth) {
>     trans.connect(); //not exececuted correctly
> } else {
>     trans.connect(sendVia, authUser, authPass); //not exececuted correctly
> }
> Regards,
> Jan

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira