I was configuring the Schemus Mail Configuration tool to synchronise recipient information from an Active Directory forest to Symantec Cloud but ran into an issue with the Synchronisation tool.
I entered the configuration for an Active Directory domain controller into the tool along with a username and password as follows:
When clicking next the wizard would get stuck on Loading and not progress any further.
After clicking cancel and closing the wizard then selecting View --> Logs I noticed multiple entries of "Cannot access the LDAP server. Malformed reply from SOCKS server"
Removing the proxy server from Internet Options resolved the problem.
I entered the configuration for an Active Directory domain controller into the tool along with a username and password as follows:
When clicking next the wizard would get stuck on Loading and not progress any further.
After clicking cancel and closing the wizard then selecting View --> Logs I noticed multiple entries of "Cannot access the LDAP server. Malformed reply from SOCKS server"
Can't access the LDAP server. Malformed reply from SOCKS server
com.metanate.schemus.data.source.SourceException: Malformed reply from SOCKS server
at com.metanate.schemus.data.source.LdapSource.setContext(Unknown Source)
at com.metanate.schemus.data.source.LdapSource.ensureOpen(Unknown Source)
at com.metanate.schemus.data.source.LdapSource.getSearchBases(Unknown Source)
at com.metanate.schemus.config.gui.wizard.swing.source.SearchSettingsPanel$2.construct(Unknown Source)
at com.metanate.schemus.config.gui.wizard.swing.SwingWorker$2.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.naming.CommunicationException: 10.100.8.91:389 [Root exception is java.net.SocketException: Malformed reply from SOCKS server]
at com.sun.jndi.ldap.Connection.(Unknown Source)
at com.sun.jndi.ldap.LdapClient.(Unknown Source)
at com.sun.jndi.ldap.LdapClient.getInstance(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.ldap.InitialLdapContext.(Unknown Source)
... 6 more
Caused by: java.net.SocketException: Malformed reply from SOCKS server
at java.net.SocksSocketImpl.readSocksReply(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.(Unknown Source)
at java.net.Socket.(Unknown Source)
at com.sun.jndi.ldap.Connection.createSocket(Unknown Source)
at com.metanate.schemus.data.source.LdapSource.setContext(Unknown Source)
at com.metanate.schemus.data.source.LdapSource.ensureOpen(Unknown Source)
at com.metanate.schemus.data.source.LdapSource.getSearchBases(Unknown Source)
at com.metanate.schemus.config.gui.wizard.swing.source.SearchSettingsPanel$2.construct(Unknown Source)
at com.metanate.schemus.config.gui.wizard.swing.SwingWorker$2.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.naming.CommunicationException: 10.100.8.91:389 [Root exception is java.net.SocketException: Malformed reply from SOCKS server]
at com.sun.jndi.ldap.Connection.
at com.sun.jndi.ldap.LdapClient.
at com.sun.jndi.ldap.LdapClient.getInstance(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.ldap.InitialLdapContext.
... 6 more
Caused by: java.net.SocketException: Malformed reply from SOCKS server
at java.net.SocksSocketImpl.readSocksReply(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.
at java.net.Socket.
at com.sun.jndi.ldap.Connection.createSocket(Unknown Source)
SOCKS is a proxy technology. After checking Internet Options it turns out that a proxy server was configured on the server.
Removing the proxy server from Internet Options resolved the problem.
Thanks for posting this.Had the same issue.
ReplyDeleteThanks for this Clint. I found a different solution to the problem from the vendor's website here:
ReplyDeletehttp://www.schemus.com/support.kb.html?id=22
It looks like their software was picking up the general proxy settings for the machine it was running on.
Thank you for sharing. Helped me as well :-)
ReplyDeleteThanks for sharing. Helped me fix the same issue. (before I found this post I had no idea where to start!)
ReplyDeleteThanks for sharing this information, solved the problem here as well
ReplyDeleteThanks, you are a star.
ReplyDeleteLegend.
ReplyDeleteGreat Article
ReplyDeleteOnline Java Training | Java EE course | Java Course in Chennai | Java Training in Chennai | Java Training Institutes in Chennai | J2EE Training in Chennai | java j2ee training institutes in chennai