• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Convoluted IPv6 SFTP problem seeking simple solution

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Grab a chair, this might take a while...

Alright, so. My requirement for my company's project was SFTP support for an application. It needed to support both a Server and a Client. After a lot of hassle with (the buggy and unfinished) SSHTools I finally convinced my managers that we needed to purchase a commercial solution. The chosen product was Maverick, SSHTools' commercial successor. It all worked fine and dandy until we needed to support IPv6 (which Maverick claimed it supported "as long as the JRE supported it") and the JRE allegedly does support it.

HOWEVER.

NIO channels do NOT support IPv6 server sockets on Windows (which is our required platform) and this is a long-standing bug in Java. It's doubtful that the people developing Maverick will agree to help us with a workaround and thus we're looking for an alternate solution.

Java 1.7 fixes this, but there is no official release and we can't wait for it. I don't know if a workaround can be done on our side, so my main question is if anyone has any recommendations for a free or paid SFTP API for Java. Keeping in mind all of the above.

Thanks.

~Paul
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you need functionality particular to NIO or can you get by with java.io?
 
Paul Policarp
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
NIO is not required, it's just the implementation that the commercial API has chosen.

I could use pretty much anything that supports a working SFTP server that can be integrated into existing code. So APIs would do (no GPL, though). The problem is that I've had my share of problems with both paid and free solutions so I would really like some recommendations.
 
Paul Policarp
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So I tried Apache MINA SSHD and everything, once again, worked like a charm until I tried binding an IPv6 address. It's the same problem. I'm beginning to think that there aren't any implementations out there that don't use NIO. Does anyone have any other helpful recommendations aside from J2SSH, Maverick or Apache MINA? Also non-GPL...
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Policarp wrote:So I tried Apache MINA SSHD and everything, once again, worked like a charm until I tried binding an IPv6 address. It's the same problem. I'm beginning to think that there aren't any implementations out there that don't use NIO. Does anyone have any other helpful recommendations aside from J2SSH, Maverick or Apache MINA? Also non-GPL...

Can you call an external binary exectuable to do the file transfer? If so how about Putty. It comes with a BSD style licence allowing commercial use and works well on Windows. See http://www.chiark.greenend.org.uk/~sgtatham/putty/ or http://unfix.org/projects/ipv6/ Oops just saw you need a server as well. Putty doesn't do that. Nice client though ;)
 
Those are the largest trousers in the world! Especially when next to this ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic