|
From: <hak...@la...> - 2005-11-07 08:26:19
|
Hi!
I've added the javax.mail.Session and javax.mail.Message objects to the =
log.
Also set debug to true on Session object.
The latter was shown in wrapper.log
...
INFO | jvm 1 | 2005/11/07 09:10:58 | Received a packet PING : ping
INFO | jvm 1 | 2005/11/07 09:10:58 | Send a packet PING : ok
DEBUG | wrapperp | 2005/11/07 09:10:58 | read a packet PING : ok
DEBUG | wrapper | 2005/11/07 09:10:58 | Got ping response from JVM
DEBUG | wrapper | 2005/11/07 09:11:00 | ServiceControlHandler(4)
DEBUG | wrapper | 2005/11/07 09:11:00 | SERVICE_CONTROL_INTERROGATE
INFO | jvm 1 | 2005/11/07 09:11:01 | DEBUG: setDebug: JavaMail =
version
1.3.3
INFO | jvm 1 | 2005/11/07 09:11:01 | DEBUG: getProvider() returning
javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc]
INFO | jvm 1 | 2005/11/07 09:11:01 | DEBUG SMTP: useEhlo true, =
useAuth
false
INFO | jvm 1 | 2005/11/07 09:11:01 | DEBUG SMTP: trying to connect =
to
host "212.32.186.35", port 25, isSSL false
DEBUG | wrapper | 2005/11/07 09:11:01 | ServiceControlHandler(4)
DEBUG | wrapper | 2005/11/07 09:11:01 | SERVICE_CONTROL_INTERROGATE
DEBUG | wrapperp | 2005/11/07 09:11:02 | send a packet PING : ping
INFO | jvm 1 | 2005/11/07 09:11:02 | Received a packet PING : ping
...
Below is the application log
...
(INFO, Thread-53, EVENT_LOG) 2005-11-07 09:11:00,828=20
<logvo logid=3D"4585b422785ac9de:1394894:10769c6689d:-7fde"=20
usr=3D"N/A"=20
class=3D"se.cesp.delivery.impl.OfferWebbEmail"=20
method=3D"handleDeliveryResult(DeliveryLogVO)"=20
hostip=3D"212.32.186.130">
<message>
OfferWebEmail.handleDeliveryResult: E-postlista
</message>
<logdata>
<var name=3D"emailList"><list>
<string>rob...@la...</string>
<string>ha...@cs...</string>
</list></var>
</logdata>
</logvo>=20
(INFO, Thread-53, EVENT_LOG) 2005-11-07 09:11:00,984=20
<logvo logid=3D"4585b422785ac9de:1394894:10769c6689d:-7fde"=20
usr=3D"N/A"=20
class=3D"se.cesp.delivery.common.util.EmailCommunicator"=20
method=3D"send(MessageVO, ArrayList)"=20
hostip=3D"212.32.186.130">
<message>
EmailCommunicator.send: convertedaddresses
</message>
<logdata>
<var =
name=3D"adresses">rob...@la...,ha...@cs...</var>
</logdata>
</logvo>=20
(ERROR, Thread-53, EVENT_LOG) 2005-11-07 09:11:02,078=20
<logvo logid=3D"4585b422785ac9de:1394894:10769c6689d:-7fde"=20
usr=3D"N/A"=20
class=3D"se.cesp.delivery.common.util.EmailCommunicator"=20
method=3D"send(MessageVO, ArrayList)"=20
hostip=3D"212.32.186.130">
<message>
Utskick f=F6r personen kunde inte slutf=F6ras.
</message>
<logdata>
<var name=3D"javax.mail.Message"><javax.mail.Message>
<dh>
<dataSource isNull=3D"true"></dataSource>
<objDataSource isNull=3D"true"></objDataSource>
<object class=3D"string"><HTML>
<HEAD>
<TITLE>
Stadspuls
</TITLE>
</HEAD>
<BODY>
<a href=3D"http://www.stadspuls.se"><img
src=3D"http://www.stadspuls.se/files/6e5ac004-72e9-4ccf-b809-011fdbf468c7=
/581b
91bd-b142-4c5b-802c-927d3362c0e5/ad6887c5-fcb3-4a52-82ac-25670bd6d0c9.jpg=
"&g
t;
</a>
<table style=3D"font-family:Verdana;font-size:10"> <tr>
<td> <table
style=3D"font-family:Verdana;font-size:10">
<tr> <td>Skickat:
<b>2005-11-07</b> </td>
</tr> <tr>
<td>Slutdatum: <b>2005-11-09</b>
</td> </tr>
<tr> <td>Avs=E4ndare:
<b>STADSPULS</b> </td>
</tr> </table> </td>
<td><img
src=3D"http://www.stadspuls.se/files/6e5ac004-72e9-4ccf-b809-011fdbf468c7=
/Logo
type/Logotype.jpg">
</td> </tr></table></BODY>
</HTML>
</object>
<objectMimeType>text/html</objectMimeType>
<currentCommandMap isNull=3D"true"></currentCommandMap>
<transferFlavors/>
<dataContentHandler isNull=3D"true"></dataContentHandler>
<factoryDCH isNull=3D"true"></factoryDCH>
<oldFactory isNull=3D"true"></oldFactory>
<shortType isNull=3D"true"></shortType>
</dh>
<content isNull=3D"true"></content>
<contentStream isNull=3D"true"></contentStream>
<headers>
<headers>
<javax.mail.internet.hdr>
<name>Return-Path</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>Received</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>Message-Id</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>Resent-Date</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>Date</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>Resent-From</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>From</name>
<line>From: se...@st...</line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>Reply-To</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>Sender</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>To</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>Subject</name>
<line>Subject: =3D?Cp1252?Q?testa_det_h=3DE4r?=3D</line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>Cc</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>In-Reply-To</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>Resent-Message-Id</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>Errors-To</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>MIME-Version</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>Content-Type</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>Content-Transfer-Encoding</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>Content-MD5</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>Bcc</name>
<line>Bcc: rob...@la..., ha...@cs...</line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>:</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>Content-Length</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
<javax.mail.internet.hdr>
<name>Status</name>
<line isNull=3D"true"></line>
</javax.mail.internet.hdr>
</headers>
</headers>
<flags>
<system__flags>0</system__flags>
<user__flags isNull=3D"true"></user__flags>
</flags>
<modified>true</modified>
<saved>false</saved>
<strict>true</strict>
<msgnum>0</msgnum>
<expunged>false</expunged>
<folder isNull=3D"true"></folder>
<session>
<props>
<property name=3D"mail.smtp.port" value=3D"25"/>
<property name=3D"mail.transport.protocol" value=3D"smtp"/>
<property name=3D"mail.smtp.host" value=3D"212.32.186.35"/>
</props>
<authenticator isNull=3D"true"></authenticator>
<authTable/>
<debug>true</debug>
<out isNull=3D"true"></out>
<providers>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>imap</protocol>
<className>com.sun.mail.imap.IMAPStore</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>imaps</protocol>
<className>com.sun.mail.imap.IMAPSSLStore</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
<javax.mail.Provider>
<type>
<type>Transport</type>
</type>
<protocol>smtp</protocol>
<className>com.sun.mail.smtp.SMTPTransport</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
<javax.mail.Provider>
<type>
<type>Transport</type>
</type>
<protocol>smtps</protocol>
<className>com.sun.mail.smtp.SMTPSSLTransport</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>pop3</protocol>
<className>com.sun.mail.pop3.POP3Store</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>pop3s</protocol>
<className>com.sun.mail.pop3.POP3SSLStore</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</providers>
<providersByProtocol>
<entry>
<string>imaps</string>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>imaps</protocol>
<className>com.sun.mail.imap.IMAPSSLStore</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>imap</string>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>imap</protocol>
<className>com.sun.mail.imap.IMAPStore</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>smtps</string>
<javax.mail.Provider>
<type>
<type>Transport</type>
</type>
<protocol>smtps</protocol>
<className>com.sun.mail.smtp.SMTPSSLTransport</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>pop3</string>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>pop3</protocol>
<className>com.sun.mail.pop3.POP3Store</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>pop3s</string>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>pop3s</protocol>
<className>com.sun.mail.pop3.POP3SSLStore</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>smtp</string>
<javax.mail.Provider>
<type>
<type>Transport</type>
</type>
<protocol>smtp</protocol>
<className>com.sun.mail.smtp.SMTPTransport</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
</providersByProtocol>
<providersByClassName>
<entry>
<string>com.sun.mail.smtp.SMTPSSLTransport</string>
<javax.mail.Provider>
<type>
<type>Transport</type>
</type>
<protocol>smtps</protocol>
<className>com.sun.mail.smtp.SMTPSSLTransport</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>com.sun.mail.smtp.SMTPTransport</string>
<javax.mail.Provider>
<type>
<type>Transport</type>
</type>
<protocol>smtp</protocol>
<className>com.sun.mail.smtp.SMTPTransport</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>com.sun.mail.imap.IMAPSSLStore</string>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>imaps</protocol>
<className>com.sun.mail.imap.IMAPSSLStore</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>com.sun.mail.pop3.POP3SSLStore</string>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>pop3s</protocol>
<className>com.sun.mail.pop3.POP3SSLStore</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>com.sun.mail.imap.IMAPStore</string>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>imap</protocol>
<className>com.sun.mail.imap.IMAPStore</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>com.sun.mail.pop3.POP3Store</string>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>pop3</protocol>
<className>com.sun.mail.pop3.POP3Store</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
</providersByClassName>
<addressMap>
<property name=3D"rfc822" value=3D"smtp"/>
</addressMap>
</session>
</javax.mail.Message></var>
<var name=3D"javax.mail.Session"><javax.mail.Session>
<props>
<property name=3D"mail.smtp.port" value=3D"25"/>
<property name=3D"mail.transport.protocol" value=3D"smtp"/>
<property name=3D"mail.smtp.host" value=3D"212.32.186.35"/>
</props>
<authenticator isNull=3D"true"></authenticator>
<authTable/>
<debug>true</debug>
<out isNull=3D"true"></out>
<providers>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>imap</protocol>
<className>com.sun.mail.imap.IMAPStore</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>imaps</protocol>
<className>com.sun.mail.imap.IMAPSSLStore</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
<javax.mail.Provider>
<type>
<type>Transport</type>
</type>
<protocol>smtp</protocol>
<className>com.sun.mail.smtp.SMTPTransport</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
<javax.mail.Provider>
<type>
<type>Transport</type>
</type>
<protocol>smtps</protocol>
<className>com.sun.mail.smtp.SMTPSSLTransport</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>pop3</protocol>
<className>com.sun.mail.pop3.POP3Store</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>pop3s</protocol>
<className>com.sun.mail.pop3.POP3SSLStore</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</providers>
<providersByProtocol>
<entry>
<string>imaps</string>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>imaps</protocol>
<className>com.sun.mail.imap.IMAPSSLStore</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>imap</string>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>imap</protocol>
<className>com.sun.mail.imap.IMAPStore</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>smtps</string>
<javax.mail.Provider>
<type>
<type>Transport</type>
</type>
<protocol>smtps</protocol>
<className>com.sun.mail.smtp.SMTPSSLTransport</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>pop3</string>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>pop3</protocol>
<className>com.sun.mail.pop3.POP3Store</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>pop3s</string>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>pop3s</protocol>
<className>com.sun.mail.pop3.POP3SSLStore</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>smtp</string>
<javax.mail.Provider>
<type>
<type>Transport</type>
</type>
<protocol>smtp</protocol>
<className>com.sun.mail.smtp.SMTPTransport</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
</providersByProtocol>
<providersByClassName>
<entry>
<string>com.sun.mail.smtp.SMTPSSLTransport</string>
<javax.mail.Provider>
<type>
<type>Transport</type>
</type>
<protocol>smtps</protocol>
<className>com.sun.mail.smtp.SMTPSSLTransport</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>com.sun.mail.smtp.SMTPTransport</string>
<javax.mail.Provider>
<type>
<type>Transport</type>
</type>
<protocol>smtp</protocol>
<className>com.sun.mail.smtp.SMTPTransport</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>com.sun.mail.imap.IMAPSSLStore</string>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>imaps</protocol>
<className>com.sun.mail.imap.IMAPSSLStore</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>com.sun.mail.pop3.POP3SSLStore</string>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>pop3s</protocol>
<className>com.sun.mail.pop3.POP3SSLStore</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>com.sun.mail.imap.IMAPStore</string>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>imap</protocol>
<className>com.sun.mail.imap.IMAPStore</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
<entry>
<string>com.sun.mail.pop3.POP3Store</string>
<javax.mail.Provider>
<type>
<type>Store</type>
</type>
<protocol>pop3</protocol>
<className>com.sun.mail.pop3.POP3Store</className>
<vendor>Sun Microsystems, Inc</vendor>
<version isNull=3D"true"></version>
</javax.mail.Provider>
</entry>
</providersByClassName>
<addressMap>
<property name=3D"rfc822" value=3D"smtp"/>
</addressMap>
</javax.mail.Session></var>
</logdata>
</logvo>=20
javax.mail.MessagingException: Could not connect to SMTP host:
212.32.186.35, port: 25;
nested exception is:
java.net.ConnectException: Connection refused: connect
at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1227)
at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322)
at javax.mail.Service.connect(Service.java:236)
at javax.mail.Service.connect(Service.java:137)
at javax.mail.Service.connect(Service.java:86)
at javax.mail.Transport.send0(Transport.java:150)
at javax.mail.Transport.send(Transport.java:80)
at
se.cesp.delivery.common.util.EmailCommunicator.send(EmailCommunicator.jav=
a:1
92)
at
se.cesp.delivery.impl.OfferWebbEmail.handleDeliveryResult(OfferWebbEmail.=
jav
a:219)
at
se.cesp.delivery.common.util.DeliveryMonitorInvoker.run(DeliveryMonitorIn=
vok
er.java:95)
at java.lang.Thread.run(Thread.java:534)
(ERROR, Thread-53, EVENT_LOG) 2005-11-07 09:11:02,093=20
<logvo logid=3D"4585b422785ac9de:1394894:10769c6689d:-7fde"=20
usr=3D"N/A"=20
class=3D"se.cesp.delivery.impl.OfferWebbEmail"=20
method=3D"handleDeliveryResult(DeliveryLogVO)"=20
hostip=3D"212.32.186.130">
<message>
Throwable occured, code: 302010001
</message>
<logdata>
<var name=3D"MessageVO"><MessageVO>
<parameters class=3D"hashtable">
<entry>
<string>URL</string>
<se.cesp.delivery.common.vo.MessageDataVO>
<value>http://www.stadspuls.se</value>
<path isNull=3D"true"></path>
<componentName>URL</componentName>
</se.cesp.delivery.common.vo.MessageDataVO>
</entry>
<entry>
<string>Bild</string>
<se.cesp.delivery.common.vo.MessageDataVO>
<value>teknikmagasinetpowerball2.jpg</value>
=20
<path>6e5ac004-72e9-4ccf-b809-011fdbf468c7/581b91bd-b142-4c5b-802c-927d33=
62c
0e5/ad6887c5-fcb3-4a52-82ac-25670bd6d0c9.jpg</path>
<componentName>Bild</componentName>
</se.cesp.delivery.common.vo.MessageDataVO>
</entry>
<entry>
<string>Rubrik</string>
<se.cesp.delivery.common.vo.MessageDataVO>
<value>testa det h=E4r</value>
<path isNull=3D"true"></path>
<componentName>Rubrik</componentName>
</se.cesp.delivery.common.vo.MessageDataVO>
</entry>
</parameters>
<templateId>2D30A9DF-366E-4367-96A5-C87796AA3B03</templateId>
<companyName>STADSPULS</companyName>
=20
<logotypeUrl>6e5ac004-72e9-4ccf-b809-011fdbf468c7/Logotype/Logotype.jpg</=
log
otypeUrl>
<interest isNull=3D"true"></interest>
</MessageVO></var>
<var name=3D"emailList"><list>
<string>rob...@la...</string>
<string>ha...@cs...</string>
</list></var>
</logdata>
</logvo>=20
se.cesp.delivery.common.util.exception.CespSystemException
at
se.cesp.delivery.common.util.EmailCommunicator.send(EmailCommunicator.jav=
a:2
01)
at
se.cesp.delivery.impl.OfferWebbEmail.handleDeliveryResult(OfferWebbEmail.=
jav
a:219)
at
se.cesp.delivery.common.util.DeliveryMonitorInvoker.run(DeliveryMonitorIn=
vok
er.java:95)
at java.lang.Thread.run(Thread.java:534)
-----Original Message-----
From: wra...@li...
[mailto:wra...@li...] On Behalf Of Leif
Mortenson
Sent: den 7 november 2005 05:35
To: wra...@li...
Subject: Re: [Wrapper-user] Problem with SMTP on Windows
Hakan,
Could you try putting some debug information around the code trying to=20
send the mail?
I have SMTP mail features in most of the applications I write to notify=20
administrators of
problems and have never had any problems with it. I use the SUN Javamail =
jars.
There are some restrictions about accessing windows network drives and=20
printers
when running as a service, but not about opening arbitrary sockets.
Could you post the error message and stack trace you are getting? It=20
might give me
some ideas.
Cheers,
Leif
H=E5kan Fransson wrote:
>Hi again and thanks for the answer. First i would like to say that
>it's a nice framework, easy to understand and very configurable.
>
>The smtp settings seems to work fine, it's through a regular=20
>property file. E.g mail server and port is from property file and=20
>their properties come out in the stacktrace so it's probably not that.
>I've changed the user on the service to administrator as with console =
but
>it doesn't help. I wonder if it's some security policy in windows but i =
>have no clue.
>/H=E5kan
>
>
>-----Original Message-----
>From: wra...@li...
>[mailto:wra...@li...] On Behalf Of Leif
>Mortenson
>Sent: den 6 november 2005 12:38
>To: wra...@li...
>Subject: Re: [Wrapper-user] Problem with SMTP on Windows
>
>Hakan,
>How are the SMTP settings being configured in your application? There=20
>shouldn't be
>anything about the Wrapper that would prevent you from connecting to=20
>your mail server
>if it is being configured correctly. Try adding the =
wrapper.debug=3Dtrue=20
>property and
>verify that the command line being used to launch the JVM contains all=20
>of the expected
>values.
>A common problem is problems with environment variables. Make sure that =
any
>variables your application needs are defined system wide and not just=20
>for your user.
>
>Cheers,
>Leif
>
>
>H=E5kan Fransson wrote:
>
> =20
>
>>Hi!
>>I=92m just started to use the wrapper to make a Windows service of my =
java
>>application. It works perfectly when
>>i run it as a consle but when i=92m try to send an email with wrapper =
as a
>>windows service i get:
>>
>>javax.mail.MessagingException: Could not connect to SMTP host:
>>mail.steencon.se, port: 25;
>> nested exception is:
>> java.net.ConnectException: Connection refused: connect
>> at
>>com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1227)
>> at
>>com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322)=
>> at javax.mail.Service.connect(Service.java:236)
>> at javax.mail.Service.connect(Service.java:137)
>> at javax.mail.Service.connect(Service.java:86)
>> at javax.mail.Transport.send0(Transport.java:150)
>> at javax.mail.Transport.send(Transport.java:80)
>> at
>>se.cesp.delivery.common.util.EmailCommunicator.send(EmailCommunicator.j=
ava
:
>> =20
>>
>1
> =20
>
>>88)
>> at
>>se.cesp.delivery.impl.OfferWebbEmail.execute(OfferWebbEmail.java:95)
>> at
>>se.cesp.delivery.common.util.DeliveryInvoker.run(DeliveryInvoker.java:8=
1)
>> at java.lang.Thread.run(Thread.java:534)
>>
>>It doesn=92t matter i run the service with system account or
administrator(as
>>with console), it=92s the same
>>result.
>>The java application also uses FTP and it works fine in both ways.
>>Any ideas?
>>
>>Thanks in advance H=E5kan
>>
>>----------------------------------------------------------------
>>H=E5kan Fransson Phone: +46(0)90 - 786 74 93
>>Ladokenheten Fax: +46(0)90 - 786 69 91
>>Ume=E5 University www: www.umu.se/ladokenheten
>>SE - 90187 Ume=E5
>>-------------------------------------------------------------
>>=20
>> =20
>>
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. =
Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
|