Error:
The last packet successfully received from the server was 184 milliseconds ago. The last packet sent successfully to the server was 169 milliseconds ago.
java.io.EOFException: SSL peer shut down incorrectly.
But, I changed to another tool like DBaver and can successfully create the connection:
enter image description here
Related
In my production environment I got the following error in my server:
Cannot forward to error page for request [/api/validation] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you may be able to resolve this problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false
org.apache.catalina.connector.ClientAbortException: java.io.IOException: Connection reset by peer
Now I created a client and produced 1000 thread every second to call this [/api/validation].
The error I got was
Exception in thread "Thread-9954" org.springframework.web.client.ResourceAccessException: I/O error on POST request for "http://localhost:7080/v1/name/validate": Timeout waiting for connection from pool; nested exception is org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool.
Now I want to know is what is the cause of Connection reset by peer .
According to what I know is this error occurs when the client aborts the connection by sending the RST packet.
I set the socket Timeout of my client's rest template to 9000. I make the server sleep for about 15000 MS. Now shouldn't the server get Connection reset by peer as the server tries to send the response after 15 seconds and my client just waits for about 9 seconds. Shouldn't I get the error?
Also in the production environment the wait time (Rest template socket time out) for the client is set to about a 90 seconds ( more than the time the server requires to response). Why is the error being produced in the production?
I'm using authWithCustomToken method to login with Firebase. Login takes approximately 5 seconds or more. I enabled Firebase log (setLogLevel(Logger.Level.DEBUG)) for monitoring is there a any problem. Log is here (I trimmed a bit, if necessary i can give a link for it):
PS: android firebase client version is 2.5.0
ws_0 - websocket opened
conn_0 - Got control message: {t=r, d=s-softlayer.firebaseio.com}
conn_0 - Got a reset; killing connection to tbf.firebaseio.com; Updating internalHost to s-softlayer.firebaseio.com
conn_0 - closing realtime connection
handleIncomingFrame complete frame: {d={t=r, d=s-softlayer.firebaseio.com}, t=c}
ws_0 - websocket is being closed
ws_0 - had an error
com.firebase.tubesock.WebSocketException: IO Error
at com.firebase.tubesock.WebSocketReceiver.run(WebSocketReceiver.java:78)
at com.firebase.tubesock.WebSocket.runReader(WebSocket.java:372)
at com.firebase.tubesock.WebSocket.access$000(WebSocket.java:30)
at com.firebase.tubesock.WebSocket$2.run(WebSocket.java:108)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.io.EOFException
at libcore.io.Streams.readFully(Streams.java:83)
at java.io.DataInputStream.readFully(DataInputStream.java:99)
at com.firebase.tubesock.WebSocketReceiver.read(WebSocketReceiver.java:141)
at com.firebase.tubesock.WebSocketReceiver.run(WebSocketReceiver.java:34)
at com.firebase.tubesock.WebSocket.runReader(WebSocket.java:372)
at com.firebase.tubesock.WebSocket.access$000(WebSocket.java:30)
at com.firebase.tubesock.WebSocket$2.run(WebSocket.java:108)
at java.lang.Thread.run(Thread.java:818)
ws_0 - |IO Error|
ws_0 - closed
conn_1 - Opening a connection
ws_1 - websocket opened
ws_1 - handleIncomingFrame complete frame: {d={t=r, d=s-dal5-nss-19.firebaseio.com}, t=c}
conn_1 - Got control message: {t=r, d=s-dal5-nss-19.firebaseio.com}
conn_1 - Got a reset; killing connection to s-softlayer.firebaseio.com; Updating internalHost to s-dal5-nss-19.firebaseio.com
conn_1 - closing realtime connection
ws_1 - websocket is being closed
ws_1 - had an error
com.firebase.tubesock.WebSocketException: IO Error
at com.firebase.tubesock.WebSocketReceiver.run(WebSocketReceiver.java:78)
...
Caused by: java.io.EOFException
at libcore.io.Streams.readFully(Streams.java:83)
...
ws_1 - |IO Error|
ws_1 - closed
conn_2 - Opening a connection
ws_1 - had an error
com.firebase.tubesock.WebSocketException: IO Exception
...
ws_1 - |IO Exception|
ws_2 - websocket opened
conn_2 - Got control message: {t=h, d={ts=1452086065546, v=5, h=s-dal5-nss-19.firebaseio.com, s=EaQhQ7iRAjeWVxvzBJEFD7k4TKFsmrms}}
conn_2 - realtime connection established
Is this log saying there is an error?
Should I ignore it? If yes, why login takes too long?
There is no information in the output to determine any timing impact. But as far as I can tell the flow looks normal. Your first two connections are being redirected. The third connection then reaches the correct server, which responds with "realtime connection established".
The problem is doing authentication after keepSynced(true) line. Synced node has approximately 250KB data. I think syncing the data blocks my authentication. On the other hand, firebase can not sync the node because it has to authenticate for reading the node.(looks like deadlock) I'm not sure what the actual reason but removing keepSynced(true) line fixed my problem for now.
Firebase ref = new Firebase("my_firebase_url");
ref.child("matches").keepSynced(true); // removed this line
ref.authWithCustomToken(...);
When I am trying to upload file through my own ftp client application to FTP server , sometimes I am able to upload 20 GB file but sometimes I am getting following error:-
System.IO.Exception: Unable to write data to transport connection:-> An existing connection was forcibly closed by remote host
System.Net.Sockets.SocketException:An existing connection was forcibly closed by remote host
at System.Net.Sockets.Socket.Send(Byte[]buffer, Int32 offset,Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Write(Byte[]buffer, Int32 offset,Int32 size)
Is this problem of FTP application or router which is breaking this connection?
I am trying to execute JDBC request but following error appears:
Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
Here is a real life conversation (with IP, Hostname and ports masked) between the product I support and the z/OS based FTPS Server:
Our product uses Java FTP libraries from EnterpriseDT
---> SYST
215 MVS z/OS 011100 is the operating system for Connect:
---> PORT 111,111,111,111,11,111
200 PORT command successful.
---> LIST
150 Opening data connection.
Validating the server certificate when connecting to 'ftp.abc.com'.
Successfully validated the SSL server certificate when connecting to 'ftp.abc.com'
226 List complete. Closing data connection. 1 batches listed.
No input files found on server.
I don't understand the last two lines of the conversation. Why do I only receive a list and not the actual file?