Re: [JSch-users] SCP File transfer not completing
Status: Alpha
Brought to you by:
ymnk
From: Stefan R. <do...@dr...> - 2005-01-07 17:05:25
|
I think I'm having a similar problem; a file transfer just stalls and nothing happens after that. Only around 1000 bytes are transferred. I tried to debug and fix the problem myself, but the architecture of JSch is pretty complex, so right now I'm trying other SFTP packages. -Stefan Greg Hengeli wrote: > Has anyone run across the problem of a large file transfer not > completing? The program just seems to hang in apparent deadlock. I > ran some tests and got a javacore dump from a program that was hanging > and this is what I found: > > "main" (TID:0x300EB9B8, sys_thread_t:0x3000EE28, state:CW, native > ID:0x1) prio=5 > at java.lang.Object.wait(Native Method) > at > java.io.PipedInputStream.receive(PipedInputStream.java(Compiled Code)) > at > java.io.PipedInputStream.receive(PipedInputStream.java(Compiled Code)) > at > java.io.PipedOutputStream.write(PipedOutputStream.java(Compiled Code)) > at > com.mayco.qm.batch.TestSendScp.sendFile(TestSendScp.java(Compiled Code)) > > "Thread-6" (TID:0x300EABF8, sys_thread_t:0x651306A8, state:CW, native > ID:0x1419) prio=5 > at java.lang.Thread.sleep(Native Method) > at com.jcraft.jsch.Session.write(Unknown Source) > at com.jcraft.jsch.ChannelExec.run(Unknown Source) > at java.lang.Thread.run(Thread.java:568) > > "Thread-5" (TID:0x300EAC50, sys_thread_t:0x6553CE28, state:R, native > ID:0x1318) prio=5 > at java.net.SocketInputStream.socketRead0(Native Method) > at > java.net.SocketInputStream.read(SocketInputStream.java(Compiled Code)) > at com.jcraft.jsch.IO.getByte(Unknown Source) > at com.jcraft.jsch.Session.read(Unknown Source) > at com.jcraft.jsch.Session.run(Unknown Source) > at java.lang.Thread.run(Thread.java:568) > > I don't have much experience with analyzing java dumps but it looks to > me like the main is waiting on the channel and the channel is > sleeping. If anyone has any help or ideas that would be great. Thanks! |