javax.mail.internet.ParseException when sending email from ofbiz?

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

javax.mail.internet.ParseException when sending email from ofbiz?

rhodebump
I am using the ordermgr to send an email out.  The email fails and displays this in the ordermgr:

The Following Errors Occurred:
Cannot send email message to [[hidden email]] from [[hidden email]] cc [null] bcc [null] subject [Test - Order Confirmation #WS10130]

The total stack trace is below.  In the ordermgr screen, there is a Content-Type field, but it does not appear to have a value.  I am wondering if the null value being set as the ContentType is the source of this problem.

Hopefully someone has experienced this and found a way to fix it, or it's another lost weekend for me...
Thanks.


---- exception report ----------------------------------------------------------
Cannot send email message to [[hidden email]] from [[hidden email]] cc [[hidden email]] bcc [null] subject [Test - Order Confirmation #WS10130]
Exception: javax.mail.internet.ParseException
Message: null
---- stack trace ---------------------------------------------------------------
javax.mail.internet.ParseException
javax.mail.internet.ContentType.<init>(ContentType.java:89)
javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1249)
javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012)
javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980)
org.ofbiz.content.email.EmailServices.sendMail(EmailServices.java:227)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:91)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:53)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:344)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:305)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:446)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:274)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189)
org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77)
javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)
Reply | Threaded
Open this post in threaded view
|

Re: javax.mail.internet.ParseException when sending email from ofbiz?

Rick F.
Phillip,

which ofbiz rev are you using and how have you configured your general.properties file?

I've finally gotten the latest rev's to use yahoo's smtp server, but only after configuring several new fields available.

Rick

Phillip Rhodes <[hidden email]> wrote: I am using the ordermgr to send an email out.  The email fails and displays this in the ordermgr:

The Following Errors Occurred:
Cannot send email message to [[hidden email]] from [[hidden email]] cc [null] bcc [null] subject [Test - Order Confirmation #WS10130]

The total stack trace is below.  In the ordermgr screen, there is a Content-Type field, but it does not appear to have a value.  I am wondering if the null value being set as the ContentType is the source of this problem.

Hopefully someone has experienced this and found a way to fix it, or it's another lost weekend for me...
Thanks.


---- exception report ----------------------------------------------------------
Cannot send email message to [[hidden email]] from [[hidden email]] cc [[hidden email]] bcc [null] subject [Test - Order Confirmation #WS10130]
Exception: javax.mail.internet.ParseException
Message: null
---- stack trace ---------------------------------------------------------------
javax.mail.internet.ParseException
javax.mail.internet.ContentType.(ContentType.java:89)
javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1249)
javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012)
javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980)
org.ofbiz.content.email.EmailServices.sendMail(EmailServices.java:227)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:91)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:53)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:344)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:305)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:446)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:274)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189)
org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77)
javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)

Reply | Threaded
Open this post in threaded view
|

Re: javax.mail.internet.ParseException when sending email from ofbiz?

rhodebump
I am using release 4, but I pulled it down from SVN a few months ago.

I did not set a username/password for the smtp server in general.properties, since I am running sendmail locally (localhost)

What new fields do you think would be applicable to this error?

Thanks.

----- Original Message -----
From: "Richard Fleming" <[hidden email]>
To: [hidden email]
Sent: Friday, January 18, 2008 5:38:16 PM (GMT-0500) America/New_York
Subject: Re: javax.mail.internet.ParseException when sending email from ofbiz?

Phillip,

which ofbiz rev are you using and how have you configured your general.properties file?

I've finally gotten the latest rev's to use yahoo's smtp server, but only after configuring several new fields available.

Rick

Phillip Rhodes <[hidden email]> wrote: I am using the ordermgr to send an email out.  The email fails and displays this in the ordermgr:

The Following Errors Occurred:
Cannot send email message to [[hidden email]] from [[hidden email]] cc [null] bcc [null] subject [Test - Order Confirmation #WS10130]

The total stack trace is below.  In the ordermgr screen, there is a Content-Type field, but it does not appear to have a value.  I am wondering if the null value being set as the ContentType is the source of this problem.

Hopefully someone has experienced this and found a way to fix it, or it's another lost weekend for me...
Thanks.


---- exception report ----------------------------------------------------------
Cannot send email message to [[hidden email]] from [[hidden email]] cc [[hidden email]] bcc [null] subject [Test - Order Confirmation #WS10130]
Exception: javax.mail.internet.ParseException
Message: null
---- stack trace ---------------------------------------------------------------
javax.mail.internet.ParseException
javax.mail.internet.ContentType.(ContentType.java:89)
javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1249)
javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012)
javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980)
org.ofbiz.content.email.EmailServices.sendMail(EmailServices.java:227)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:91)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:53)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:344)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:305)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:446)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:274)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189)
org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77)
javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)


Reply | Threaded
Open this post in threaded view
|

Re: javax.mail.internet.ParseException when sending email from ofbiz?

BJ Freeman
In reply to this post by rhodebump
Yes.
can you give the steps on how you created the email.

Phillip Rhodes sent the following on 1/18/2008 10:44 AM:

> I am using the ordermgr to send an email out.  The email fails and displays this in the ordermgr:
>
> The Following Errors Occurred:
> Cannot send email message to [[hidden email]] from [[hidden email]] cc [null] bcc [null] subject [Test - Order Confirmation #WS10130]
>
> The total stack trace is below.  In the ordermgr screen, there is a Content-Type field, but it does not appear to have a value.  I am wondering if the null value being set as the ContentType is the source of this problem.
>
> Hopefully someone has experienced this and found a way to fix it, or it's another lost weekend for me...
> Thanks.
>
>
> ---- exception report ----------------------------------------------------------
> Cannot send email message to [[hidden email]] from [[hidden email]] cc [[hidden email]] bcc [null] subject [Test - Order Confirmation #WS10130]
> Exception: javax.mail.internet.ParseException
> Message: null
> ---- stack trace ---------------------------------------------------------------
> javax.mail.internet.ParseException
> javax.mail.internet.ContentType.<init>(ContentType.java:89)
> javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1249)
> javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012)
> javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980)
> org.ofbiz.content.email.EmailServices.sendMail(EmailServices.java:227)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:585)
> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:91)
> org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:53)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:344)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:305)
> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:446)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:274)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189)
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> java.lang.Thread.run(Thread.java:595)
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: javax.mail.internet.ParseException when sending email from ofbiz?

rhodebump
Using my browser, I went to the ordermgr webapplication

Clicked on an order in the order list

On the order screen ( ordermgr/control/orderview), right-hand side, under the "Contact Information" heading, there is a link for "(Send a confirmation email)"

Clicked on the "Send a confirmation email" link

On the "Send a confirmation email" screen (ordermgr/control/confirmationmailedit?orderId=WS10130&partyId=10111&sendTo=[hidden email]), I hit the "send" button, and get the errors that I described earlier.
         

I appreciate the attention.
Phillip


----- Original Message -----
From: "BJ Freeman" <[hidden email]>
To: [hidden email]
Sent: Friday, January 18, 2008 10:42:58 PM (GMT-0500) America/New_York
Subject: Re: javax.mail.internet.ParseException when sending email from ofbiz?

Yes.
can you give the steps on how you created the email.

Phillip Rhodes sent the following on 1/18/2008 10:44 AM:

> I am using the ordermgr to send an email out.  The email fails and displays this in the ordermgr:
>
> The Following Errors Occurred:
> Cannot send email message to [[hidden email]] from [[hidden email]] cc [null] bcc [null] subject [Test - Order Confirmation #WS10130]
>
> The total stack trace is below.  In the ordermgr screen, there is a Content-Type field, but it does not appear to have a value.  I am wondering if the null value being set as the ContentType is the source of this problem.
>
> Hopefully someone has experienced this and found a way to fix it, or it's another lost weekend for me...
> Thanks.
>
>
> ---- exception report ----------------------------------------------------------
> Cannot send email message to [[hidden email]] from [[hidden email]] cc [[hidden email]] bcc [null] subject [Test - Order Confirmation #WS10130]
> Exception: javax.mail.internet.ParseException
> Message: null
> ---- stack trace ---------------------------------------------------------------
> javax.mail.internet.ParseException
> javax.mail.internet.ContentType.<init>(ContentType.java:89)
> javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1249)
> javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012)
> javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980)
> org.ofbiz.content.email.EmailServices.sendMail(EmailServices.java:227)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:585)
> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:91)
> org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:53)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:344)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:305)
> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:446)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:274)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189)
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> java.lang.Thread.run(Thread.java:595)
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: javax.mail.internet.ParseException when sending email from ofbiz?

BJ Freeman
The reason is that the content is gotten from the
https://demo.hotwaxmedia.com/webtools/control/FindGeneric?entityName=ProductStoreEmailSetting
and there is no context specified.
 the code says
<div
class="tabletext">${productStoreEmailSetting.contentType?default("text/html")}</div>

so it will show the text/html even if
productStoreEmailSetting.contentType ==null

The short fix is to fill in the context in the email for the product
store you are using

https://demo.hotwaxmedia.com/catalog/control/EditProductStoreEmails?productStoreId=9000
you will see the content type empty.

This should be filled in for the Demo Store data.



Phillip Rhodes sent the following on 1/19/2008 8:46 AM:

> Using my browser, I went to the ordermgr webapplication
>
> Clicked on an order in the order list
>
> On the order screen ( ordermgr/control/orderview), right-hand side, under the "Contact Information" heading, there is a link for "(Send a confirmation email)"
>
> Clicked on the "Send a confirmation email" link
>
> On the "Send a confirmation email" screen (ordermgr/control/confirmationmailedit?orderId=WS10130&partyId=10111&sendTo=[hidden email]), I hit the "send" button, and get the errors that I described earlier.
>
>
> I appreciate the attention.
> Phillip
>
>
> ----- Original Message -----
> From: "BJ Freeman" <[hidden email]>
> To: [hidden email]
> Sent: Friday, January 18, 2008 10:42:58 PM (GMT-0500) America/New_York
> Subject: Re: javax.mail.internet.ParseException when sending email from ofbiz?
>
> Yes.
> can you give the steps on how you created the email.
>
> Phillip Rhodes sent the following on 1/18/2008 10:44 AM:
>> I am using the ordermgr to send an email out.  The email fails and displays this in the ordermgr:
>>
>> The Following Errors Occurred:
>> Cannot send email message to [[hidden email]] from [[hidden email]] cc [null] bcc [null] subject [Test - Order Confirmation #WS10130]
>>
>> The total stack trace is below.  In the ordermgr screen, there is a Content-Type field, but it does not appear to have a value.  I am wondering if the null value being set as the ContentType is the source of this problem.
>>
>> Hopefully someone has experienced this and found a way to fix it, or it's another lost weekend for me...
>> Thanks.
>>
>>
>> ---- exception report ----------------------------------------------------------
>> Cannot send email message to [[hidden email]] from [[hidden email]] cc [[hidden email]] bcc [null] subject [Test - Order Confirmation #WS10130]
>> Exception: javax.mail.internet.ParseException
>> Message: null
>> ---- stack trace ---------------------------------------------------------------
>> javax.mail.internet.ParseException
>> javax.mail.internet.ContentType.<init>(ContentType.java:89)
>> javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1249)
>> javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012)
>> javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980)
>> org.ofbiz.content.email.EmailServices.sendMail(EmailServices.java:227)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> java.lang.reflect.Method.invoke(Method.java:585)
>> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:91)
>> org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:53)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:344)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
>> org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:305)
>> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:446)
>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:274)
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189)
>> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
>> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
>> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
>> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
>> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>> java.lang.Thread.run(Thread.java:595)
>>
>>
>>
>
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re:fix productStoreEmailSetting.contentType was javax.mail.internet.ParseException when sending email from ofbiz?

BJ Freeman
Seems the demo data needs to have content-type data added
change the ftl to add a input box with the default inputted, then use
put input box in to the parms or even update the
productStoreEmailSetting.contentType



BJ Freeman sent the following on 1/19/2008 11:18 AM:

> The reason is that the content is gotten from the
> https://demo.hotwaxmedia.com/webtools/control/FindGeneric?entityName=ProductStoreEmailSetting
> and there is no context specified.
>  the code says
> <div
> class="tabletext">${productStoreEmailSetting.contentType?default("text/html")}</div>
>
> so it will show the text/html even if
> productStoreEmailSetting.contentType ==null
>
> The short fix is to fill in the context in the email for the product
> store you are using
>
> https://demo.hotwaxmedia.com/catalog/control/EditProductStoreEmails?productStoreId=9000
> you will see the content type empty.
>
> This should be filled in for the Demo Store data.
>
>
>
> Phillip Rhodes sent the following on 1/19/2008 8:46 AM:
>> Using my browser, I went to the ordermgr webapplication
>>
>> Clicked on an order in the order list
>>
>> On the order screen ( ordermgr/control/orderview), right-hand side, under the "Contact Information" heading, there is a link for "(Send a confirmation email)"
>>
>> Clicked on the "Send a confirmation email" link
>>
>> On the "Send a confirmation email" screen (ordermgr/control/confirmationmailedit?orderId=WS10130&partyId=10111&sendTo=[hidden email]), I hit the "send" button, and get the errors that I described earlier.
>>
>>
>> I appreciate the attention.
>> Phillip
>>
>>
>> ----- Original Message -----
>> From: "BJ Freeman" <[hidden email]>
>> To: [hidden email]
>> Sent: Friday, January 18, 2008 10:42:58 PM (GMT-0500) America/New_York
>> Subject: Re: javax.mail.internet.ParseException when sending email from ofbiz?
>>
>> Yes.
>> can you give the steps on how you created the email.
>>
>> Phillip Rhodes sent the following on 1/18/2008 10:44 AM:
>>> I am using the ordermgr to send an email out.  The email fails and displays this in the ordermgr:
>>>
>>> The Following Errors Occurred:
>>> Cannot send email message to [[hidden email]] from [[hidden email]] cc [null] bcc [null] subject [Test - Order Confirmation #WS10130]
>>>
>>> The total stack trace is below.  In the ordermgr screen, there is a Content-Type field, but it does not appear to have a value.  I am wondering if the null value being set as the ContentType is the source of this problem.
>>>
>>> Hopefully someone has experienced this and found a way to fix it, or it's another lost weekend for me...
>>> Thanks.
>>>
>>>
>>> ---- exception report ----------------------------------------------------------
>>> Cannot send email message to [[hidden email]] from [[hidden email]] cc [[hidden email]] bcc [null] subject [Test - Order Confirmation #WS10130]
>>> Exception: javax.mail.internet.ParseException
>>> Message: null
>>> ---- stack trace ---------------------------------------------------------------
>>> javax.mail.internet.ParseException
>>> javax.mail.internet.ContentType.<init>(ContentType.java:89)
>>> javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1249)
>>> javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012)
>>> javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980)
>>> org.ofbiz.content.email.EmailServices.sendMail(EmailServices.java:227)
>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>> java.lang.reflect.Method.invoke(Method.java:585)
>>> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:91)
>>> org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:53)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:344)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
>>> org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:305)
>>> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:446)
>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:274)
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189)
>>> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
>>> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
>>> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
>>> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
>>> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>> java.lang.Thread.run(Thread.java:595)
>>>
>>>
>>>
>>
>>
>>
>>
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: fix productStoreEmailSetting.contentType was javax.mail.internet.ParseException when sending email from ofbiz?

rhodebump
BJ,
All I can say is that you rock!

Someone had went into the admin tool and attempted to add some email  
addresses to be cc.  They put it in the wrong place in the form.

Looking at the UI for the email settings, I would recommend that each  
textfield have a label, even if it's repeated so that each textfield  
is clearly labeled.

Thanks!


On Jan 19, 2008, at 2:31 PM, BJ Freeman wrote:

> Seems the demo data needs to have content-type data added
> change the ftl to add a input box with the default inputted, then use
> put input box in to the parms or even update the
> productStoreEmailSetting.contentType
>
>
>
> BJ Freeman sent the following on 1/19/2008 11:18 AM:
>> The reason is that the content is gotten from the
>> https://demo.hotwaxmedia.com/webtools/control/FindGeneric?entityName=ProductStoreEmailSetting
>> and there is no context specified.
>> the code says
>> <div
>> class="tabletext">${productStoreEmailSetting.contentType?
>> default("text/html")}</div>
>>
>> so it will show the text/html even if
>> productStoreEmailSetting.contentType ==null
>>
>> The short fix is to fill in the context in the email for the product
>> store you are using
>>
>> https://demo.hotwaxmedia.com/catalog/control/EditProductStoreEmails?productStoreId=9000
>> you will see the content type empty.
>>
>> This should be filled in for the Demo Store data.
>>
>>
>>
>> Phillip Rhodes sent the following on 1/19/2008 8:46 AM:
>>> Using my browser, I went to the ordermgr webapplication
>>>
>>> Clicked on an order in the order list
>>>
>>> On the order screen ( ordermgr/control/orderview), right-hand  
>>> side, under the "Contact Information" heading, there is a link for  
>>> "(Send a confirmation email)"
>>>
>>> Clicked on the "Send a confirmation email" link
>>>
>>> On the "Send a confirmation email" screen (ordermgr/control/confirmationmailedit?orderId=WS10130&partyId=10111&sendTo=[hidden email]
>>> ), I hit the "send" button, and get the errors that I described  
>>> earlier.
>>>
>>>
>>> I appreciate the attention.
>>> Phillip
>>>
>>>
>>> ----- Original Message -----
>>> From: "BJ Freeman" <[hidden email]>
>>> To: [hidden email]
>>> Sent: Friday, January 18, 2008 10:42:58 PM (GMT-0500) America/
>>> New_York
>>> Subject: Re: javax.mail.internet.ParseException when sending email  
>>> from ofbiz?
>>>
>>> Yes.
>>> can you give the steps on how you created the email.
>>>
>>> Phillip Rhodes sent the following on 1/18/2008 10:44 AM:
>>>> I am using the ordermgr to send an email out.  The email fails  
>>>> and displays this in the ordermgr:
>>>>
>>>> The Following Errors Occurred:
>>>> Cannot send email message to [[hidden email]] from [[hidden email]
>>>> ] cc [null] bcc [null] subject [Test - Order Confirmation #WS10130]
>>>>
>>>> The total stack trace is below.  In the ordermgr screen, there is  
>>>> a Content-Type field, but it does not appear to have a value.  I  
>>>> am wondering if the null value being set as the ContentType is  
>>>> the source of this problem.
>>>>
>>>> Hopefully someone has experienced this and found a way to fix it,  
>>>> or it's another lost weekend for me...
>>>> Thanks.
>>>>
>>>>
>>>> ---- exception report  
>>>> ----------------------------------------------------------
>>>> Cannot send email message to [[hidden email]] from [[hidden email]
>>>> ] cc [[hidden email]] bcc [null] subject [Test - Order  
>>>> Confirmation #WS10130]
>>>> Exception: javax.mail.internet.ParseException
>>>> Message: null
>>>> ---- stack trace  
>>>> ---------------------------------------------------------------
>>>> javax.mail.internet.ParseException
>>>> javax.mail.internet.ContentType.<init>(ContentType.java:89)
>>>> javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:
>>>> 1249)
>>>> javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:
>>>> 2012)
>>>> javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980)
>>>> org.ofbiz.content.email.EmailServices.sendMail(EmailServices.java:
>>>> 227)
>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> sun
>>>> .reflect
>>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>> sun
>>>> .reflect
>>>> .DelegatingMethodAccessorImpl
>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>> org
>>>> .ofbiz
>>>> .service
>>>> .engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:
>>>> 91)
>>>> org
>>>> .ofbiz
>>>> .service
>>>> .engine.StandardJavaEngine.runSync(StandardJavaEngine.java:53)
>>>> org
>>>> .ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 344)
>>>> org
>>>> .ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 211)
>>>> org
>>>> .ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 136)
>>>> org
>>>> .ofbiz
>>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>>> 305)
>>>> org
>>>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>>>> 446)
>>>> org
>>>> .ofbiz
>>>> .webapp.control.RequestHandler.doRequest(RequestHandler.java:274)
>>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>>> 189)
>>>> org
>>>> .ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77)
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:252)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 173)
>>>> org
>>>> .ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>>> 248)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:202)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 173)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardContextValve.invoke(StandardContextValve.java:178)
>>>> org
>>>> .apache
>>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>>> org
>>>> .apache
>>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>>> org
>>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>>> 541)
>>>> org
>>>> .apache
>>>> .catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>>> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:
>>>> 199)
>>>> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
>>>> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
>>>> org
>>>> .apache
>>>> .jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
>>>> org.apache.jk.common.ChannelSocket
>>>> $SocketConnection.runIt(ChannelSocket.java:889)
>>>> org.apache.tomcat.util.threads.ThreadPool
>>>> $ControlRunnable.run(ThreadPool.java:684)
>>>> java.lang.Thread.run(Thread.java:595)
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: fix productStoreEmailSetting.contentType was javax.mail.internet.ParseException when sending email from ofbiz?

BJ Freeman
glad you got it fixed.
I am curious based on what you say, why the content did not show the
email address or some error.
Also need to add content type the error report in the log.


phillip rhodes sent the following on 1/19/2008 8:15 PM:

> BJ,
> All I can say is that you rock!
>
> Someone had went into the admin tool and attempted to add some email
> addresses to be cc.  They put it in the wrong place in the form.
>
> Looking at the UI for the email settings, I would recommend that each
> textfield have a label, even if it's repeated so that each textfield is
> clearly labeled.
>
> Thanks!
>
>
> On Jan 19, 2008, at 2:31 PM, BJ Freeman wrote:
>
>> Seems the demo data needs to have content-type data added
>> change the ftl to add a input box with the default inputted, then use
>> put input box in to the parms or even update the
>> productStoreEmailSetting.contentType
>>
>>
>>
>> BJ Freeman sent the following on 1/19/2008 11:18 AM:
>>> The reason is that the content is gotten from the
>>> https://demo.hotwaxmedia.com/webtools/control/FindGeneric?entityName=ProductStoreEmailSetting
>>>
>>> and there is no context specified.
>>> the code says
>>> <div
>>> class="tabletext">${productStoreEmailSetting.contentType?default("text/html")}</div>
>>>
>>>
>>> so it will show the text/html even if
>>> productStoreEmailSetting.contentType ==null
>>>
>>> The short fix is to fill in the context in the email for the product
>>> store you are using
>>>
>>> https://demo.hotwaxmedia.com/catalog/control/EditProductStoreEmails?productStoreId=9000
>>>
>>> you will see the content type empty.
>>>
>>> This should be filled in for the Demo Store data.
>>>
>>>
>>>
>>> Phillip Rhodes sent the following on 1/19/2008 8:46 AM:
>>>> Using my browser, I went to the ordermgr webapplication
>>>>
>>>> Clicked on an order in the order list
>>>>
>>>> On the order screen ( ordermgr/control/orderview), right-hand side,
>>>> under the "Contact Information" heading, there is a link for "(Send
>>>> a confirmation email)"
>>>>
>>>> Clicked on the "Send a confirmation email" link
>>>>
>>>> On the "Send a confirmation email" screen
>>>> (ordermgr/control/confirmationmailedit?orderId=WS10130&partyId=10111&sendTo=[hidden email]),
>>>> I hit the "send" button, and get the errors that I described earlier.
>>>>    
>>>>
>>>> I appreciate the attention.
>>>> Phillip
>>>>
>>>>
>>>> ----- Original Message -----
>>>> From: "BJ Freeman" <[hidden email]>
>>>> To: [hidden email]
>>>> Sent: Friday, January 18, 2008 10:42:58 PM (GMT-0500) America/New_York
>>>> Subject: Re: javax.mail.internet.ParseException when sending email
>>>> from ofbiz?
>>>>
>>>> Yes.
>>>> can you give the steps on how you created the email.
>>>>
>>>> Phillip Rhodes sent the following on 1/18/2008 10:44 AM:
>>>>> I am using the ordermgr to send an email out.  The email fails and
>>>>> displays this in the ordermgr:
>>>>>
>>>>> The Following Errors Occurred:
>>>>> Cannot send email message to [[hidden email]] from
>>>>> [[hidden email]] cc [null] bcc [null] subject [Test - Order
>>>>> Confirmation #WS10130]
>>>>>
>>>>> The total stack trace is below.  In the ordermgr screen, there is a
>>>>> Content-Type field, but it does not appear to have a value.  I am
>>>>> wondering if the null value being set as the ContentType is the
>>>>> source of this problem.
>>>>>
>>>>> Hopefully someone has experienced this and found a way to fix it,
>>>>> or it's another lost weekend for me...
>>>>> Thanks.
>>>>>
>>>>>
>>>>> ---- exception report
>>>>> ----------------------------------------------------------
>>>>> Cannot send email message to [[hidden email]] from
>>>>> [[hidden email]] cc [[hidden email]] bcc [null] subject
>>>>> [Test - Order Confirmation #WS10130]
>>>>> Exception: javax.mail.internet.ParseException
>>>>> Message: null
>>>>> ---- stack trace
>>>>> ---------------------------------------------------------------
>>>>> javax.mail.internet.ParseException
>>>>> javax.mail.internet.ContentType.<init>(ContentType.java:89)
>>>>> javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1249)
>>>>> javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012)
>>>>> javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980)
>>>>> org.ofbiz.content.email.EmailServices.sendMail(EmailServices.java:227)
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>
>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:91)
>>>>>
>>>>> org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:53)
>>>>>
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:344)
>>>>>
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
>>>>>
>>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
>>>>>
>>>>> org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:305)
>>>>>
>>>>> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:446)
>>>>>
>>>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:274)
>>>>>
>>>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189)
>>>>> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77)
>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>>>>
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>>>>
>>>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)
>>>>>
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>>>>
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>>>>
>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>>>>
>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>>>>
>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>>>>
>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>>>>
>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>>>>
>>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
>>>>>
>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>>>>
>>>>> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
>>>>> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
>>>>> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
>>>>> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
>>>>>
>>>>> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
>>>>>
>>>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>>>>
>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>
>
>
>
>