james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yan Wang (JIRA)" <server-...@james.apache.org>
Subject [jira] [Created] (JAMES-1519) TLS connection failed
Date Fri, 16 Aug 2013 15:36:47 GMT
Yan Wang created JAMES-1519:
-------------------------------

             Summary: TLS connection failed
                 Key: JAMES-1519
                 URL: https://issues.apache.org/jira/browse/JAMES-1519
             Project: James Server
          Issue Type: Bug
          Components: James Core, SMTPServer
    Affects Versions: 3.0-beta4
         Environment: Red Hat Enterprise Linux Server release 5.5 (Tikanga), java version
"1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.8) (rhel-1.22.1.9.8.el5_6-x86_64)
            Reporter: Yan Wang


When use thunderbird to send 2 mails via James 3.0-beta4 SMTP server with TLS connection.
The first mail will process, but the second mail always fails. 

For the second mail, the error occurs when channelConnected, and the James server is trying
to send a response message [220 sample.server.domain JAMES SMTP Server Server (JAMES SMTP
Server ) ready] to the client. 

The error occurs in org.apache.james.protocols.netty.BasicChannelUpstreamHandler.channelConnected()
 in line ((ProtocolSessionImpl)session).getProtocolTransport().writeResponse(response, session);

The error message is as below:

javax.net.ssl.SSLException: Received fatal alert: unexpected_message
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
        at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1430)
        at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1398)
        at sun.security.ssl.SSLEngineImpl.recvAlert(SSLEngineImpl.java:1560)
        at sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:1031)
        at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:845)
        at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:719)
        at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
        at org.jboss.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:931)
        at org.jboss.netty.handler.ssl.SslHandler.decode(SslHandler.java:649)
        at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:288)
        at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:207)
        at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
        at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
        at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:343)
        at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:274)
        at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:194)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:636)
DEBUG 10:26:31,394 | james.smtpserver | Id='305658631' User='' Unable to process request
javax.net.ssl.SSLException: Received fatal alert: unexpected_message
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
        at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1430)
        at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1398)
        at sun.security.ssl.SSLEngineImpl.recvAlert(SSLEngineImpl.java:1560)
        at sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:1031)
        at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:845)
        at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:719)
        at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
        at org.jboss.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:931)
        at org.jboss.netty.handler.ssl.SslHandler.decode(SslHandler.java:649)
        at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:288)
        at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:207)
        at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
        at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
        at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:343)
        at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:274)
        at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:194)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:636)


java.io.IOException: Connection reset by peer
        at sun.nio.ch.FileDispatcher.read0(Native Method)
        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:251)
        at sun.nio.ch.IOUtil.read(IOUtil.java:218)
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:254)
        at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:315)
        at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:274)
        at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:194)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:636)
DEBUG 10:26:31,398 | james.smtpserver | Id='305658631' User='' Unable to process request
java.io.IOException: Connection reset by peer
        at sun.nio.ch.FileDispatcher.read0(Native Method)
        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:251)
        at sun.nio.ch.IOUtil.read(IOUtil.java:218)
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:254)
        at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:315)
        at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:274)
        at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:194)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:636)


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message