exceptions
Bernardo F Costa <[email protected]>
| Newsgroups | gmane.comp.java.sshtools.user |
|---|---|
| Message-ID | <[email protected]> |
All right, it's my turn to question now !!
Have you, or anyone else you know, worked with
sshtools and threads ? Is is thread safe ? If not,
what problems can occur with threads ? I don't know
whether this is a thread problem but I have seen quite
usually some kinds of exceptions. They are frequently
raised and I don't know the meaning of it. Bad link
connections problems ? Too much waiting or blocking
operations ? If somebody have seen frequently these
messages, please post so we can change some ideas.
------------------------------------------------
com.sshtools.j2ssh.SshException: The thread was
interrupted whilst waiting for a transport protocol
message
at
com.sshtools.j2ssh.transport.TransportProtocolClient.requestService(TransportProtocolClient.java:139)
at
com.sshtools.j2ssh.SshClient.connect(SshClient.java:785)
---------------------------------------------------------
java.io.IOException: The operation was interrupted
at
com.sshtools.j2ssh.transport.TransportProtocolClient.onStartTransportProtocol(TransportProtocolClient.java:332)
at
com.sshtools.j2ssh.transport.TransportProtocolCommon.startTransportProtocol(TransportProtocolCommon.java:477)
at
com.sshtools.j2ssh.SshClient.connect(SshClient.java:780)
java.net.SocketException: Socket closed
at
java.net.SocketInputStream.read(SocketInputStream.java:162)
at
java.io.BufferedInputStream.read1(BufferedInputStream.java:254)
at
java.io.BufferedInputStream.read(BufferedInputStream.java:313)
--------------------------------------------------------
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at
com.sshtools.j2ssh.transport.SshMessageStore.getMessage(SshMessageStore.java:173)
at
com.sshtools.j2ssh.connection.ChannelInputStream.collectNextMessage(ChannelInputStream.java:313)
at
com.sshtools.j2ssh.connection.ChannelInputStream.block(ChannelInputStream.java:250)
at
com.sshtools.j2ssh.connection.ChannelInputStream.read(ChannelInputStream.java:224)
----------------------------------------------------------
java.io.InterruptedIOException: The thread was
interrupted whilst waiting for channel data
at
com.sshtools.j2ssh.connection.ChannelInputStream.read(ChannelInputStream.java:242)
---------------------------------------------------------------
com.sshtools.j2ssh.SshException: The thread was
interrupted whilst waiting for a transport protocol
message
at
com.sshtools.j2ssh.transport.TransportProtocolClient.requestService(TransportProtocolClient.java:139)
at
com.sshtools.j2ssh.SshClient.connect(SshClient.java:785)
--- Mustafa Cayci <[email protected]> escreveu:
> Yes it worked. Thanks so much.
>
> Mustafa
__________________________________________________
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV