473,698 Members | 2,242 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JDBC problem

I'm running an engine with 15 databases, with fair amount of load. Every
4-5 days I'm getting error like this from the java side and the
application stops working (and wont come back unless I restart) :

java.net.Socket Exception: Broken pipe
at java.net.Socket OutputStream.so cketWrite0(Nati ve Method)
at java.net.Socket OutputStream.so cketWrite(Socke tOutputStream.j ava:92)
at java.net.Socket OutputStream.wr ite(SocketOutpu tStream.java:13 6)
at java.io.Buffere dOutputStream.f lushBuffer(Buff eredOutputStrea m.java:66)
at java.io.Buffere dOutputStream.w rite(BufferedOu tputStream.java :110)
at java.io.FilterO utputStream.wri te(FilterOutput Stream.java:80)
at org.postgresql. PG_Stream.Send( PG_Stream.java: 87)
at org.postgresql. core.QueryExecu tor.sendQuery(Q ueryExecutor.ja va:184)
at org.postgresql. core.QueryExecu tor.execute(Que ryExecutor.java :71)
at
org.postgresql. jdbc1.AbstractJ dbc1Connection. ExecSQL(Abstrac tJdbc1Connectio n.java:505)
at
org.postgresql. jdbc1.AbstractJ dbc1Statement.e xecute(Abstract Jdbc1Statement. java:360)
at
org.postgresql. jdbc2.AbstractJ dbc2Statement.e xecute(Abstract Jdbc2Statement. java:48)
at
org.postgresql. jdbc1.AbstractJ dbc1Statement.e xecuteQuery(Abs tractJdbc1State ment.java:176)
at
org.postgresql. jdbc1.AbstractJ dbc1Statement.e xecuteQuery(Abs tractJdbc1State ment.java:163)
at
org.apache.comm ons.dbcp.Delega tingStatement.e xecuteQuery(Del egatingStatemen t.java:162)
at
com.eplica.mode l.persistence.J DBCPersistenceH elper.findByUni queSql(JDBCPers istenceHelper.j ava:704)
Does anyone know what this is about ?
I'm using Red hat Enterprise, and all the correct JDBC drivers etc.
thanx
-reynir

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 23 '05 #1
1 1349
Hi,
...I'm getting error like this from the java side and the
application stops working (and wont come back unless I restart...


How is the "applicatio n" invoked? Is it a "service" (servlet instance, RMI
object-mediated, etc.), i.e. does a core-component run forever and spawn
helpers to handle requests?

I'd guess that you are slurping output from an external process'
STDOUT/STDERR and the process-control API noticed that one or both sides of
the conversation broke the underlying conduit (the pipe) between the
processes.

Carl <|};-)>

-----Original Message-----
From: pg************* ****@postgresql .org
[mailto:pg****** ***********@pos tgresql.org] On Behalf Of Reynir Þór Hübner
Sent: Tuesday, May 11, 2004 3:37 AM
To: pg***********@p ostgresql.org
Subject: [GENERAL] JDBC problem
I'm running an engine with 15 databases, with fair amount of load. Every
4-5 days I'm getting error like this from the java side and the
application stops working (and wont come back unless I restart) :

java.net.Socket Exception: Broken pipe
at java.net.Socket OutputStream.so cketWrite0(Nati ve Method)
at java.net.Socket OutputStream.so cketWrite(Socke tOutputStream.j ava:92)
at java.net.Socket OutputStream.wr ite(SocketOutpu tStream.java:13 6)
at java.io.Buffere dOutputStream.f lushBuffer(Buff eredOutputStrea m.java:66)
at java.io.Buffere dOutputStream.w rite(BufferedOu tputStream.java :110)
at java.io.FilterO utputStream.wri te(FilterOutput Stream.java:80)
at org.postgresql. PG_Stream.Send( PG_Stream.java: 87)
at org.postgresql. core.QueryExecu tor.sendQuery(Q ueryExecutor.ja va:184)
at org.postgresql. core.QueryExecu tor.execute(Que ryExecutor.java :71)
at
org.postgresql. jdbc1.AbstractJ dbc1Connection. ExecSQL(Abstrac tJdbc1Connectio n
..java:505)
at
org.postgresql. jdbc1.AbstractJ dbc1Statement.e xecute(Abstract Jdbc1Statement. j
ava:360)
at
org.postgresql. jdbc2.AbstractJ dbc2Statement.e xecute(Abstract Jdbc2Statement. j
ava:48)
at
org.postgresql. jdbc1.AbstractJ dbc1Statement.e xecuteQuery(Abs tractJdbc1State m
ent.java:176)
at
org.postgresql. jdbc1.AbstractJ dbc1Statement.e xecuteQuery(Abs tractJdbc1State m
ent.java:163)
at
org.apache.comm ons.dbcp.Delega tingStatement.e xecuteQuery(Del egatingStatemen t
..java:162)
at
com.eplica.mode l.persistence.J DBCPersistenceH elper.findByUni queSql(JDBCPers i
stenceHelper.ja va:704)
Does anyone know what this is about ?
I'm using Red hat Enterprise, and all the correct JDBC drivers etc.
thanx
-reynir

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 23 '05 #2

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

Similar topics

0
4489
by: JShurmatz | last post by:
If anyone can shed some light on this problem I would greatly appreciate it. I am unsuccessfully trying to use a database connnection retrieved from a pool configured using Java System Web Server 6.1 with the SQL Server 2000 JDBC Driver. The background: 1. I have downloaded the SQL Server 2000 JDBC Driver and installed it on the web server.
1
6553
by: jdavis999x | last post by:
I have spent a good deal of time looking for how to connect an applet to a remote database (MS Access) using JDBC, as yet I have found no solid solution!! According to some books I have read the url takes the format of "jdbc:odbc://ipaddress:port/MS_Access/DBName" I am working with jbuilder and this does not work I am able to connect when i use "jdbc:odbc:DBNAME"
0
2262
by: Nils Valentin | last post by:
Hi MySQL Fans ;-), Is it possible that the 3.08 series allows to connect to 4.0.14 versions but not to the 4.1 alpha-versions ? I get belows error when tryig to connect from DbVisualizer which was working fine until a while ago. I haven't watched it recently, and haven't changed anything I am aware off right now. After I realized the problem I tried many 3.08 versions with the same symptom. Watch were it says "Unknown system variable...
0
2562
by: sridhar nagabhurshana | last post by:
hello I am trying to connect to mysql database using connector/J jdbc driver this is my code import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException;
4
6343
by: Dani | last post by:
Hi everyone Description of the problem: Using a PreparedStatement to write down an integer (int) plus a timestamp for testing purposes. When read out again the integer looks very different. We found that it was shifted three Bytes to the left, i.e. 4 becomes hex 4000000 which is 67108864 in decimal base. This means that the value written and the value read sometimes do not match, which is of course inacceptable for all real world...
0
3080
by: Bing | last post by:
Hi, I am configuring the same DB2 v8.1 JDBC universal driver (db2jcc.jar and db2jcc_license_cisuz.jar) from DB2 SP5 fix pack under WSAD 5.1.x environment and WebSphere application Server 5.0.2 on Windows 2000 machines. I configured a connection pool data source using type 4 for a local test environment in WSAD 5.1.x, and a connection pool data source on the WebSphere Server too. Both data sources are accessing the same database.
5
5627
by: Steffen | last post by:
hi there, i have a problem connecting to a db2 database 7.2.4 on AIX using java when running the javacode on AIX using jdk1.3.1. The classpath is correctly set to java12/... on windows the following code works fine for the same database: DB2XADataSource db2 = new DB2XADataSource(); db2.setDatabaseName("MYDB");
4
4121
by: Olivier | last post by:
Hello, Firstly all apologize for my english. Secondly, I've got some problems to connect to a DB2 database with JDBC client. My configuration is : - DB2 8.1 on an AIX server (name rs26 for the further example)
4
4148
by: Izak van Langevelde | last post by:
Shocks. Today I came to learn that Suns jdbc-odbc bridge driver isn't meant for serious purposes; it's experimental. I already knew it isn't thread safe, but didn't think of this as problematic for the relatively simple system I'm using it. However, I suspect there are other issues. Currently I'm stuck with a query which takes less than one second if I run it somewhere in my program's main thread, while it takes easily 40 seconds when I...
1
2695
by: tom.eeraerts | last post by:
Hello, I have a problem migrating an application from v5r2 to v5r3. The problem is with the prepared statements. To see what the problem is, i extracted a small piece of code and debugged the application while running it on my local window machine (IBM WSAD) but still connecting to the AS400. For the local debugging I use "com.ibm.as400.access.AS400JDBCDriver"
0
8676
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8608
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9164
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8898
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8870
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7734
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3051
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2332
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.