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
4
votes
2 answers

how to decode the Teltonika FM1000 device. What is the decoder format for this device

i am integrating the teltonika FM1000. but i don't know what is the exact decoder to parse the data. and also in their document they mentioned it as CODEC id 08. what is CODEC id 08
Anand
  • 79
  • 3
  • 8
4
votes
0 answers

Apache Mina SSHD SFTP server fails to list some directories on Android

Using Apache Mina SSHD I've implemented an SSH and SFTP server in an Android app I'm working on, and I can log in through SSH fine, ls the root directory, cd to 'mnt/sdcard' and ls - all of this is working fine. I can also get su and do whatever…
math-eww
  • 290
  • 3
  • 13
4
votes
1 answer

ExpiringMap is not working to expire the object

I tried to use ExpringMap to auto expire the map object. This is the first time I use this jar, I know there is a Guava which is popular, but I do not need cache for that and I don't know how to use the Guava either. And I happen to know the…
JaskeyLam
  • 15,405
  • 21
  • 114
  • 149
4
votes
6 answers

Apache Mina Server Restart java.net.BindException: Address already in use

I have a rather annoying problem in my server application. I bind Apache Mina with the following code: acceptor.bind(new InetSocketAddress(PORT)); Where acceptor is an NioSocketAcceptor. Over a HTTP interface I can shutdown the server so I can…
Kosaki
  • 103
  • 1
  • 4
4
votes
1 answer

Apache MINA reading from IoSession

I am new to Apache MINA kindly guide me how to read from IoSession. I have stored a POJO in it. public static EchoUDPServerDiscoveryObjectResponseProperties echoProperties session.write(echoProperties);
AZ_
  • 21,688
  • 25
  • 143
  • 191
4
votes
1 answer

Unit testing of an apache mina client

I have a mina client whose connector is a NioSocketConnector. I have written integration tests of this client with real server. However, I could not find a way to do unit tests. For example, I want to test my custom decoder and encoder works…
Ricardo Cristian Ramirez
  • 1,194
  • 3
  • 20
  • 42
4
votes
1 answer

Mock XMPP Server with Mina works only part of the time

I've created a mock XMPP server that processes PLAIN encryption stanzas. I'm able to use Pidgin and go through the entire session creation, to the point where Pidgin thinks the user is on an actually XMPP server and is sending regular…
Robb
  • 2,666
  • 4
  • 20
  • 24
3
votes
1 answer

Apache Mina java.io.IOException: Connection reset by peer

I am using MINA 2.0.0 M6 and there are lots of exceptions as follows in the log file. In my application, nothing should be sent to the client from MINA as every client that connects will send only its GPS data every x minutes. One…
user1244059
  • 33
  • 1
  • 5
3
votes
1 answer

Dead sessions in apache mina

We have a apache mina based GPRS gateway(server). Sometimes, usually when the connection is terminated from client side brutally i.e, power cable unplugged or any other unusual shutdown or some problem with network, it is not removed or closed at…
Umer Hayat
  • 1,993
  • 5
  • 31
  • 58
3
votes
1 answer

Session management/monitoring in Apache mina

Is there a (built in) way to monitor sessions in apache mina. I want to keep track of total session active whenever a session is created/closed. I know i can do it by keeping references of all the incoming session in my IoHandlerAdapter and remove…
Umer Hayat
  • 1,993
  • 5
  • 31
  • 58
3
votes
2 answers

Apache embeded FTPS (Mina) issue on Java11+

I have a very simple Java 8 project (FTP server), which uses Apache FTPS (Mina) server library (v. 1.1.1). It is as simple as the following code: ListenerFactory factory = new ListenerFactory(); factory.setPort(2221); // SSL config …
gubak
  • 31
  • 3
3
votes
1 answer

Apache mina-sshd ssh client always prints EdDSA provider not supported

I'm using Apache sshd's ssh client. Whenever I establish a connection to the destination ssh server, I see this in the logs. The connection works, but is there something wrong? How can I fix it? The exception looks like: (SshException) to process:…
joseph
  • 2,429
  • 1
  • 22
  • 43
3
votes
1 answer

Apache MINA SSHD session echoes characters twice when using ProcessShellFactory, control characters don't work

I'm running OpenJDK 14 on macOS 10.15.7. I'm doing some proof-of-concept code establishing an SSH server with Apache Mina SSHD and then connecting to it. Here's what I have: import java.io.IOException; import java.nio.file.Paths; import…
Nick Williams
  • 2,864
  • 5
  • 29
  • 43
3
votes
1 answer

Server in Apache Mina

I found some code on this link http://www.techbrainwave.com/?p=912 which describes how to set up a client server architecture using apache mina. However, in the example provided it is only one-way communication (from client to server). Does anyone…
g90
  • 31
  • 1
  • 4
3
votes
1 answer

Force MINA niosocketacceptor to clean up

I started to using mina to do async writes to the socket, but now I can't seem to close the sessions. Is there a way to force mina to close all the managed sessions or clean up? There what i have for the clean right…
Vinh
  • 141
  • 2
  • 14
1 2
3
20 21