|
From: Patrick Y. <kc...@ce...> - 2003-11-26 08:52:15
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
This is exactly the same string I get.. so I still cannot what's the
problem. Can you show me the code fragment which have printed out
"Session.provider = null"? Thanks.<br>
<br>
Regards, -Patrick<br>
<br>
<br>
<br>
MTM Zenhorst wrote:<br>
<blockquote type="cite" cite="mid...@fe...">
<pre wrap="">Patrick,
the result of the test is:
javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc]
don't know if this is correct but it is the same as printed in the log file for
the other mails about this issue.
can you tell me what is going wrong? is it an incorrect version of Mail.jar?
Mark
MTM Zenhorst wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I was printing the variables as displayed from the session object but
other variables are used. :) already found that out but it is still not
working. The problem that is there now is a 10103 Cannot send mail
message. Already send mails to the mailing list about it under that
subject.
We were thinking about exporting that piece of code and trying our
selves b/c other java mailing programs did work.. But you have been very
kind by providing us with that possibility.
I'll try and see if I can run the test totday. Let you know about the
results..
Mark
Patrick Yee wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Mark,
How do you get the "Session.protocol: null" messages? What object are
you printing? BTW, I have written a very simple testing program to try
to print out the provider information. Would you please try to run
this in your environment? Thanks.
Regards, -Patrick
MTM Zenhorst wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Patrick,
We have looked after these matters and we do not use our own
implementations of these files, just the j2ee files.
the mailserver however did not support SMTP authentication. we
changed the mailserver and the problem persisted. The hermes MSH did
not send any mail but our client on the same PC could send a mail
with the mailserver using SMTP authentication.
We then added some logging information in the mail.java of the cecid
package.
The following output was the result.
2003-11-18 16:11:45,797 DEBUG [Thread-16]: => MailSender.run
2003-11-18 16:11:45,798 DEBUG [Thread-16]: => Mail.send
2003-11-18 16:11:45,798 INFO [Thread-16]: Sending message to
<a class="moz-txt-link-abbreviated" href="mailto:msh1@192.168.1.10">msh1@192.168.1.10</a> through 192.168.1.10
2003-11-18 16:11:45,798 INFO [Thread-16]: mail.java =>
ebXMLmessage:
hk.hku.cecid.phoenix.message.packaging.EbxmlMessage@1b2e165
2003-11-18 16:11:47,610 INFO [Thread-16]: mail.java =>
session.protocol: null
2003-11-18 16:11:47,611 INFO [Thread-16]: mail.java =>
session.type: null
2003-11-18 16:11:47,611 INFO [Thread-16]: mail.java =>
session.class: null
2003-11-18 16:11:47,611 INFO [Thread-16]: mail.java =>
session.vendor: null
2003-11-18 16:11:47,611 INFO [Thread-16]: mail.java =>
session.version: null
2003-11-18 16:11:47,711 INFO [Thread-16]: mail.java => header
output: Message-ID:
<12562335.1069168307711.JavaMail.root@demoserver>
2003-11-18 16:11:47,861 INFO [Thread-16]: mail.java => header
output: From: <a class="moz-txt-link-abbreviated" href="mailto:msh2@192.168.1.10">msh2@192.168.1.10</a>
2003-11-18 16:11:47,872 INFO [Thread-16]: mail.java => header
output: To: <a class="moz-txt-link-abbreviated" href="mailto:msh1@192.168.1.10">msh1@192.168.1.10</a>
2003-11-18 16:11:47,886 INFO [Thread-16]: mail.java => header
output: Subject: Item_No_128
2003-11-18 16:11:47,896 INFO [Thread-16]: mail.java => header
output: Mime-Version: 1.0
2003-11-18 16:11:47,910 INFO [Thread-16]: mail.java => header
output: Content-Type: text/xml; charset="utf-8"
2003-11-18 16:11:47,922 INFO [Thread-16]: mail.java => header
output: Content-Transfer-Encoding: base64
2003-11-18 16:11:47,936 INFO [Thread-16]: mail.java => header
output: SOAPAction: "ebXML"
2003-11-18 16:11:48,100 ERROR [Thread-16]: [10103] Cannot send mail
message
Exception: javax.mail.NoSuchProviderException
Message: smtp
2003-11-18 16:11:48,103 ERROR [Thread-16]: [10002] Unknown error
Exception: hk.hku.cecid.phoenix.message.transport.TransportException
Message: [10103] Cannot send mail message and exception:
javax.mail.NoSuchProviderException: smtp
it seems to us that there is something going wrong with the session
object, for that is zero in value. And the session.protocol should
reflect the chosen provider (smtp) according to the j2ee API from
sun.
We are now trying a newer version of the MSH we found in the cvs on
sourceforge, it described sort of the same problem we had. we'll let
you know if that solves the problem.
regards,
Mark
Patrick Yee wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> Mark, We suspect of 2 possible causes: 1. there may be a mismatch
of mail.jar and activation.jar. Are you using your own version of
these jar files?2. are you using SMTP authentication while your
mail servers doesn't support? Please check. Thanks. Regards,
-Patrick
----- Original Message -----
From:MTM Zenhorst
<a class="moz-txt-link-abbreviated" href="mailto:To:ebx...@li...">To:ebx...@li...</a>
Sent: Monday, November 17, 2003 8:19 PM
Subject: Re: [ebxmlms-general] error 10102 Cannot Compose
Mail Message
Hello,
I changed the from party ID but now I get another error
that leaves me wondering.
parameters:
from partyId: <a class="moz-txt-link-freetext" href="mailto:de...@19....20">mailto:de...@19....20</a>
type: Mail
to partyId: <a class="moz-txt-link-freetext" href="mailto:ma...@19....20">mailto:ma...@19....20</a>
type: MAIL
the errors given in the msh logfile are:
thread: sending message to
<a class="moz-txt-link-abbreviated" href="mailto:ma...@19....20">ma...@19....20</a> through 192.168.xxx.20
error: 10103 Cannot send mail message
exception: javax.mail.NoSuchProviderException
message: smtp
exception:
hk.hku.cecid.phoenix.message.transport.TransportException
message: 10103 Cannot send mail message
We also tried with company mail addresses and hotmail
mail addresses but they gave the same errors.
The log file of the mail server does not show the msh is
trying to send the mail it is only polling in te pool for
new messages.
do you have any idea as for what is going wrong?
Patrick Yee wrote:
> Mark,Sorry, under the current limitation of Hermes,
> when you send out message using SMTP protocol, the From
> Party ID of the message should be a valid email address
> also.Regards, -Patrick
>
> ----- Original Message -----
> From:MTM Zenhorst
> <a class="moz-txt-link-abbreviated" href="mailto:To:ebx...@li...">To:ebx...@li...</a>
> Sent: Friday, November 14, 2003 10:36 PM
> Subject: [ebxmlms-general] error 10102 Cannot
> Compose Mail Message
> Hello,
>
> We are trying to install a alocal working
> ebXML setup but we have
> encountered a problem. We hope you are able
> to help us.
>
> When we send a message from a msh_client to
> the MSH server the error
> occurs.
> The message is sent with the following
> information.
> from partyId:
> <a class="moz-txt-link-freetext" href="http://192.168.xxx.20:8080/msh">http://192.168.xxx.20:8080/msh</a>
> type: HTTP
> to partyId: <a class="moz-txt-link-freetext" href="mailto:ma...@19....20">mailto:ma...@19....20</a>
>
> type: MAIL
>
> the message is sent and it arrives at the MSH
> server. At that point I
> think the actual error occurs.
>
> The log file shows:
> sending message to <a class="moz-txt-link-abbreviated" href="mailto:ma...@19....20">ma...@19....20</a>
> through 192.168.xxx.20
> then it tells me a 10102 error Cannot Compose
> Mail Message occurs.
> the given exception is:
> javax.mail.internet.AddressException
> message: Nested Group
>
> after trying to resend 2 times the client
> receives an error message:
> errorCode="Delivery Failure" severity="Error"
>
> description="Communication error".
>
> which is logical offcourse :)
>
> Can you tell me if the email address format
> is not supported or if we
> are doing something wrong?
>
> Greetz,
>
> Mark Zenhorst
>
>
>
> -
> -----------------------------------------------------
>
> This SF.Net email sponsored by: ApacheCon
> 2003,
> 16-19 November in Las Vegas. Learn firsthand
> the latest
> developments in Apache, PHP, Perl, XML, Java,
> MySQL,
> WebDAV, and more! <a class="moz-txt-link-freetext" href="http://www.apachecon.com/">http://www.apachecon.com/</a>
>
> ______________________________________________
>
> ebxmlms-general mailing list
> <a class="moz-txt-link-abbreviated" href="mailto:ebx...@li...">ebx...@li...</a>
>
> ttps://lists.sourceforge.net/lists/listinfo/ebxmlms-general
>
</pre>
</blockquote>
</blockquote>
<pre wrap=""> ----------------------------------------------------------------
import java.io.*;
import java.util.*;
import javax.mail.*;
public class test {
public static void main(String[] args) throws Exception {
Session s;
Properties p = new Properties();
p.put("java.smtp.host", "smtp.abc.com");
s = Session.getInstance(p);
Provider prov = s.getProvider("smtp");
System.out.println(prov);
}
}
</pre>
</blockquote>
<pre wrap="">-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: <a class="moz-txt-link-freetext" href="http://sourceforge.net/donate/">http://sourceforge.net/donate/</a>
_______________________________________________
ebxmlms-general mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ebx...@li...">ebx...@li...</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/ebxmlms-general">https://lists.sourceforge.net/lists/listinfo/ebxmlms-general</a>
</pre>
</blockquote>
<pre wrap=""><!---->
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: <a class="moz-txt-link-freetext" href="http://sourceforge.net/donate/">http://sourceforge.net/donate/</a>
_______________________________________________
ebxmlms-general mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ebx...@li...">ebx...@li...</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/ebxmlms-general">https://lists.sourceforge.net/lists/listinfo/ebxmlms-general</a>
</pre>
</blockquote>
<br>
</body>
</html>
|