Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3k views
in Java FTP by (220 points)
When I run my program as standalone it works fine. The same logic is called from a servlet using JBOSS I get the following error. Any help is appreciated.

[error]

09:09:13,877 INFO [STDOUT] Caused by: com.enterprisedt.net.j2ssh.transport.kex.KeyExchangeException: The host key is invalid or was not accepted!
09:09:13,877 INFO [STDOUT] at com.enterprisedt.net.j2ssh.transport.TransportProtocolClient.performKeyExchange(TransportProtocolClient.java:399)
09:09:13,877 INFO [STDOUT] at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.beginKeyExchange(TransportProtocolCommon.java:681)
09:09:13,877 INFO [STDOUT] at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.onMsgKexInit(TransportProtocolCommon.java:1229)
09:09:13,877 INFO [STDOUT] at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.startBinaryPacketProtocol(TransportProtocolCommon.java
:986)
09:09:13,877 INFO [STDOUT] at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.run(TransportProtocolCommon.java:373)
09:09:13,877 INFO [STDOUT] ... 1 more

[/error]

1 Answer

0 votes
by (51.6k points)
Could you please increase the logging level to DEBUG and post the last few lines of logging before the exception occurs? That should give us some good clues for determining the reason for the rejection of the host.

- Hans (EDT)

Categories

...