I have problems with STORE-specific Emails. All works fine until I specifiy
my Emails in WCS Admin console under store. If I configure Messages under
SITE all works fine.
I can reproduce the error. As mentioned before the PasswordReset Mail works
fine if I configure it on SITe-level. All works fine. I only got the errors
when I configure the EMail on STORE-level.
Furthermore WCS assembles the message correctly and the message is put in
the MSGSTORE table. Also the right scheduler process is defined and wants
collect the message of the MSGSTORE table. Exactly at this moment the
exceptin occurs:
==============
TimeStamp: 2003-03-27 14:29:24.562
Thread ID: <Scheduler default#1>
Class: com.ibm.commerce.messaging.outboundservice.SendTransactedMsgCmdImpl
Method: assembleMsg
Severity: 1
Message Text: ERROR CMN8216E Failed to send the message using the
SendTransactedMsg command.
Exception: com.ibm.connector.CommunicationException: A messaging exception
occurred while sending the message.
at
com.ibm.commerce.messaging.adapters.CCF2JMCommunication.execute(CCF2JMCommun
ication.java:563)
at
com.ibm.commerce.messaging.outboundservice.Messaging.sendImmediate(Messaging
.java:1925)
at
com.ibm.commerce.messaging.outboundservice.SendTransactedMsgCmdImpl.assemble
Msg(SendTransactedMsgCmdImpl.java:241)
at
com.ibm.commerce.messaging.outboundservice.SendTransactedMsgCmdImpl.performE
xecute(SendTransactedMsgCmdImpl.java:302)
at
com.ibm.commerce.command.ECCommandTarget.executeCommand(ECCommandTarget.java
:78)
at
com.ibm.sfc.cmd.TargetableCommandImpl.execute(TargetableCommandImpl.java:106
)
at
com.ibm.commerce.command.AbstractECTargetableCommand.execute(AbstractECTarge
tableCommand.java:123)
at
com.ibm.commerce.webcontroller.ControllerCmdExecUnit.execute(ControllerCmdEx
ecUnit.java:193)
at
com.ibm.commerce.webcontroller.WebController.executeTransaction(WebControlle
r.java:223)
at
com.ibm.commerce.webcontroller.WebController.processRequest(WebController.ja
va:799)
at
com.ibm.commerce.scheduler.SchedulerAdapter.processRequest(SchedulerAdapter.
java:204)
at com.ibm.commerce.scheduler.SchedulerJob.process(SchedulerJob.java:240)
at com.ibm.commerce.scheduler.SchedulerJob.run(SchedulerJob.java:553)
at com.ibm.commerce.scheduler.SchedulerThread.run(SchedulerThread.java:74)
After the exception occured the message "retry flag" is lowerd to 2 then 1
then 0. After that the message is no more processed! This shows me, that
scheduler is configured well, also it works before and no changes were made
to scheduler!
Furthermore a look into the ecsmg.log file shows me that the message is
correctly assembled and then put intot the MSGSTORE table.
I can reproduce the error if I do the following on a BLANK WCS System
1.) configure instance.xml - add full-qualified-hostname and enable the
notifications
2.) start WCS Admin console and configure the Transport adapter and enable
it (same full-qualified-host for smtp as in instance.xml).
After that the PasswordReset Email will work - also the SendEmail.jsp works.
(A jsp which does a DIRECT Email without scheduler+MSGSTORE table)
with the following call:
http://deesnt15/webapp/wcs/stores/servlet/SendEmail.jsp?message_sender=sautt
er&message_subject=test&message_recipient=juergen...@de.ibm.com&msgtype
_id=200&storeId=10001&message_content=Error%20notificaction%20Test&debug_fla
g=1
THEN - configure the PasswordRest Notification on STORE-level:
1.) start WCS Admin console and select "STORE" - enable the transport
adapter for this store (I do NOT configure it or change a vaule - only
enable!)
2.) configure message types - select the passwordReset and put values for
Sender and subjects into the fields.
After that PasswortReset won't woks anymore and causing the exceptions in
the log file! The SendEmail.jsp still works!! (for explanation - the
SendEmail.jsp sends the email DIRECTLY and don't put the message into the
MSGSTORE table!)
My System:
WAS 4.02
WCSBE 5.4 fixpack 2
Windows2000 fixpack2
Oracle 8.1.7.2.1
all on ONE machine
Any ideas??
Juergen
You don't need to enable the Transport Adapter for email messages, only for
MQ messages. You also don't need to set up messaging at the STORE level if
it is already configured at the SITE level unless you want to use a
different SMTP server for each individual store. Set everything up at the
SITE level, disable the Transport Adapter (unless you are using XML
messages), and try again.
Regards,
-----------------------------------------
Warren Rehman
Software Developer, WCS Support
Electronic Commerce Development - IBM Canada Lab
"Juergen Sautter" <jsau...@gmx.de> wrote in message
news:b6blh4$j5k$1...@news.boulder.ibm.com...
I have not enabled the transport adapter in the instance.xml file, but i
have to enable it in WCS admin console for SITE level (its the mail
transport adapter).
I wanna configure the message on STORE level, because I have different shops
and therefore I wanna have e.g. different subjects in the mail. If I only
configure the message on SITE-level all e.g. PasswordReset Mail will have
the same subject.
Any ideas?
Juergen
"Warren Rehman" <wre...@ca.ibm.com> wrote in message
news:b6cl2f$3864$1...@news.boulder.ibm.com...
my own answer.
The problem lies in the "sender" field. This must be conform with the
w3-standard. This means especially in my case NO blanks in it.
"Juergen Sautter" <jsau...@gmx.de> wrote in message
news:b6ev8f$39qo$1...@news.boulder.ibm.com...