[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sonar-user
Subject:    [sonar-user] Re: Some problems getting the email to work
From:       jmecosta <jmecosta () gmail ! com>
Date:       2012-06-28 9:44:24
Message-ID: 1340876664775-5000376.post () n6 ! nabble ! com
[Download RAW message or body]

Hi,

So got back to this, and its not a problem with firewall. Ive installed
jenkins in the same machine and try and it works. The difference, jre
version.

The problems described above resulted when using jre 

java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b22)
Java HotSpot(TM) Client VM (build 23.0-b21, mixed mode, sharing)

Then ive changed to jre supplied by jenkins
C:\sonar-3.1.1\bin\windows-x86-32>"C:\Program Files
(x86)\Jenkins\jre\bin\java.exe" -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode)

And then i try, and got the following exception:

Caused by: javax.mail.MessagingException: Exception reading response
	at
com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1611)
~[na:na]
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1369)
~[na:na]
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412)
~[na:na]
	at javax.mail.Service.connect(Service.java:288) ~[na:na]
	at javax.mail.Service.connect(Service.java:169) ~[na:na]
	at javax.mail.Service.connect(Service.java:118) ~[na:na]
	at javax.mail.Transport.send0(Transport.java:188) ~[na:na]
	at javax.mail.Transport.send(Transport.java:118) ~[na:na]
	at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1232) ~[na:na]
	... 249 common frames omitted
Caused by: java.net.SocketTimeoutException: Read timed out
	at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.6.0_26]
	at java.net.SocketInputStream.read(Unknown Source) ~[na:1.6.0_26]
	at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110)
~[na:na]
	at java.io.BufferedInputStream.fill(Unknown Source) ~[na:1.6.0_26]
	at java.io.BufferedInputStream.read(Unknown Source) ~[na:1.6.0_26]
	at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:88)
~[na:na]
	at
com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1589)
~[na:na]
	... 257 common frames omitted

I notice that in jenkins the response from the server is really slow but it
works after some time, is there any way of configuring this timeout value in
the wrapper configuration in sonar? At least i will get this working in my
server.

Thanks

JC



--
View this message in context: \
http://sonar.15.n6.nabble.com/Some-problems-getting-the-email-to-work-tp4999941p5000376.html
 Sent from the Sonar user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic