apache-mina

Run (synchronize) mina client on Android, how to resolve ClassNotFoundException

ⅰ亾dé卋堺 提交于 2019-12-08 06:35:36
问题 I have setup a mina(2.0.4) server on PC, it works fine since I have written a mina client on PC to communincation with it. Then I implemented a synchronize Mina Client on android, but the client can not decode the received response message. I am new to Java and android, I have put 3 whole days effort on that. Anybody please help. thanks all in advance. I summarized my part code here: First setup mina client. public boolean startMinaClient(){ MessageCodecFactory factory = new

Is it worthy to migrate quickfixj from Mina to Netty?

大城市里の小女人 提交于 2019-12-08 05:35:58
问题 I am writing a FIX buyside GUI based on quickfixj. Although the performance is not an issue to a GUI, I am thinking of migrating the quickfixj from Mina to Netty as I would like to develop it to a buyside engine. The performance of quickfixj is not satisfied with me. It is heard that Netty is better than Mina on performance. Does anyone know is there any other opensource FIX engine on Java platform(because of many bugs in quickfixj)?I am wondering which one is a better choice, migration or

Is it worthy to migrate quickfixj from Mina to Netty?

走远了吗. 提交于 2019-12-06 14:36:44
I am writing a FIX buyside GUI based on quickfixj. Although the performance is not an issue to a GUI, I am thinking of migrating the quickfixj from Mina to Netty as I would like to develop it to a buyside engine. The performance of quickfixj is not satisfied with me. It is heard that Netty is better than Mina on performance. Does anyone know is there any other opensource FIX engine on Java platform(because of many bugs in quickfixj)?I am wondering which one is a better choice, migration or another FIX engine? I am not sure how much perfomance gain you are expecting from implementing Netty

Apache MINA SSHD - Problems with authentication method when connecting to server

狂风中的少年 提交于 2019-12-06 09:31:58
I am trying to follow Apache MINA's guide for setting up a SSHD server but I run into problems when connecting to it with PuTTY. I get to enter a username but then get slapped with the following error message: Below is the code for my server. Do I have to manually set an authentication method for the server? Or am I doing something else wrong? sshd = SshServer.setUpDefaultServer(); sshd.setPort(3333); List<NamedFactory<UserAuth>> userAuthFactories = new ArrayList<NamedFactory<UserAuth>>(); sshd.setUserAuthFactories(userAuthFactories); sshd.setKeyPairProvider(new SimpleGeneratorHostKeyProvider(

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

血红的双手。 提交于 2019-12-06 04:12: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? The connection was being dropped by some switch because the machine bandwidth was too high (above the limit) Most firewalls

“no matching host key type found” - Apache MINA SFTP server

雨燕双飞 提交于 2019-12-05 00:28:57
问题 I’m hoping to set up a SFTP server in Java using Apache MINA. It seems to start OK, but when I try to connect to it with an OpenSSH client, I get: $ ssh localhost -p 2222 Unable to negotiate with ::1: no matching host key type found. Their offer: ssh-dss $ ssh -V OpenSSH_7.1p1, OpenSSL 1.0.2d 9 Jul 2015 The Java app logs: ! java.lang.IllegalStateException: Unable to negotiate key exchange for server host key algorithms (client: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert

SFTP server set user/password in Apache Mina SSHD

倖福魔咒の 提交于 2019-12-03 12:15:37
问题 I'm using this example, taken from Java SFTP Server Library?: public void setupSftpServer(){ SshServer sshd = SshServer.setUpDefaultServer(); sshd.setPort(22); sshd.setKeyPairProvider(new SimpleGeneratorHostKeyProvider("hostkey.ser")); List<NamedFactory<UserAuth>> userAuthFactories = new ArrayList<NamedFactory<UserAuth>>(); userAuthFactories.add(new UserAuthNone.Factory()); sshd.setUserAuthFactories(userAuthFactories); sshd.setCommandFactory(new ScpCommandFactory()); List<NamedFactory<Command

SFTP server set user/password in Apache Mina SSHD

邮差的信 提交于 2019-12-03 03:25:47
I'm using this example, taken from Java SFTP Server Library? : public void setupSftpServer(){ SshServer sshd = SshServer.setUpDefaultServer(); sshd.setPort(22); sshd.setKeyPairProvider(new SimpleGeneratorHostKeyProvider("hostkey.ser")); List<NamedFactory<UserAuth>> userAuthFactories = new ArrayList<NamedFactory<UserAuth>>(); userAuthFactories.add(new UserAuthNone.Factory()); sshd.setUserAuthFactories(userAuthFactories); sshd.setCommandFactory(new ScpCommandFactory()); List<NamedFactory<Command>> namedFactoryList = new ArrayList<NamedFactory<Command>>(); namedFactoryList.add(new SftpSubsystem

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

隐身守侯 提交于 2019-12-01 09:26:32
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 folder and see if there is a files available.That is how i know if files are arrived. I would like to

How to get an acknowledgement for the client socket from server?

喜夏-厌秋 提交于 2019-12-01 01:43:30
I have a client socket which sends messages to the server.I want to get an acknowledgement on the client side whenever the server receives the message. Is it possible to get that acknowledgement. I developed the client using apache mina. Thanks in advance. There are no messages in TCP, only a byte stream. There is an internal ACK mechanism that tracks how much of the stream has been correctly received, but it is not available to applications. If you want an acknowledgment from the server, your server will have to send it. 来源: https://stackoverflow.com/questions/12792967/how-to-get-an