Bookmark Topic Watch Topic
  • New Topic

Malformed reply from SOCKS server

 
chubi shuki
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello,

I'm trying to establish an LDAP connection from within a JFrame
I'm getting this kind of exception:

javax.naming.CommunicationException: alpha:389 [Root exception is java.net.SocketException: Malformed reply from SOCKS server]
at com.sun.jndi.ldap.Connection.<init>(Connection.java:207)
at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:118)
at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1580)
...................
Caused by: java.net.SocketException: Malformed reply from SOCKS server
at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:87)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:429)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)


If I try to call the same connection method from another class, it works.
Seems like there are some limitations in the Swing or something to do?

Best Regards
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once.
CarefullyChooseOneForum
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!