Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
6.9k views
in Java FTP by (240 points)
Dear All,

Am getting the below error while connecting FTP thru SSL/TLS mode. Can anyone please help me in this regard is much helpful.
Thanks in advance..

java.lang.SecurityException: Signers of 'com.enterprisedt.net.ftp.RecursiveOperations' do not match signers of other classes in package
at java.lang.ClassLoader.checkPackageSigners(ClassLoader.java:305)
at java.lang.ClassLoader.defineClass(ClassLoader.java:247)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:151)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:589)
at java.net.URLClassLoader.access$400(URLClassLoader.java:123)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1034)
at java.security.AccessController.doPrivileged(AccessController.java:279)
at java.net.URLClassLoader.findClass(URLClassLoader.java:491)
at java.lang.ClassLoader.loadClass(ClassLoader.java:631)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
at com.enterprisedt.net.ftp.pro.ProFTPClient.<init>(ProFTPClient.java:133)
at com.enterprisedt.net.ftp.ssl.SSLFTPClient.<init>(SSLFTPClient.java:600)
at com.kgisl.kclaims.motor.commonutils.actions.FTPMultiTaskScheduler.main(FTPMultiTaskScheduler.java:60)
17:02:52,155 INFO [] Exception : java.lang.SecurityException: Signers of 'com.enterprisedt.net.ftp.RecursiveOperations' do not match signers of other classes in package

5 Answers

0 votes
by (162k points)
Do you have two versions of the jar file in the CLASSPATH? Could you post your log file at the DEBUG level?
0 votes
by (240 points)
yes i have edtftpj-pro.jar and edtftpj.jar in my library path... need to remove any one of them???
0 votes
by (240 points)
i removed 1 jar file from my library path now am able to connect.. but, after connected to server am listing the directory as

client.dir(fileNameExtn+"*")

this get time out exception. Can you please help....

java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:391)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:252)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:239)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385)
at java.net.Socket.connect(Socket.java:543)
at com.enterprisedt.util.proxy.PlainSocket.createPlainSocket(PlainSocket.java:112)
at com.enterprisedt.util.proxy.StreamSocketFactory.getConnectedSocket(StreamSocketFactory.java:68)
at com.enterprisedt.net.ftp.ssl.SSLFTPControlSocket.newPassiveDataSocket(SSLFTPControlSocket.java:467)
at com.enterprisedt.net.ftp.FTPControlSocket.createDataSocketPASV(FTPControlSocket.java:878)
at com.enterprisedt.net.ftp.FTPControlSocket.a(FTPControlSocket.java:598)
at com.enterprisedt.net.ftp.FTPClient.setupDataSocket(FTPClient.java:2737)
at com.enterprisedt.net.ftp.FTPClient.a(FTPClient.java:3775)
at com.enterprisedt.net.ftp.FTPClient.dir(FTPClient.java:3867)
at com.enterprisedt.net.ftp.FTPClient.dir(FTPClient.java:3757)
at com.commonutils.actions.FTPMultiTaskScheduler.main(FTPMultiTaskScheduler.java:139)
21:16:34,622 INFO [] Exception : java.net.SocketTimeoutException: connect timed out
0 votes
by (162k points)
You don't need edtftpj.jar in your CLASSPATH if you are using edtftpj-pro.jar.

If you can connect but have listing or transfer problems, it is most likely a firewall. Try changing to active mode or check your firewalls.
0 votes
by (240 points)
My problem was solved.. the error caused bcoz of the authentication method i used... previously i was used SSLFTPClient.AUTH_TLS but in my server they were used implicit method i din seen it earlier... now i have changed my coding to setImplicitFTPS(true) and its working fine...

thanks for ur support to help me to solve this problem.

thanks again..

Categories

...