EOFException

402 views
Skip to first unread message

Max White

unread,
May 21, 2013, 4:08:23 PM5/21/13
to dcm...@googlegroups.com
Hi All

Using dcmrcv i get some exceptions with some X-Ray images (JPEG LOSSLESS). What can cause this stack trace below ?

java.io.EOFException
at org.dcm4che2.net.PDUDecoder.readFully(PDUDecoder.java:103)
at org.dcm4che2.net.PDUDecoder.nextPDU(PDUDecoder.java:155)
at org.dcm4che2.net.PDUDecoder.nextPDU(PDUDecoder.java:584)
at org.dcm4che2.net.PDUDecoder.isEOF(PDUDecoder.java:632)
at org.dcm4che2.net.PDFDecoder.copyTo(PDUDecoder.java:721)

My environment (JDK x32 - dcm4che-toolkit-2.0.27)

Tks in advanced.

Arnold Maderthaner

unread,
May 23, 2013, 6:54:29 AM5/23/13
to dcm...@googlegroups.com
what happens on the sender side ? did you check network connectivity ?

Max White

unread,
May 23, 2013, 12:56:27 PM5/23/13
to dcm...@googlegroups.com
Apparently due to sender timeout, the connection is terminated before dcmrcv reading the full image. 

This has something to do with the error ?

Bradley Ross

unread,
May 28, 2013, 9:15:03 AM5/28/13
to dcm...@googlegroups.com
When the connection is terminated the dcm4cv receives an end of file message because that is the end of what is being sent.  Since your code hasn't received the actual end of the file, it gives the messages you described.  The first thing that I would look at is how long the transfer has been going on before the connection is terminated and how much data is being sent.  You can also check the rate at which data is being sent.  Are you successful in receiving other images?  There are  a lot of possibilities.

Max White

unread,
May 29, 2013, 3:51:04 PM5/29/13
to dcm...@googlegroups.com
Tks Bradley

Yes, with other imagens (MR, CT) works fine.

With CR, RX, DX, DR images not. (files with 15-25 MB of size)

Any ideas ?

Arnold Maderthaner

unread,
Jun 3, 2013, 10:43:42 AM6/3/13
to dcm...@googlegroups.com
increase timeouts ans check your network speed.
Reply all
Reply to author
Forward
0 new messages