apache-mina

An established connection was aborted by the software in your host machine

旧城冷巷雨未停 提交于 2020-01-02 16:03:22
问题 The application uses quickfixj library, which uses Apache Mina. This application keeps a socket connection to a remote host. Suddenly we get the following error: [SocketConnectorIoProcessor-0.0] - ERROR quickfix.mina.initiator.InitiatorIoHandler - socket exception (/xxx.xxx.xxx.xxx:xx): An established connection was aborted by the software in your host machine where xxx.xxx.xxx.xxx:xx is the remote address. What may be causing the connection drop? The remote host? My OS? 回答1: The connection

An established connection was aborted by the software in your host machine

蹲街弑〆低调 提交于 2020-01-02 16:02:18
问题 The application uses quickfixj library, which uses Apache Mina. This application keeps a socket connection to a remote host. Suddenly we get the following error: [SocketConnectorIoProcessor-0.0] - ERROR quickfix.mina.initiator.InitiatorIoHandler - socket exception (/xxx.xxx.xxx.xxx:xx): An established connection was aborted by the software in your host machine where xxx.xxx.xxx.xxx:xx is the remote address. What may be causing the connection drop? The remote host? My OS? 回答1: The connection

several TCP-servers on the same port

ε祈祈猫儿з 提交于 2019-12-30 18:50:10
问题 It looks very strange for me. I can run several TCP servers on the same port. I use Apache MINA library with following code: IoAcceptor acceptor = new NioSocketAcceptor(); acceptor.bind(new InetSocketAddress(80)); Port 80 is already used by another program. But I didn't get exception "Address already in use". With netstat I can see following: C:\>netstat -oan |find /i "LIST" TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 2220 TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 904 TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 840

How To Handle Incoming Files In Apache Mina SSHD SFTP Server in Java

喜你入骨 提交于 2019-12-30 10:03:06
问题 Currently i am working on a SFTP protocol.I have created SFTP client Using Jsch Library and SFTP Server using Apache Mina Sshd library.I have made connection between them and can successfully send files to SFTP server.Now i am working on creating a SFTP server side file handler that handles the incoming files.As a example let say SFTP server can receive files from SFTP client but currently in my implementation there is no way to notify when file is arrived into server.I just go server root

How To Handle Incoming Files In Apache Mina SSHD SFTP Server in Java

故事扮演 提交于 2019-12-30 10:02:25
问题 Currently i am working on a SFTP protocol.I have created SFTP client Using Jsch Library and SFTP Server using Apache Mina Sshd library.I have made connection between them and can successfully send files to SFTP server.Now i am working on creating a SFTP server side file handler that handles the incoming files.As a example let say SFTP server can receive files from SFTP client but currently in my implementation there is no way to notify when file is arrived into server.I just go server root

How many connections can selector in java.nio select one at a time?

随声附和 提交于 2019-12-24 11:47:54
问题 I did a little research about new java socket NIO. I am using MINA for building a simulated server which accept connection from many clients(about 1000) and process the data received from them. I also set up the client simulator which creates around 300 client connection and send data to server using thread. And the result is some of the connection is aborted by the server. Code is below try { listener = new NioSocketAcceptor(ioThread); listener.getFilterChain().addLast("codec", new

Apache MINA - stuck on SSL connection

半世苍凉 提交于 2019-12-24 08:22:48
问题 I am having troubles with Apache MINA core library. When I deploy my application to a remote server some of the requests are not processed (around 2%). It looks like there might be a problem with SSL. Log tail: http://pastebin.com/48bwWsjs When request is not being processed, it is always stuck on the: org.apache.mina.filter.ssl.SslFilter - Session Server[40](ssl...): Processing the SSL Data Did something similar happened to any of you? I tried Apache-mina 2.0.7 and 2.0.16 Env: bash-4.2$ java

Apache Mina: How to write a Http Server?

╄→гoц情女王★ 提交于 2019-12-13 03:49:32
问题 I'm trying to write an Http Server using Apache Mina. According to Mina's architecture, there should be 2 filters for this task, one for Http Request Passing and another for processing the request and generating the response. So using the Mina example codes, I came up with the following code, that has an acceptor, logging filter, Http filter, and a filter for processing request. Initiation of the server runs correctly, but the request does not come to DummyHttpSever filter. I tried to debug,

Java Apache Mina FTP Server import libraries

萝らか妹 提交于 2019-12-11 15:04:09
问题 I want to create an Android FTP Server App with the Apache Mina FTP Server. The problem is the following: I can't import these libraries. I can select between two errors: If the libs aren't selected in "Java Build Path"/"Order and Export", I get this error: "Could not find class 'org.apache.ftpserver.FtpServerFactory' (...)" (Logcat) If they are selected, I get this error: Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lorg/apache/ftpserver/ftplet

strange messages in log file @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^

时光总嘲笑我的痴心妄想 提交于 2019-12-08 19:23:25
问题 I have a application server for network operations written with Java based on Apache Mina. Recently I encounter a strange behavior in my log files. I noticed that the log file is full of @^@^@^@^@^@^@^@^@^@^@^@^.... characters. I mean those unexpected characters are vast amount of as such the log file gets hundreds of GB in a couple of hours! I have no clue about this problem and it is almost impossible to google it. What could be the reason? Are those set of characters any familiar to