|
From: MTM Z. <zen...@fe...> - 2003-11-20 16:42:45
|
Hello, the problem is that I get a 10103 error when trying to send a mail to another msh server with the msh_client. The msh server that the client is connected to generates the error. the exception that occurs is: javax.mail.NoSuchProviderException. the gives detailed message is: smtp The exception is generated by the file in the package: hk.hku.cecid.phoenix.message.transport.TransportException At first the properties of the client were also empty in the log file of the client but we have added these to the client config file and it did not solve the problem. so the problem is situated in the mail.java in the MSH server. I have analyzed the problem by inserting some log file output into the mail.java int he hk.hku.etc. structure. It seems to me the problem is that the Transport.send (mimeMessage) invokes an incorrect Provider. All parameters entered into the properties and session seem to be correct. The used provider is the com.sun.mail.smtp.SMTPTransport and the provider requested should use (in my thoughts) the javax.mail.internet package. below is a copy of the log file: 2003-11-20 15:34:30,198 DEBUG [Thread-26]: => Mail.send 2003-11-20 15:34:30,206 INFO [Thread-26]: Sending message to msh1@192.168.1.10 through 192.168.1.10 2003-11-20 15:34:30,214 INFO [Thread-26]: mail.java => ebXMLmessage: hk.hku.cecid.phoenix.message.packaging.EbxmlMessage@f42d53 2003-11-20 15:34:30,222 DEBUG [Thread-26]: mail.java => PROPERTY_JAVA_MAIL_SMTP_HOST + auth: 192.168.1.10 2003-11-20 15:34:31,424 DEBUG [Thread-26]: mail.java => session.getProperty(PROPERTY_JAVA_MAIL_SMTP_HOST): 192.168.1.10 2003-11-20 15:34:31,430 DEBUG [Thread-26]: mail.java => session.getProvider(smtp): javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc] 2003-11-20 15:34:31,432 DEBUG [Thread-26]: mail.java => session.getProvider(smtp).getClassName(): com.sun.mail.smtp.SMTPTransport 2003-11-20 15:34:31,433 DEBUG [Thread-26]: mail.java => session.getProvider(smtp).getType(): javax.mail.Provider$Type@cff5ed 2003-11-20 15:34:31,433 DEBUG [Thread-26]: mail.java => session.getProvider(smtp).getProtocol(): smtp 2003-11-20 15:34:31,434 DEBUG [Thread-26]: mail.java => session.getProvider(smtp).getVendor(): Sun Microsystems, Inc 2003-11-20 15:34:31,434 DEBUG [Thread-26]: mail.java => session.getProvider(smtp).getVersion(): null 2003-11-20 15:34:31,438 DEBUG [Thread-26]: mail.java => session.getProvider(smtp).toString(): javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc] 2003-11-20 15:34:31,515 DEBUG [Thread-26]: mail.java => mimeMessage.getAllHeaderLines(): Message-ID: <31958224.1069338871515.JavaMail.root@demoserver> 2003-11-20 15:34:31,524 DEBUG [Thread-26]: mail.java => mimeMessage.getAllHeaderLines(): From: msh2@192.168.1.10 2003-11-20 15:34:31,532 DEBUG [Thread-26]: mail.java => mimeMessage.getAllHeaderLines(): To: msh1@192.168.1.10 2003-11-20 15:34:31,540 DEBUG [Thread-26]: mail.java => mimeMessage.getAllHeaderLines(): Subject: Item_No_128 2003-11-20 15:34:31,548 DEBUG [Thread-26]: mail.java => mimeMessage.getAllHeaderLines(): Mime-Version: 1.0 2003-11-20 15:34:31,556 DEBUG [Thread-26]: mail.java => mimeMessage.getAllHeaderLines(): Content-Type: text/xml; charset="utf-8" 2003-11-20 15:34:31,564 DEBUG [Thread-26]: mail.java => mimeMessage.getAllHeaderLines(): Content-Transfer-Encoding: base64 2003-11-20 15:34:31,574 DEBUG [Thread-26]: mail.java => mimeMessage.getAllHeaderLines(): SOAPAction: "ebXML" 2003-11-20 15:34:31,583 DEBUG [Thread-26]: mail.java => mimeMessage.getFileName(): null 2003-11-20 15:34:31,588 INFO [Thread-26]: mail.java => before Transport.send() 2003-11-20 15:34:31,680 ERROR [Thread-26]: [10103] Cannot send mail message Exception: javax.mail.NoSuchProviderException Message: smtp 2003-11-20 15:34:31,691 ERROR [Thread-26]: [10002] Unknown error Exception: hk.hku.cecid.phoenix.message.transport.TransportException Message: [10103] Cannot send mail message and exception: javax.mail.NoSuchProviderException: smtp 2003-11-20 15:34:31,700 DEBUG [Thread-26]: => MessageProcessor.wakeUp 2003-11-20 15:34:31,705 DEBUG [Thread-26]: <= MessageProcessor.wakeUp 2003-11-20 15:34:31,714 DEBUG [Thread-25]: => MessageServer.logSentMessage 2003-11-20 15:34:31,724 DEBUG [Thread-25]: => DbConnectionPool.getConnection 2003-11-20 15:34:33,373 DEBUG [Thread-25]: <= DbConnectionPool.getConnection 2003-11-20 15:34:33,384 DEBUG [Thread-25]: <= MessageServer.logSentMessage 2003-11-20 15:34:33,393 DEBUG [Thread-25]: => Transaction.commit (txID: #5) 2003-11-20 15:34:33,403 DEBUG [Thread-26]: <= MailSender.run 2003-11-20 15:34:33,414 DEBUG [Thread-25]: => DbConnectionPool.freeConnection 2003-11-20 15:34:33,423 DEBUG [Thread-25]: <= DbConnectionPool.freeConnection 2003-11-20 15:34:33,431 DEBUG [Thread-25]: <= Transaction.commit for a bit of clarity on the inserted comment lines I have attached the Mail.java file. thank you for looking into this matter, Mark Zenhorst |