Questions tagged [apache-mina]

Excerpt from apache site : 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.

303 questions
2
votes
3 answers

Apache Mina Idle Monitor

I have been developing my first TCP/Socket based application with Apache Mina, it looks great and easy to do things. I just want to ask a question here about Mina. The server impose an idle time of 5 second will terminate the socket connection, so…
Faisal Basra
  • 1,624
  • 4
  • 25
  • 40
2
votes
2 answers

info about Apache MINA HTTP protocol support

We have Apache MINA used in current project for TCP/IP protocol where server and client communicates over TCP/IP. So we have some code for MINA already in place. Now we want to support http protocol as well, and re-use whatever possible. I need some…
2
votes
0 answers

javax.net.ssl.SSLException: Improper close state: Status = OK HandshakeStatus = NEED_WRAP bytesConsumed = 0 bytesProduced = 7 sequenceNumber = 0

I am getting the below error when I tried to connect FTP server which is running in an open shift cluster. I want to upload the file to the FTP server with the below code. I have referred to the below URL to write the…
Chetan
  • 63
  • 1
  • 8
2
votes
1 answer

Apache Mina SFTP: Mount Remote Sub-Directory instead of Filesystem Root

I would to use Apache SSHD to create an SFTP server and use SftpFileSystemProvider to mount a remote directory. I successfully create the virtual file system with SftpFileSystemProvider following the documentation…
Rémi Lavolée
  • 48
  • 1
  • 11
2
votes
1 answer

Apache Mina , create my own IoSession: How to?

I'm playing for a few days with apache mina and I want to ask you how can I create by extending (or implementing) IoSession to create something like MyIoSession. The reason why I want to do this is because in the Handler class I want something like…
Doua Beri
  • 10,612
  • 18
  • 89
  • 138
2
votes
0 answers

Apache mina FTP server initial directory structure

I made simple Apache MINA FTP server in Spring boot. Similar to project mina-ftp-server in this github repo. Main configuration looks like this: @Configuration class FtpServerConfiguration { @Bean FileSystemFactory fileSystemFactory() { …
Galoman
  • 73
  • 6
2
votes
1 answer

Enable ssh-dss algorithm for known-host in Apache-Mina

I'm working on a custom SFTP client. The client receives a known-host record as a required server key. My code works fine with ssh-rsa, but in the case of ssh-dss Mina throws an exception with a message Unable to negotiate key exchange for server…
Sergey Panov
  • 313
  • 1
  • 4
  • 15
2
votes
0 answers

Issue with ldap tests after upgrading apache mina from 2.0.21 to 2.1.3

I have a project that contains apache mina, and i use apacheds, spring-ldap-test for tests, i upgraded apache mina from 2.0.21 to 2.1.3 When im running my test class i get the following: Exception in thread "pool-4-thread-1"…
redCable
  • 21
  • 3
2
votes
0 answers

Apache MINA SSHD java.security.InvalidKeyException: The security strength of SHA-1 digest algorithm is not sufficient for this key size

We are running SFTP server using Apache SSHD mina. With Java 7 , everything works fine. But with Java 8, we are getting the below exception when any SFTP client is trying to connect. How to fix this issue in server side with Java 8. The client can…
JavaUser
  • 25,542
  • 46
  • 113
  • 139
2
votes
1 answer

Antd design - Heap out of memory - webpacker

I am using rails gem mina for deploying my RubyonRails & React application into production added antd npm package and deployed. so far no issue when I try to import something from antd eg: import { Icon, List } from 'antd' Below issue is…
ramamoorthy_villi
  • 1,939
  • 1
  • 17
  • 40
2
votes
1 answer

How to block SFTP remove operations with Apache MINA SSHD

I am trying to create a custom sftp server using Apache Mina SSHD. My code so far: SshServer sshd = SshServer.setUpDefaultServer(); sshd.setPort(PORT_NUMBER); sshd.setKeyPairProvider(new…
Darlyn
  • 4,715
  • 12
  • 40
  • 90
2
votes
1 answer

Apache Mina SSHD port forwarding like NGROK

I'm trying to implement a "dynamic" proxy forward to access localhost from Internet, like Ngrok in pure Java. This guy does essentially the same thing: https://serveo.net/#intro (but, without a client) The idea would be to use the SAME port on the…
2
votes
2 answers

How to run an Apache-Mina SSHD-Server (2.2.0) on Android Pie?

I'm trying to run an Apache MINA SSHD Server (v. 2.2.0) on an Android Pie (API 28.0) device. I found various post about it running on Android 4 devices, but none of them seems to work on my Android 9 device. So I tried to implement it myself but got…
Me7e0r
  • 67
  • 1
  • 9
2
votes
1 answer

How to write SFTP client using Apache MINA library

I tried finding Java code for SFTP client using Apache MINA library but couldn't find it. Could someone show me how to write a simple password authentication based SFTP client using Apache MINA…
ChiefAmay
  • 140
  • 3
  • 12
2
votes
1 answer

JSchException: verify: false during local testing with Apache Mina SSHD server

I am writing a TestNG test for a Jsch based FTP client but I keep getting the below error: com.jcraft.jsch.JSchException: verify: false at com.jcraft.jsch.Session.connect(Session.java:330) at com.jcraft.jsch.Session.connect(Session.java:183) I have…
Sachin Lala
  • 715
  • 1
  • 8
  • 18