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
0
votes
1 answer

Transfer problems: FPO JPG image are corrupted after FTP upload

We have recently observed some problems when transferring specific image files with Mina-core 2.0.9 and ftp-server-core 1.0.9. After uploading an FPO file (which is type of lowres OPI file), the file is truncated on the FTP server and we can’t open…
martin_wun
  • 1,599
  • 1
  • 15
  • 33
0
votes
1 answer

Does hibernate locks main thread?

I'm using hibernate together with apache mina to build Multiplayer game server. I have separate client class for each (apache mina) client, separate transaction and session. So, the question is: Does hibernate blocks my main thread when i'm saving…
0
votes
1 answer

Apache Mina TCPServer cannot read long string text

i try to use Apache Mina for my TCP/IP communication. In my case, i have to send long text message like…
fanjavaid
  • 1,676
  • 8
  • 34
  • 65
0
votes
2 answers

How to read binary data in Bytes Using Apache MINA Server?

Here I am reading Binary data, but this gives me "java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.mina.core.buffer.IoBuffer" IoBuffer buffer = (IoBuffer) message; // Exception at This line IoAcceptor acceptor = new…
user2888996
  • 417
  • 8
  • 20
0
votes
1 answer

IoBuffer size behavior change since old version

I'm working on a new TCP socket server and take example of an old code I'd writen few years ago for an UDP socker server. On my previous work, I checked CRC as first action on messageReceived() then handle the message type to fwd it to the good…
FabGre
  • 135
  • 1
  • 9
0
votes
1 answer

Apache Mina and SSHD (reverse SSH): Invalid Packet length 0

Please share your ideas on how we can resolve this exception We are working on Netconf Over SSH and the SSH library used is Apache Mina and SSHD. Device is the Netconf server and Application is the Netconf Client. As device is behind firewall,…
Vikram Darsi
  • 79
  • 2
  • 8
0
votes
1 answer

Stopping apache mina server

I have written a tcp server in Apache Mina.The server listens to a port n do the process. I have deployed this in jboss server. But now i am not able to stop the server. I have done the following things for the stop…
Leo
  • 1
  • 5
0
votes
0 answers

What is the best way to share PC screen with android device through wifi?

I need to share my pc screen with my android device over wi-fi. I kind of did this by taking continuous screenshots of pc and sending it to the android device(where it will display these images continuously). I used Apache MINA for the connection as…
shaheer_
  • 406
  • 1
  • 4
  • 12
0
votes
1 answer

FTPClient unable to parse LIST response from Apache FTPServer

While trying to perform a listFiles() command using Apache Commons Net 3.3 FTPSClient against an Mina's Apache FTP Server parsing of the listing fails. I've done some debugging and the entries attribute on FTPListParseEngine after reading the server…
Fer Troya
  • 25
  • 6
0
votes
2 answers

Is this the right way to write a ProtocolDecoder in MINA?

public class CustomProtocolDecoder extends CumulativeProtocolDecoder{ byte currentCmd = -1; int currentSize = -1; boolean isFirst = false; @Override protected boolean doDecode(IoSession is, ByteBuffer bb, ProtocolDecoderOutput…
phpscriptcoder
  • 717
  • 2
  • 9
  • 22
0
votes
1 answer

How to configure SLF4J in Apache MINA

We are using the Apache FTPServer library which in turn uses MINA in a project as 3rd party libraries. MINA is using SLF4J for logging. I am wondering how I can redirect the logging output of MINA to our own standard log files, which are using…
martin_wun
  • 1,599
  • 1
  • 15
  • 33
0
votes
1 answer

Creating a bean with scope following Apache Mina IoSession Scope

My apache application sit inside a Spring context. And…
Jeff Lee
  • 35
  • 7
0
votes
1 answer

Error in connection establishment: net::ERR_SSL_VERSION_OR_CIPHER_MISMATCH

I have installed the SSL/TLS certificate on the server following the instructions provided by Digicert on the below link. https://www.digicert.com/ssl-certificate-installation-java.htm Also defined the TrustManager but still i am not able to…
Dhruv Kapil
  • 21
  • 1
  • 3
0
votes
1 answer

Mina SFTP : Has anyone attempted to use MINA as a SFTP server against Hadoop or a custom file system?

Am trying to use Apache MINA as a SFTP server to a custom file system that is very similar to HDFS. Has anyone attempted anything like this before ? Reading a directory, reading a file and writing to a file should be delegated to my custom methods.
Swaroop Rath
  • 141
  • 1
  • 4
0
votes
1 answer

Difference of HTTP Components, Restlet, Apache Mina and Netty

I used HTTPComponents to implement a custom web server that access SQLite database. Requests are sent via TCP/IP and I am using REST concepts. By the way my frontend is HTML/jQuery. I know it will be a lot easier if I'll just create a servlet but I…
dexter
  • 1,869
  • 2
  • 14
  • 13