Questions tagged [mina]

Apache MINA is a network application framework which helps users develop high performance and high scalability network applications easily. It provides an abstract event-driven asynchronous API over various transports such as TCP/IP and UDP/IP via Java NIO.

Apache MINA is, according to its website, a network application framework which helps users develop high performance and high scalability network applications easily. It provides an abstract event-driven asynchronous API over various transports such as TCP/IP and UDP/IP via Java NIO.

Apache MINA is often called a(n):

  • NIO framework library,
  • client server framework library, or
  • networking socket library

Apache MINA comes with many sub projects:

  • Asyncweb: An HTTP server build on top of MINA asynchronous framework
  • FtpServer: An FTP server
  • SSHd: A Java library supporting the SSH protocol
  • Vysper: An XMPP server

References:

157 questions
2
votes
1 answer

Mina deployment : invoke task once `current` symlink is updated

I'm using Mina (a simpler alternative to Capistrano) to deploy my ruby websites, and I am trying to run some tasks once the current symlink has been updated. So far, here's what I have in my deploy.rb file: desc "Deploys the current version to the…
Pierre-Adrien
  • 2,836
  • 29
  • 30
2
votes
1 answer

How do I increase available sockets using Mina on Ubuntu?

How do I increase the number of sockets that may be opened on ubuntu when using Mina 2.0.8? Once my server reaches around ~1700 connections, I get this in my logs: 2013-01-24 04:21:49,465 [NioSocketAcceptor-1] WARN …
Paul Gregoire
  • 9,715
  • 11
  • 67
  • 131
2
votes
1 answer

Apache mina connection prevents Tomcat from shutting down

I have the following configuration: A tomcat7 server running a Spring MVC application which uses Apache mina to connect to a Java-Console application (or any other type of application for that matter) to retrieve some data. Now obvioisly when i shut…
1
vote
1 answer

how to solve recoverable protocoldecoder exception:the line is too long in android

hi i am new to android i got the response from server using json.when i recieved the response it shows the error here 03-22 15:43:46.312: WARN/System.err(541): org.apache.mina.filter.codec.RecoverableProtocolDecoderException: Line is too long:…
tamil
  • 322
  • 2
  • 8
  • 21
1
vote
1 answer

Apache Mina Java FTP Server Implementation - Client Stuck Waiting For Welcome Message

I am implementing an FTP server in Java for a project. I can start the server but when I try to connect with a client it is stuck on "waiting for welcome message". I've looked at several examples but I'm not sure where I'm going wrong. Here is…
David Green
  • 1,210
  • 22
  • 38
1
vote
0 answers

Receiving message synchronously using MINA2

I want to send and receive message synchronously using Apache MINA 2 library. So, i want to use following pieces of code: // Establish connection NioSocketConnector connector = new…
Hossein Mobasher
  • 4,382
  • 5
  • 46
  • 73
1
vote
1 answer

Apache Mina SSHd SFTP server - get file size being uploaded in advance to forward it to S3 using multipart upload

As far as I understand from the standard which Apache MINA SSHd SFTP server is based on here, it means that it is not necessary to send information about the size of the file transferred beforehand (servers should not require it) - in other words,…
kboom
  • 2,279
  • 3
  • 28
  • 43
1
vote
0 answers

Mina - doDecode() can't return true when buffer is not consumed. (Hexdump: empty)

Im getting this error upon sending requests to a MINA endpoint 2017-10-17 00:26:44,156 [ NioProcessor-1] WrapperTagDecoder DEBUG - Read message:{ "Work" : "Eat", "Tag" : "123" }, charset:utf-8 2017-10-17…
1
vote
0 answers

Apache ssh server public key authentication

I want to use the Apache ssh server, which is available at https://mina.apache.org/sshd-project. How can I set (configure) the client's public key on the ssh server in order to public key authentication?
afshar
  • 523
  • 4
  • 16
1
vote
0 answers

Rails 5 Mina Deployment error

currently i'm deploying a rails 5 application using mina deployment. my deployment script look like this require 'mina/rails' require 'mina/git' require 'mina/rbenv' # for rbenv support. (https://rbenv.org) # require 'mina/rvm' # for rvm…
1
vote
1 answer

How to enable certificate-based client authentication in Apache MINA FTPS server?

I set up an FTPS server with Apache MINA in which clients cients authenticate via user/password. I now want to force clients to authenticate via an SSL certificate, but I could not find instructions nor examples for this. Anyone can help?
Alberto Anguita
  • 103
  • 1
  • 11
1
vote
0 answers

Mina deploy: `remote` command doesn't find my executable (after upgrade from 0.3 to 1.0)

I have the following custom task: desc "Performs a backup." task backup: :environment do comment 'Performing backup' command %{backup perform --trigger=audit} end It gives the following error: $ mina backup -----> Performing backup bash:…
Joshua Muheim
  • 12,617
  • 9
  • 76
  • 152
1
vote
1 answer

Is there gss/kerberos auth support on client side of apache mina sshd core version 1.3.0 release

I have been using apache-mina-sshd to write a java ssh client to connect to an ssh server using kerberos[GSS/keytab] authentication. but i didn't find any useful resource to do it. Can any one say whether sshd support client side GSS authentication…
Naruto
  • 53
  • 9
1
vote
2 answers

How to set up server authentication in Apache MINA sshd?

I have set up an ssh server using Apache MINA sshd for SFTP. I want to enable server authentication so clients cannot be spoofed. In the documentation page all it says is to use the following method (Apache MINA sshd…
Alberto Anguita
  • 103
  • 1
  • 11
1
vote
1 answer

Apache SSHD client performance

I have an application using apache SSHD to send files via sftp (with the SftpClient class). I have noticed that the performance was very poor and I made a simple test comparing apache SSHD with Jsch, which gives much better results (seven times…
Nicola Ambrosetti
  • 2,567
  • 3
  • 22
  • 38