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
189
votes
13 answers

Import PEM into Java Key Store

I am trying to connect to an SSL server which requires me to authenticate myself. In order to use SSL over Apache MINA I need a suitable JKS file. However, I have only been given a .PEM file. How would I go about creating a JKS file from a PEM…
jwoolard
  • 6,024
  • 9
  • 37
  • 37
153
votes
7 answers

Netty vs Apache MINA

They both provide roughly the same functionality. Which one should I choose to develop my high-performance TCP server? What are the pros & cons? Reference links: Apache MINA (source) Netty (source)
GabiMe
  • 18,105
  • 28
  • 76
  • 113
27
votes
1 answer

Apache MINA server closes active UDP "session" after 60s

My client-server app works with Apache MINA at both, client and server sides. Sending data via UDP works OK, but after a minute server closes the connection (or MINA's way - "session") and stops answering. The strange part is that the connection is…
Jakub Turcovsky
  • 2,096
  • 4
  • 30
  • 41
25
votes
2 answers

Maven: NoClassDefFoundError in the main thread

I am currently building a little Apache-Mina Server app. I am using Maven to build it. When i try to run the jar, I get the following error: Exception in thread "main" java.lang.NoClassDefFoundError:…
fr1zle
  • 327
  • 1
  • 3
  • 8
18
votes
2 answers

Gradle: MessageIOException: Could not write message [EndOfStream] to 127.0.0.1 (Firewall)?

I wrote a simple test project, which opens port 9123 for some time and exit: import java.io.IOException; import java.net.InetSocketAddress; import java.nio.charset.Charset; import java.util.Date; import…
Dims
  • 47,675
  • 117
  • 331
  • 600
15
votes
3 answers

How to Set Root Directory in Apache Mina Sshd Server in Java

I use Apache Mina Sshd API to start up a local SFTP server in java.In SFTP client i use Jcraft jsch API to create my SFTP client.I successfully start up a server.The problem is that i want to write some unit test cases to check whether client can…
gihan-maduranga
  • 4,381
  • 5
  • 41
  • 74
14
votes
1 answer

apache mina sshd authenticate client signatures

I'm trying to authenticate a signature that clients generate from their private key and send to the server. The only authenticator I could find in the library that sounded appropriate was the PublickeyAuthenticator. Please correct me if this is the…
Hooli
  • 1,135
  • 3
  • 19
  • 46
12
votes
1 answer

SFTP server set user/password in Apache Mina SSHD

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")); …
Alvins
  • 867
  • 16
  • 27
9
votes
3 answers

Using Mina SSHD (Client) to connect to SFTP using Private Key

I am attempting to connect to an SFTP server that requires private key authentication and wanting to use the Mina. Looking through the documentation, I can see how to perform that authentication using password authentication but not private key…
Chuck Lowery
  • 902
  • 6
  • 17
8
votes
1 answer

Apache Mina: how to get the IP from a connected client

Can anyone tell me how the get the IP address from a connected client? So far I've found session.getRemoteAddress().toString() and returns something like /192.168.1.100:49879 is this ok? Can I do something that can return only 192.168.1.100…
Doua Beri
  • 10,612
  • 18
  • 89
  • 138
7
votes
2 answers

Apache Mina SFTP SftpSubsystem.Factory()

I am trying to setup a simple SFTP server using Apache Mine SSHD v1.2.0. I have looked at several examples on the web E.g. here, here and here. However they all have the same line in common which I cannot get NetBeans to resolve. NetBeans tells me…
AcidHawk
  • 496
  • 7
  • 18
7
votes
1 answer

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

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…
pars
  • 3,700
  • 7
  • 38
  • 57
7
votes
1 answer

Apache MINA vs netty for Android

There is a very informative comparison between MINA and netty in here I would like to know your preference when the platform is Android! I have a host that should accept connections from as well as establish connections to android devices. This…
rahman
  • 4,820
  • 16
  • 52
  • 86
6
votes
1 answer

Apache MINA Vysper documentation?

I plan on making an instant messaging app on Android and iOS, where you can chat to other people with the app, along with some custom features. I’m going to use the XMPP protocol, and make a custom extension for it. I plan on making a Java…
Jon Cox
  • 10,622
  • 22
  • 78
  • 123
6
votes
3 answers

Lightweight Java socket library

I've used Mina and Netty, but now I'm in the market for a lightweight library that may also be used in Android. I prefer Nio or AsyncIo over standard io implementations. Update 1 The lack of responses really makes me think I should write my own…
Paul Gregoire
  • 9,715
  • 11
  • 67
  • 131
1
2 3
20 21