473,386 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

java.IO.Exception: There is no process to read data written to a pipe Error

Hi,

I have a java socket program running on AIX 4.3.3.0 platform. It
opens a socket and sends data to our customer over a leased fractional
T1 line. The line is always connected. However, periodically, I see
"java.IO.Exception: There is no process to read data written to a
pipe" error message in my log file. Can anybody tell me in what cases
this error message could occur?

The other strange thing is that our customer would report that they
miss a few messages everyday. And when I compare my log with the
customer's log, I found that the two messages reported to be lost are
actually the messages I sent before I see "there is no process to read
data written to a pipe" error message every time. For example, I sent
two files over, and no exceptions occurred; when i sent the third
file, an error message would say "there is no process to read data
written to a pipe", and the third message would get resent while our
customer is actually missing the first two messages. I don't
understand why I am not seeing any exceptions when I sent the first
two messages. It looks to me that when I sent the first message, the
link might have already been broken but somehow it didn't detect until
the third message was sent?? Does anyone have an idea of why that
happens or what's actually going on? I do a flush every time I send
out a message, and I've tried to set some of the options like
TCP_NODELAY and KEEP_SO_ALIVE, but nothing seemed to be working.

Can anyone help me? I'd appreciate any help!

Thanks a lot,

Jenny
Jul 17 '05 #1
1 27217
On Mon, 21 Jul 2003 11:21:38 -0700, jenny wrote:
Hi,

I have a java socket program running on AIX 4.3.3.0 platform. It opens
a socket and sends data to our customer over a leased fractional T1
line. The line is always connected. However, periodically, I see
"java.IO.Exception: There is no process to read data written to a pipe"
error message in my log file. Can anybody tell me in what cases this
error message could occur?
This is fundamentally a Unix error. It indicates that your thread
communicates over a pipe with another process on the same machine, and
that the receiving process has closed the pipe (or has simply died).
The other strange thing is that our customer would report that they miss
a few messages everyday. And when I compare my log with the customer's
log, I found that the two messages reported to be lost are actually the
messages I sent before I see "there is no process to read data written
to a pipe" error message every time. For example, I sent two files
over, and no exceptions occurred; when i sent the third file, an error
message would say "there is no process to read data written to a pipe",
and the third message would get resent while our customer is actually
missing the first two messages. I don't understand why I am not seeing
any exceptions when I sent the first two messages. It looks to me that
when I sent the first message, the link might have already been broken
but somehow it didn't detect until the third message was sent?? Does
anyone have an idea of why that happens or what's actually going on? I
do a flush every time I send out a message, and I've tried to set some
of the options like TCP_NODELAY and KEEP_SO_ALIVE, but nothing seemed to
be working.


This is fairly easy to explain. Pipes essentially use a buffer (I think
usually 8k). The first two messages fit into this buffer, the third one is
the one that causes a buffer overflow in the pipe. That's when AIX detects
that the pipe has broken and throws the exception.

I don't know much about the inner workings of Java or AIX in this context,
so I can't help you find out WHY the pipe breaks.

--
Keep American Families united! Support H.R. 539 and H.R. 832
For more information, see http://www.kkeane.com/lobbyspousal-faq.shtml

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Frank de Bot | last post by:
Hi, occasionaly I find in my apache logs that fastcgi had a broken pipe error with php running as fastcgi. the logs are like this: -- > (32)Broken pipe: > FastCGI: comm with server...
4
by: Mike Dole | last post by:
I'm working on a client - server application based on the 'How to Sockets Server and How to Sockets Client' code from the Visual Basic ..NET Resource Kit. Since I want to be able to send 'big...
13
by: j. del | last post by:
I am just beginning to write programs... and my first task that I have set myself is to write a little program that will generate cryptic bywords from a source of text. A cryptic byword is...
5
by: hpy_awad | last post by:
can cobol read binary data written by fprintf (C function) ?
3
by: Sandeep | last post by:
How do I read file written in Java using C++. Is there a way of doing this in standard C++ or do I need to depend on technologies like soap for this kind of interop. -- Sandeep
0
by: Arno | last post by:
Hi, I've written a class for client-socket connection, but I get a lot of times the error message "Unable to read data from the transport connection" when restart reading the stream with...
4
by: Francois Stander | last post by:
Hi, hope someone can help me. It seems imposible to read data from a server, however, I can read the validation data from the server and hold it in dataviews . datasets or data tables in my asp...
11
by: 7stud | last post by:
Hi, Can someone explain what a broken pipe is? The following produces a broken pipe error: ---------- import subprocess as sub p = sub.Popen(, stdin=sub.PIPE, stdout=sub.PIPE)
0
by: neuraljay | last post by:
hi everyone. I am trying to build a jsp using webwork, hibernate and mysql. And right now I am doing its unit testing. Everytime I run the test I am getting this error: Error JDBC exception on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.