Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Liferay DXP mail server locked
Hi All,
I have configured a mail server in Liferay DXP 7.0 sp3 that works for one two days then mail stops working .
Below is the error for that
"liferay/mail-65" #1613 daemon prio=5 os_prio=0 tid=0x00007f2e8c032d70 nid=0x1b94 runnable [0x00007f2e561f5000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:124)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
- locked <0x0000000435849548> (a java.io.BufferedInputStream)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:92)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2331)
at com.sun.mail.smtp.SMTPTransport.simpleCommand(SMTPTransport.java:2281)
at com.sun.mail.smtp.SMTPTransport$LoginAuthenticator.doAuth(SMTPTransport.java:949)
at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:891)
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:825)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:730)
- locked <0x00000004363c6ff0> (a com.sun.mail.smtp.SMTPTransport)
at javax.mail.Service.connect(Service.java:366)
- locked <0x00000004363c6ff0> (a com.sun.mail.smtp.SMTPTransport)
at com.liferay.util.mail.MailEngine._send(MailEngine.java:583)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:382)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:457)
at com.liferay.mail.messaging.MailMessageListener.doMailMessage(MailMessageListener.java:94)
at com.liferay.mail.messaging.MailMessageListener.doReceive(MailMessageListener.java:109)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
at java.lang.Thread.run(Thread.java:748)
Locked ownable synchronizers:
- None
Please suggest what is cusing this and how can we reslove that.
I have configured a mail server in Liferay DXP 7.0 sp3 that works for one two days then mail stops working .
Below is the error for that
"liferay/mail-65" #1613 daemon prio=5 os_prio=0 tid=0x00007f2e8c032d70 nid=0x1b94 runnable [0x00007f2e561f5000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:124)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
- locked <0x0000000435849548> (a java.io.BufferedInputStream)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:92)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2331)
at com.sun.mail.smtp.SMTPTransport.simpleCommand(SMTPTransport.java:2281)
at com.sun.mail.smtp.SMTPTransport$LoginAuthenticator.doAuth(SMTPTransport.java:949)
at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:891)
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:825)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:730)
- locked <0x00000004363c6ff0> (a com.sun.mail.smtp.SMTPTransport)
at javax.mail.Service.connect(Service.java:366)
- locked <0x00000004363c6ff0> (a com.sun.mail.smtp.SMTPTransport)
at com.liferay.util.mail.MailEngine._send(MailEngine.java:583)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:382)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:457)
at com.liferay.mail.messaging.MailMessageListener.doMailMessage(MailMessageListener.java:94)
at com.liferay.mail.messaging.MailMessageListener.doReceive(MailMessageListener.java:109)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
at java.lang.Thread.run(Thread.java:748)
Locked ownable synchronizers:
- None
Please suggest what is cusing this and how can we reslove that.
Lokesh SharmaHi All,As you're running DXP, you might want to open a support ticket in Helpcenter, to see if there is a similar issue known to the support team. If it's easy to reproduce, you might want to check if this is reproducible in SP10. Note that you're running in quite an old Service pack - you should make use of your subscription and profit from updates.
I have configured a mail server in Liferay DXP 7.0 sp3 that works for one two days then mail stops working .
Below is the error for that
"liferay/mail-65" #1613 daemon prio=5 os_prio=0 tid=0x00007f2e8c032d70 nid=0x1b94 runnable [0x00007f2e561f5000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
....
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:825)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:730)
- locked <0x00000004363c6ff0> (a com.sun.mail.smtp.SMTPTransport)
at javax.mail.Service.connect(Service.java:366)
- locked <0x00000004363c6ff0> (a com.sun.mail.smtp.SMTPTransport)
at com.liferay.util.mail.MailEngine._send(MailEngine.java:583)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:382)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:457)
Please suggest what is cusing this and how can we reslove that.
Something like this happens usually, when connections hang in a firewall that swallows requests. Or when the server does not answer for other reasons. I had something similar with tomcat, when it reached its thread limit and new connections were waiting forever to be processed.
Is there a firewall between your mailserver and Liferay that might drop connections?
Could you check on the Liferay server and the smtp server, if you have hanging connections? You can usually check with netstat -an (on Linux). Maybe you can also see an error or a warning in your mailserver.
Is there a firewall between your mailserver and Liferay that might drop connections?
Could you check on the Liferay server and the smtp server, if you have hanging connections? You can usually check with netstat -an (on Linux). Maybe you can also see an error or a warning in your mailserver.