Connection reset by peer: socket write error

Anybody can help me?
I run vdbench to test our NAS server, but it always failed with "
Slave localhost-0 aborting: Error writing file Y:\dir11\vdb.1_2.dir\vdb.2_2.dir\vdb.3_1.dir\vdb.4_1.dir\vdb.5_2.dir\vdb.6_2.dir\vdb.7_1.dir\vdb.8_2.dir\vdb.9_2.dir\vdb.10_1.dir\vdb_f0001.file
Error:         Windows System Error code: 64: ",  how to solve this fail ?
conf file:
fsd=fsd,anchor=Y:\dir,count=(11,15),depth=10,width=2,files=1,size=(10k,20,100k,20,160k,20,8m,20,10m,10,1g,5,2g,5)
fwd=fwd1,fsd=(fsd11,fsd12,fsd13,fsd14,fsd15),rdpct=85,xfersize=(10k,22,100k,22,160k,22,8m,22,10m,12),fileio=random,fileselect=random,threads=5
rd=rd1,fwd=fwd1,operations=read,fwdrate=max,format=yes,elapsed=10,interval=1
logfile.html:
14:22:49.510 Vdbench distribution: vdbench50401
14:22:49.510
14:22:49.526 input argument scanned: '-fcifs'
14:22:49.526 java.vendor                   Sun Microsystems Inc.
14:22:49.526 java.home                     C:\Program Files\Java\jre6
14:22:49.526 java.vm.specification.version 1.0
14:22:49.526 java.vm.version               16.3-b01
14:22:49.526 java.vm.vendor                Sun Microsystems Inc.
14:22:49.526 java.specification.version    1.6
14:22:49.526 java.class.version            50.0
14:22:49.526 user.name                     zcuser1002
14:22:49.526 user.dir                      C:\Users\zcuser1002\Desktop\Y-vdbench-1021
14:22:49.526 java.class.path               C:\Users\zcuser1002\Desktop\Y-vdbench-1021\;C:\Users\zcuser1002\Desktop\Y-vdbench-1021\classes;C:\Users\zcuser1002\Desktop\Y-vdbench-1021\vdbench.jar
14:22:49.526 os.name                       Windows Server 2008 R2
14:22:49.526 os.arch                       amd64
14:22:49.526 os.version                    6.1
14:22:49.526 sun.arch.data.model           64
14:22:49.557 'fsd=fsd,count=(start,count)' added fsd11 Y:\dir11
15:08:57.031       2704    0.0  0.00   0.9 4.42   0.0    0.0  0.00    0.0  0.00  0.00  0.00   0.00       0   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00
15:08:58.030       2705  343.0 386.6   8.5 4.36   0.0    0.0  0.00  343.0 386.6  0.00 42.22  42.22  129071   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00
15:08:59.031       2706   15.0 983.4   0.0 3.41   0.0    0.0  0.00   15.0 983.4  0.00  1.85   1.85  129160   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00
15:09:51.406 localhost-0: anchor=Y:\dir15: Created 420 of 1024 files (41.02%)
15:10:02.202       2707  12143 31.35   8.0 6.25   0.0    0.0  0.00  12143 31.35  0.00  1513 1513.9  130736   0.0  0.00   0.0  0.00  65.0 59795  65.0 202.8  67.0 44969   0.0  0.00   0.0  0.00   0.0  0.00
15:10:02.234       2708    0.0  0.00   8.6 8.40   0.0    0.0  0.00    0.0  0.00  0.00  0.00   0.00       0   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00
15:10:02.249       2709    0.0  0.00  43.7 37.5   0.0    0.0  0.00    0.0  0.00  0.00  0.00   0.00       0   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00  27.0  4268   0.0  0.00   0.0  0.00   0.0  0.00
15:10:02.265       2710    0.0  0.00   0.0 0.00   0.0    0.0  0.00    0.0  0.00  0.00  0.00   0.00       0   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00
15:10:02.296       2711    0.0  0.00 100.0 81.2   0.0    0.0  0.00    0.0  0.00  0.00  0.00   0.00       0   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00
15:10:02.312       2712    0.0  0.00   0.0 0.00   0.0    0.0  0.00    0.0  0.00  0.00  0.00   0.00       0   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00
15:10:02.312 localhost-0: 15:10:02.218 op: write  lun: Y:\dir11\vdb.1_2.dir\vdb.2_2.dir\vdb.3_1.dir\vdb.4_1.dir\vdb.5_2.dir\vdb.6_2.dir\vdb.7_1.dir\vdb.8_2.dir\vdb.9_2.dir\vdb.10_1.dir\vdb_f0001.file lba:   1484652544 0x587E0000 xfer:   131072 errno: Windows System Error code: 64: ??¡§????????????
15:10:02.327 localhost-0: 15:10:02.234 op: write  lun: Y:\dir14\vdb.1_2.dir\vdb.2_2.dir\vdb.3_1.dir\vdb.4_1.dir\vdb.5_2.dir\vdb.6_2.dir\vdb.7_1.dir\vdb.8_2.dir\vdb.9_2.dir\vdb.10_1.dir\vdb_f0001.file lba:   1971847168 0x75880000 xfer:   131072 errno: Windows System Error code: 64: ??¡§????????????
15:10:02.343       2713    0.0  0.00 100.0 74.9   0.0    0.0  0.00    0.0  0.00  0.00  0.00   0.00       0   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00
15:10:02.343
15:10:02.343 **********************************************************
15:10:02.343 Slave localhost-0 aborting: Error writing file Y:\dir11\vdb.1_2.dir\vdb.2_2.dir\vdb.3_1.dir\vdb.4_1.dir\vdb.5_2.dir\vdb.6_2.dir\vdb.7_1.dir\vdb.8_2.dir\vdb.9_2.dir\vdb.10_1.dir\vdb_f0001.file
Error:         Windows System Error code: 64: ??¡§????????????
lba:           1484652544
xfersize:      131072
blocks_done:   11327
bytes_done:    1484652544
open_for_read: false
15:10:02.343 **********************************************************
15:10:02.343
15:10:18.013 Exception from slave: localhost-0
15:10:18.013
15:10:18.013 common.failure():
  java.net.SocketException: Connection reset by peer: socket write error
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source)
at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(Unknown Source)
at java.io.ObjectOutputStream.reset(Unknown Source)
at Vdb.SlaveSocket.putMessage(SlaveSocket.java:277)
at Vdb.CollectSlaveStats.<init>(CollectSlaveStats.java:121)
at Vdb.Reporter.run(Reporter.java:183)
localhost-0.stdout.html:
stdout/stderr for slave=localhost-0
14:22:50.072 14:22:50.072 SlaveJvm execution parameter:  '-m localhost'
14:22:50.072 14:22:50.072 SlaveJvm execution parameter:  '-n localhost-10-141104-14.22.49.432'
14:22:50.072 14:22:50.072 SlaveJvm execution parameter:  '-l localhost-0'
14:22:50.072 14:22:50.072 SlaveJvm execution parameter:  '-p 5570'
14:22:50.072 14:22:50.072 SlaveJvm positional parameter: 'SlaveJvm'
14:22:50.118 14:22:50.118 successfully connected to master localhost
14:22:50.118 14:22:50.118 Connection to localhost using port 5570 successful
14:22:50.571 14:22:50.571 execute(): ls -l Y:\dir11
14:22:50.618 14:22:50.618 execute(): ls -l Y:\dir12
14:22:50.633 14:22:50.633 execute(): ls -l Y:\dir13
14:22:50.664 14:22:50.664 execute(): ls -l Y:\dir14
14:22:50.680 14:22:50.680 execute(): ls -l Y:\dir15
14:22:50.711 14:22:50.711 Configuration interpretation took 0.45 seconds
Link to Run Definitions:         <A HREF="#_225912260">format_for_rd1 For loops: None</A>
                                 <A HREF="#_156265924">rd1 For loops: None</A>
14:22:50.852 14:22:50.852 Beginning of run setup
14:22:50.852 14:22:50.852 **********************
14:22:50.852
14:22:50.852
14:22:51.538 14:22:51.538 Completed the creation of the directory list for Y:\dir11: 2046 directories.
14:22:56.811 14:22:56.811 Memory total Java heap:   77.438 MB; Free:   32.782 MB; Used:   44.655 MB;
14:22:56.874 14:22:56.874 checkMemory()
14:22:56.874 14:22:56.874 Memory total Java heap:   77.438 MB; Free:   52.364 MB; Used:   25.074 MB;
14:23:03.426 14:23:03.426 Generated     1024 file names; total anchor size: 130.841g
14:23:03.426 14:23:03.426 Writing control file for anchor=Y:\dir11 at start of run.
14:23:03.457 14:23:03.441 Completed control file for anchor=Y:\dir11 at start of run.  dirs: 2046/2046 files: 1024/88 sizes: 130.841g/8.721g/0/0.0
14:23:03.457 14:23:03.441 During anchor creation for anchor=Y:\dir11 there were 2046 directories and 88 files
14:23:03.551 14:23:03.551 Completed the creation of the directory list for Y:\dir12: 2046 directories.
14:23:08.902 14:23:08.902 Memory total Java heap:   77.438 MB; Free:   24.149 MB; Used:   53.288 MB;
14:23:08.964 14:23:08.964 checkMemory()
14:23:08.964 14:23:08.964 Memory total Java heap:   77.438 MB; Free:   50.640 MB; Used:   26.798 MB;
14:23:15.579 14:23:15.579 Generated     1024 file names; total anchor size: 130.841g
14:23:15.579 14:23:15.579 Writing control file for anchor=Y:\dir12 at start of run.
14:23:15.594 14:23:15.594 Completed control file for anchor=Y:\dir12 at start of run.  dirs: 2046/2046 files: 1024/74 sizes: 130.841g/7.092g/0/0.0
14:23:15.594 14:23:15.594 During anchor creation for anchor=Y:\dir12 there were 2046 directories and 74 files
14:23:15.688 14:23:15.688 Completed the creation of the directory list for Y:\dir13: 2046 directories.
14:23:21.210 14:23:21.210 Memory total Java heap:   74.688 MB; Free:   19.725 MB; Used:   54.963 MB;
14:23:21.273 14:23:21.273 checkMemory()
14:23:21.273 14:23:21.273 Memory total Java heap:   76.562 MB; Free:   48.176 MB; Used:   28.386 MB;
14:23:28.168 14:23:28.168 Generated     1024 file names; total anchor size: 130.841g
14:23:28.168 14:23:28.168 Writing control file for anchor=Y:\dir13 at start of run.
14:23:28.184 14:23:28.184 Completed control file for anchor=Y:\dir13 at start of run.  dirs: 2046/2046 files: 1024/84 sizes: 130.841g/8.886g/0/0.0
14:23:28.184 14:23:28.184 During anchor creation for anchor=Y:\dir13 there were 2046 directories and 84 files
14:23:28.262 14:23:28.262 Completed the creation of the directory list for Y:\dir14: 2046 directories.
14:23:33.785 14:23:33.785 Memory total Java heap:   74.250 MB; Free:   17.213 MB; Used:   57.037 MB;
14:23:33.863 14:23:33.863 checkMemory()
14:23:33.863 14:23:33.863 Memory total Java heap:   72.812 MB; Free:   42.829 MB; Used:   29.983 MB;
14:23:40.976 14:23:40.976 Generated     1024 file names; total anchor size: 130.841g
14:23:40.976 14:23:40.976 Writing control file for anchor=Y:\dir14 at start of run.
14:23:40.976 14:23:40.976 Completed control file for anchor=Y:\dir14 at start of run.  dirs: 2046/2046 files: 1024/87 sizes: 130.841g/8.778g/0/0.0
14:23:40.976 14:23:40.976 During anchor creation for anchor=Y:\dir14 there were 2046 directories and 87 files
14:23:41.054 14:23:41.054 Completed the creation of the directory list for Y:\dir15: 2046 directories.
14:23:46.296 14:23:46.296 Memory total Java heap:   74.062 MB; Free:   42.390 MB; Used:   31.672 MB;
14:23:46.374 14:23:46.374 checkMemory()
14:23:46.374 14:23:46.374 Memory total Java heap:  101.000 MB; Free:   68.809 MB; Used:   32.191 MB;
14:23:52.958 14:23:52.958 Generated     1024 file names; total anchor size: 130.841g
14:23:52.958 14:23:52.958 Writing control file for anchor=Y:\dir15 at start of run.
14:23:52.989 14:23:52.973 Completed control file for anchor=Y:\dir15 at start of run.  dirs: 2046/2046 files: 1024/96 sizes: 130.841g/8.995g/0/0.0
14:23:52.989 14:23:52.973 During anchor creation for anchor=Y:\dir15 there were 2046 directories and 96 files
14:23:52.989 14:23:52.973 Skew for fwd=format,fsd=fsd11,operation=read:    20.0
14:23:52.989 14:23:52.973 Skew for fwd=format,fsd=fsd12,operation=read:    20.0
14:23:52.989 14:23:52.973 Skew for fwd=format,fsd=fsd13,operation=read:    20.0
14:23:52.989 14:23:52.973 Skew for fwd=format,fsd=fsd14,operation=read:    20.0
14:23:52.989 14:23:52.973 Skew for fwd=format,fsd=fsd15,operation=read:    20.0
14:23:53.051 14:23:53.051 Started 8 threads for fwd=format,fsd=fsd11
14:23:53.114 14:23:53.114 Started 8 threads for fwd=format,fsd=fsd12
14:23:53.161 14:23:53.161 Started 8 threads for fwd=format,fsd=fsd13
14:23:53.207 14:23:53.207 Started 8 threads for fwd=format,fsd=fsd14
14:23:53.270 14:23:53.270 Started 8 threads for fwd=format,fsd=fsd15
14:23:53.270 14:23:53.270 Started 40 FwgThreads
14:23:53.270 14:23:53.270 Waiting for task synchronization
14:23:53.270 14:23:53.270 task_wait_start_complete() end
<a name="_225912260"></a><i><b>14:23:53.971 Starting RD=format_for_rd1</b></i>
14:23:54.002 14:23:54.002 task_run_all(): 41 tasks
14:23:54.051 14:23:54.051 Message to master: anchor=Y:\dir15 mkdir complete.
14:23:54.051 14:23:54.051 Message to master: anchor=Y:\dir11 mkdir complete.
14:23:54.051 14:23:54.051 Message to master: anchor=Y:\dir13 mkdir complete.
14:23:54.066 14:23:54.066 Message to master: anchor=Y:\dir14 mkdir complete.
14:23:54.066 14:23:54.066 Message to master: anchor=Y:\dir12 mkdir complete.
14:24:24.685 14:24:24.685 Message to master: anchor=Y:\dir14: Created 130 of 1024 files (12.70%)
14:24:56.311 14:24:56.311 Message to master: anchor=Y:\dir12: Created 130 of 1024 files (12.70%)
14:25:40.473 14:25:40.464 Message to master: anchor=Y:\dir13: Created 140 of 1024 files (13.67%)
14:32:52.125 14:32:52.125 Message to master: anchor=Y:\dir12: Created 140 of 1024 files (13.67%)
14:33:30.374 14:33:30.374 Message to master: anchor=Y:\dir12: Created 160 of 1024 files (15.63%)
14:34:33.842 14:34:33.842 Message to master: anchor=Y:\dir14: Created 170 of 1024 files (16.60%)
14:35:49.810 14:35:49.810 Message to master: anchor=Y:\dir14: Created 180 of 1024 files (17.58%)
14:36:34.451 14:36:34.451 Message to master: anchor=Y:\dir14: Created 190 of 1024 files (18.55%)
14:38:13.437 14:38:13.437 Message to master: anchor=Y:\dir14: Created 200 of 1024 files (19.53%)
14:39:01.966 14:39:01.966 Message to master: anchor=Y:\dir11: Created 210 of 1024 files (20.51%)
14:39:57.837 14:39:57.837 Message to master: anchor=Y:\dir15: Created 220 of 1024 files (21.48%)
14:41:51.763 14:41:51.763 Message to master: anchor=Y:\dir13: Created 220 of 1024 files (21.48%)
14:42:31.156 14:42:31.156 Message to master: anchor=Y:\dir14: Created 240 of 1024 files (23.44%)
14:45:32.607 14:45:32.607 Message to master: anchor=Y:\dir15: Created 260 of 1024 files (25.39%)
14:46:44.611 14:46:44.611 Message to master: anchor=Y:\dir11: Created 270 of 1024 files (26.37%)
14:47:53.707 14:47:53.707 Message to master: anchor=Y:\dir14: Created 280 of 1024 files (27.34%)
14:48:25.032 14:48:25.032 Message to master: anchor=Y:\dir12: Created 280 of 1024 files (27.34%)
14:48:56.946 14:48:56.946 Message to master: anchor=Y:\dir13: Created 290 of 1024 files (28.32%)
14:50:40.869 14:50:40.868 Message to master: anchor=Y:\dir11: Created 300 of 1024 files (29.30%)
14:51:22.062 14:51:22.062 Message to master: anchor=Y:\dir15: Created 330 of 1024 files (32.23%)
14:53:55.390 14:53:55.390 Message to master: anchor=Y:\dir14: Created 350 of 1024 files (34.18%)
14:56:20.897 14:56:20.897 Message to master: anchor=Y:\dir14: Created 360 of 1024 files (35.16%)
14:58:08.513 14:58:08.513 Message to master: anchor=Y:\dir11: Created 360 of 1024 files (35.16%)
14:59:34.933 14:59:34.933 Message to master: anchor=Y:\dir12: Created 360 of 1024 files (35.16%)
15:02:15.234 15:02:15.234 Message to master: anchor=Y:\dir13: Created 370 of 1024 files (36.13%)
15:02:48.482 15:02:48.482 Message to master: anchor=Y:\dir14: Created 380 of 1024 files (37.11%)
15:04:27.359 15:04:27.359 Message to master: anchor=Y:\dir13: Created 380 of 1024 files (37.11%)
15:05:57.406 15:05:57.406 Message to master: anchor=Y:\dir15: Created 390 of 1024 files (38.09%)
15:07:18.982 15:07:18.982 Message to master: anchor=Y:\dir11: Created 390 of 1024 files (38.09%)
15:08:15.419 15:08:15.419 Message to master: anchor=Y:\dir11: Created 410 of 1024 files (40.04%)
15:08:50.624 15:08:50.624 Message to master: anchor=Y:\dir13: Created 410 of 1024 files (40.04%)
15:09:51.406 15:09:51.406 Message to master: anchor=Y:\dir15: Created 420 of 1024 files (41.02%)
15:10:02.202 15:10:02.202 file_write error2: 64
15:10:02.202 15:10:02.202 file_write error2: 64
15:10:02.202 15:10:02.202 handle: 0000000000000B38
15:10:02.202 15:10:02.202 seek:   0000000075880000
15:10:02.202 15:10:02.202 handle: 0000000000000BC0
15:10:02.202 15:10:02.202 length: 0000000000020000
15:10:02.202 15:10:02.202 seek:   00000000587E0000
15:10:02.202 15:10:02.202 buffer: 0000000034430000
15:10:02.202 15:10:02.202 length: 0000000000020000
15:10:02.202 15:10:02.202 buffer: 000000002E3E0000
15:10:02.234 15:10:02.234
15:10:02.234 15:10:02.234 Error writing file Y:\dir11\vdb.1_2.dir\vdb.2_2.dir\vdb.3_1.dir\vdb.4_1.dir\vdb.5_2.dir\vdb.6_2.dir\vdb.7_1.dir\vdb.8_2.dir\vdb.9_2.dir\vdb.10_1.dir\vdb_f0001.file
15:10:02.234 15:10:02.234 Error:         Windows System Error code: 64: ??¡§????????????
15:10:02.234 15:10:02.234 lba:           1484652544
15:10:02.234 15:10:02.234 xfersize:      131072
15:10:02.234 15:10:02.234 blocks_done:   11327
15:10:02.234 15:10:02.234 bytes_done:    1484652544
15:10:02.234 15:10:02.234 open_for_read: false
15:10:02.234 15:10:02.234
15:10:02.234 java.lang.RuntimeException: Error writing file Y:\dir11\vdb.1_2.dir\vdb.2_2.dir\vdb.3_1.dir\vdb.4_1.dir\vdb.5_2.dir\vdb.6_2.dir\vdb.7_1.dir\vdb.8_2.dir\vdb.9_2.dir\vdb.10_1.dir\vdb_f0001.file
15:10:02.234 Error:         Windows System Error code: 64: ??¡§????????????
15:10:02.234 lba:           1484652544
15:10:02.234 xfersize:      131072
15:10:02.234 blocks_done:   11327
15:10:02.234 bytes_done:    1484652544
15:10:02.234 open_for_read: false
15:10:02.234  at Vdb.common.failure(common.java:308)
15:10:02.234  at Vdb.ActiveFile.writeError(ActiveFile.java:611)
15:10:02.234  at Vdb.ActiveFile.writeBlock(ActiveFile.java:458)
15:10:02.234  at Vdb.FwgThread.doSequentialWrite(FwgThread.java:327)
15:10:02.234  at Vdb.OpCreate.doOperation(OpCreate.java:51)
15:10:02.234  at Vdb.OpFormat.doOperation(OpFormat.java:91)
15:10:02.234  at Vdb.FwgThread.run(FwgThread.java:157)

'Socket write error' is merely the master finding out that the slave aborted unexpectedly.
It it the '64' you have to worry about.
Windows system error code 64:
(It appears that the Vdbench translation from number to text may have some language issues and therefore can not properly print it).
ERROR_NETNAME_DELETED
64 (0x40)
The specified network name is no longer available.

Similar Messages

  • JCOM throwing SocketException: Connection reset by peer: socket write error

    I have an ejb which is calling a simple ActiveX component using JCOM.
    Ocassionally the ejb loses the ability to connect to the ActiveX component. Any attempt to call a method results in a java.net.SocketException: Connection reset by peer: socket write error.
    However the ActiveX component continues to run correctly. I can still connect to it using a vb test client. This is using com to connect, not DCOM as used by JCOM(JIntegra).
    The application server and the ActiveX component are running on the same server.
    Any suggestions as to why the JIntegra DCOM request could be failing?
    Thanks,
    Greg.

    I have an ejb which is calling a simple ActiveX component using JCOM.
    Ocassionally the ejb loses the ability to connect to the ActiveX component. Any attempt to call a method results in a java.net.SocketException: Connection reset by peer: socket write error.
    However the ActiveX component continues to run correctly. I can still connect to it using a vb test client. This is using com to connect, not DCOM as used by JCOM(JIntegra).
    The application server and the ActiveX component are running on the same server.
    Any suggestions as to why the JIntegra DCOM request could be failing?
    Thanks,
    Greg.

  • Connection reset by peer : Socket write

    Hi, everybody
    I am working with weblogic5.1 with servicepack 8. Our server is running for
    24X7X365 but i got some weired error this morning saying that "IO Exception
    :Connection reset by peer : Socket write
    error". I believe this has to do with weblogic.
    Can somebody guide me on this issue.
    Any help would be appreciated.
    Thanks
    Gautam

    Pretty difficult to track such kind of things if it is not easily
    reproducible. Could you also try it out with SP9? Also, try posting it
    on the JDBC newsgroup. Maybe, Joe Weinstein might have more answers.
    Shiva.
    "G.........." wrote:
    LoggingService is one of class that calls db methods.well, we get
    connection from pool and return it pool .we are refreshing connection
    pool regularly, following is some of the entries in properties
    file initialCapacity=5,\
    maxCapacity=10,\
    capacityIncrement=1,\
    allowShrinking=true,\
    shrinkPeriodMins=15,\
    refreshMinutes=10,\ No this message is not easily
    reproductible.JDK version 1.2.2 and os is windows NT4.0 ThanksGautam
    "Shiva Paranandi" <[email protected]> wrote in message
    news:[email protected] does this
    "com.gdaxs.util.LoggingService.logSystemErrorMsg" do? How is
    your pool usage? Do you use the connection pools for a long
    time? Also, can you check if this happens after a pool
    refresh or not? Is this message easily reproducable? What is
    the jdk version you are using and what OS?
    Shiva.
    "G.........." wrote:
    Here is complete stack trace.
    Io exception: Connection reset by peer: JVM_recv in socket
    input stream read
    Stack trace:
    java.sql.SQLException: Io exception: Connection reset by
    peer: JVM_recv in socket input stream read
    at
    com.gdaxs.util.LoggingService.logSystemErrorMsg(LoggingService.java:309)
    at
    com.gdaxs.DBManager.DataRetrieverBean.getCloseOrders(DataRetrieverBean.java:2208)
    at
    com.gdaxs.DBManager.DataRetrieverBeanEOImpl.getCloseOrders(DataRetrieverBeanEOImpl.java:2656)
    at
    com.gdaxs.DBManager.DataRetrieverBeanEOImpl_ServiceStub.getCloseOrders(DataRetrieverBeanEOImpl_ServiceStub.java:343)
    at
    com.gdaxs.closedOrdersBean.init(closedOrdersBean.java:95)
    at
    jsp_servlet._closedorders._jspService(_closedorders.java:236)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:106)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:907)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:851)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:252)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:364)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
    at
    weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
    and after it series of exception like below
    Io exception: Connection reset by peer: socket write error
    Stack trace:
    java.sql.SQLException: Io exception: Connection reset by
    peer: socket write error
    at
    com.gdaxs.util.LoggingService.logSystemErrorMsg(LoggingService.java:309)
    at
    com.gdaxs.traderadministrator.LDAPInterfaceBean.getTradingAccounts(LDAPInterfaceBean.java:285)
    at
    com.gdaxs.traderadministrator.LDAPInterfaceBean.getTraderCredentials(LDAPInterfaceBean.java:137)
    at
    com.gdaxs.traderadministrator.LDAPInterfaceBeanEOImpl.getTraderCredentials(LDAPInterfaceBeanEOImpl.java:99)
    at
    com.gdaxs.traderadministrator.LDAPInterfaceBeanEOImpl_ServiceStub.getTraderCredentials(LDAPInterfaceBeanEOImpl_ServiceStub.java:109)
    at
    com.gdaxs.traderadministrator.TraderAdministrator.onMessage(TraderAdministrator.java:278)
    at
    progress.message.jclient.Session.ew_(progress/message/jclient/Session.java)
    at
    progress.message.jclient.QueueSession.run(progress/message/jclient/QueueSession.java)
    at
    progress.message.jclient.sl.run(progress/message/jclient/Session$SessionThread.java)
    Thanks
    Gautam"Shiva Paranandi" <[email protected]> wrote in
    message news:[email protected]...> Could you
    post the entire exception?
    Shiva.
    "G.........." wrote:
    Hi, everybody
    I am working with weblogic5.1 with servicepack 8. Our
    server is running for
    24X7X365 but i got some weired error this morningsaying that "IO Exception
    :Connection reset by peer : Socket write
    error". I believe this has to do with weblogic.
    Can somebody guide me on this issue.
    Any help would be appreciated.
    Thanks
    Gautam
    [att1.html]

  • Connection reset by peer.

    I recently started getting following exception. I use Windows 2000
              with weblogic 5.1 service pack 12. This problem does not effect the
              functionality, and happens randomly.
              Thank you,
              berker(at)optonline.net
              java.net.SocketException: Connection reset by peer: socket write error
                   at java.net.SocketOutputStream.socketWrite(Native Method)
                   at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
                   at weblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java:88)
                   at weblogic.servlet.internal.ResponseHeaders.writeHeaders(ResponseHeaders.java:336)
                   at weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseImpl.java:603)
                   at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:101)
                   at weblogic.servlet.internal.ServletOutputStreamImpl.writeStream(ServletOutputStreamImpl.java:430)
                   at weblogic.servlet.FileServlet.sendFile(FileServlet.java:199)
                   at weblogic.servlet.FileServlet.service(FileServlet.java:56)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
                   at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)
                   at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
                   at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

    Looks like the browser user is closing the browser or moving on to a new url before the response comes back.
              Search the newsgroup, as there are a number of posts concerning this.
              Bill
              berker wrote:
              > I recently started getting following exception. I use Windows 2000
              > with weblogic 5.1 service pack 12. This problem does not effect the
              > functionality, and happens randomly.
              >
              > Thank you,
              > berker(at)optonline.net
              >
              > java.net.SocketException: Connection reset by peer: socket write error
              > at java.net.SocketOutputStream.socketWrite(Native Method)
              > at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
              > at weblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java:88)
              > at weblogic.servlet.internal.ResponseHeaders.writeHeaders(ResponseHeaders.java:336)
              > at weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseImpl.java:603)
              > at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:101)
              > at weblogic.servlet.internal.ServletOutputStreamImpl.writeStream(ServletOutputStreamImpl.java:430)
              > at weblogic.servlet.FileServlet.sendFile(FileServlet.java:199)
              > at weblogic.servlet.FileServlet.service(FileServlet.java:56)
              > at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
              > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105)
              > at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
              > at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
              > at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)
              > at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
              > at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

  • Simple Webserver SocketException: socket write error

    I'm stuck and need some help solving this problem.
    When I try to get the 404 message with the webserver, I get this in the output console:
    "HttpRequest - java.net.SocketException: Connection reset by peer: socket write error"
    I have found the part that makes the problem, but I can't find a solution.
    I hope someone can help me with this!
                try
                    outputStream.writeBytes(entityBody);
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public final class WebServer
        public static void main(String[] args) throws Exception
            //Port number
            int port = 8080;
            // Establish the listen socket.
            ServerSocket webSocket = new ServerSocket(port);
            // Process HTTP service requests in an infinite loop.
            while(true)
                // Listen for a TCP connection request
                Socket tcpSocket = webSocket.accept();
                HttpRequest httpRequest = new HttpRequest(tcpSocket);
                Thread thread = new Thread(httpRequest);
                thread.start();
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class HttpRequest implements Runnable
        final static String CRLF = "\r\n";
        private Socket socket;
        private String path = "public_html/";
        public HttpRequest(Socket socket)
            this.socket = socket;
        public void run()
            try
                processReguest();
            catch(Exception ex)
                System.err.println(ex);
        private void processReguest() throws Exception
            // Get a reference to the socket's input and output streams.
            InputStreamReader inputReader = new InputStreamReader(socket.getInputStream());
            DataOutputStream outputStream = new DataOutputStream(socket.getOutputStream());
            BufferedReader buffReader = new BufferedReader(inputReader);
            String requestLine = buffReader.readLine();
            System.out.println();
            System.out.println(requestLine);
            String headerLine = null;
            while((headerLine = buffReader.readLine()).length() != 0)
                System.out.println(headerLine);
            // Extract the filename from the request line
            StringTokenizer tokens = new StringTokenizer(requestLine);
            tokens.nextToken();
            String fileName = tokens.nextToken();
            //Prepend a "." so that the file request is within the current directory
            fileName = path + "." + fileName;
            //Open the request file
            FileInputStream fileInputStream = null;
            boolean fileExists = true;
            try
                fileInputStream = new FileInputStream(fileName);
            catch(FileNotFoundException ex)
                fileExists = false;
            //Construct the response message.
            String statusLine = null;
            String connection = null;
            String contentLength = null;
            String contentTypeLine = null;
            String entityBody = null;
            String contentType = contentType(fileName);
            if(!requestLine.startsWith("GET") && !requestLine.startsWith("HEAD"))
                statusLine = "HTTP/1.0 405 Method Not Allowed" + CRLF;
                contentLength = "Content-Length: 0" + CRLF;
                connection = "Connection: close" + CRLF;
                contentTypeLine = "Content-type: " + "text/html" + CRLF;
                entityBody = "<HTML><HEAD><TITLE>405 - Method Not Allowed</TITLE></HEAD><BODY>405 - Method Not Allowed</BODY></HTML>";
                fileInputStream = null;
                fileExists = false;
            else if(fileExists && !contentType.equals("application/octet-stream"))
                statusLine = "HTTP/1.0 200 OK" + CRLF;
                contentTypeLine = "Content-type: " + contentType(fileName) + CRLF;
                connection = "Connection: close" + CRLF;
                contentLength = "Content-Length: " + Integer.toString(fileInputStream.available()) + CRLF;
            else if(fileExists && contentType.equals("application/octet-stream"))
                statusLine = "HTTP/1.0 415 Unsupported Media Type" + CRLF;
                contentLength = "Content-Length: 0" + CRLF;
                connection = "Connection: close" + CRLF;
                contentTypeLine = "Content-type: " + "text/html" + CRLF;
                entityBody = "<HTML><HEAD><TITLE>415 - Unsupported Media Type</TITLE></HEAD><BODY>415 - Unsupported Media Type</BODY></HTML>";
                fileInputStream = null;
                fileExists = false;
            else
                statusLine = "HTTP/1.0 404 Bad Request" + CRLF;
                contentLength = "Content-Length: 0" + CRLF;
                connection = "Connection: close" + CRLF;
                contentTypeLine = "Content-type: " + "text/html" + CRLF;
                entityBody = "<HTML><HEAD><TITLE>404 - Not Found</TITLE></HEAD><BODY>404 - Not Found</BODY></HTML>";
            // Send the status line
            outputStream.writeBytes(statusLine);
            // Send the connection status
            outputStream.writeBytes(connection);
            // Send the Content-Length
            outputStream.writeBytes(contentLength);
            // Send the content type line
            outputStream.writeBytes(contentTypeLine);
            //Send a blank line to indicate the end of the header lines.
            outputStream.writeBytes(CRLF);
            // Send the enity body
            if(fileExists)
                //Den här funkar??
                sendBytes(fileInputStream, outputStream);
                fileInputStream.close();
            else
                try
                    outputStream.writeBytes(entityBody);
                catch(SocketException ex)
                    System.out.println(ex);
            socket.close();
            inputReader.close();
            outputStream.close();
            buffReader.close();
        private void sendBytes(FileInputStream fileInputStream, DataOutputStream outputStream) throws IOException
            //Construct a 1k buffer to hold bytes on their way to the socket
            byte[] buffer = new byte[1024];
            int bytes = 0;
            // Copy request file inte socket's output stream
            while((bytes = fileInputStream.read(buffer)) != -1)
                outputStream.write(buffer,0, bytes);
        private String contentType(String fileName)
            if(fileName.endsWith(".htm") || fileName.endsWith(".html"))
                return "text/html";
            else if(fileName.endsWith(".jpg") || fileName.endsWith(".jpeg"))
                return "image/jpeg";
            else if(fileName.endsWith(".gif"))
                return "image/gif";
            else if(fileName.endsWith(".png"))
                return "image/png";
            else if(fileName.endsWith(".txt"))
                return "text/plain";
            return "application/octet-stream";
    }

    You've told the client that the content length is zero bytes so I presume it closes the connection as soon as it finishes receiving headers. It depends what client you're using of course but that seems reasonable behaviour...

  • Connection reset by peer problem

    I have the following code, and every time I run it i get a "java.net.SocketException: Connection reset by peer: socket write error" exception. Why is that? This is the first time I'm writing a network client application, so please help :)
    Socket s = new Socket("127.0.0.1",8080);
    OutputStream out = new BufferedOutputStream(s.getOutputStream());
    InputStream in = new BufferedInputStream(s.getInputStream());
    out.write("server status\r\n".getBytes());
    //out.flush();
    StringBuffer responseLine = new StringBuffer();
    int c;
    while(in.available() > 0) {
      c = in.read();
      responseLine.append((char)c);
    //out.close();
    //in.close();
    //s.close();
    System.out.println(responseLine.toString());P.S. It's the same problem with or wothout the out.flush(), and with or wothout closing my streams and socket.

    InputStream = new BufferedReader
    Um..just look at that code, oh boy.
    InputStream is a class and so is
    BufferedReader
    Two different classes (event if they are subclasses)
    cant be directly assigned to each other.The human eye sometimes sees what it wants to see and not what it is... :-)
    I think the problem is with the protocol and the timing. The while loop may never execute due to timing:
    1. Client's "server status" request takes a few ms to arrive in the server.
    2. In the meanwhile, in.available is zero and the client does not enter the loop and does not append any characters to the string buffer.
    3. Server writes its status on the socket which arrives at the client which is no longer reading it a few ms later.
    Which brings us to the protocol:
    If the server status is a fixed length block of data, try reading it into a single byte buffer.
    If it is variable length or text, use a BufferedReader on the socket, read the response a line at a time and make the server end the report with a token (like a last line of "END_OF_SERVER_STATUS_REPORT" or "01234567890123456789012345678901234567890123456789", whatever).
    Don't check if data is available on a socket if you know it should be, sooner or later, and you don't want to multiplex your flow on data availability.

  • Socket write error

    Java.net.SocketException; connection reset by peer. socket write error
    Java.SQLException; cannot open anymore tables.
    I am getting this error when i'm using Tomcat 3.3 server. I am using servlet classes and access database.This error comes in 1-2 days and then it shows an sql exception that it cannot open any more tables. I am using an access database thru an ODBC datasource.
    The problem is solved when tomcat is restarted.
    If anybody knows the solution pl.let me know, anita

    Thanks 4 ur response. I am connecting to the database through JDBC which in turn uses an ODBC data source. The connection has been declared as global and is thus supposed to exist till the servlet is not destroyed.
    We r using an access D/B which is inturn accessed through ODBC.
    So it is not restarted or disturbed.
    Pl. help

  • Javax.servlet.ServletException: Connection reset by peer....Help needed..

    Initially, when I clicked on my JSPs, everything was fine. I was able to retrieve data successfully from all the JSPs. However, after much clicking through the JSPs. I was not able to access the JSPs and the Internal Servlet Error was shown.
    Below is my Tomcat.log:
    Context log: path="/Aedge" Error in jsp service() : Connection reset by peer: socket write error
    javax.servlet.ServletException: Connection reset by peer: socket write error
         at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:375)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
         at org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:163)
         at org.apache.tomcat.servlets.DefaultServlet.doGet(DefaultServlet.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
         at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
         at java.lang.Thread.run(Unknown Source)
    Context log: path="/Aedge" <b>Internal Servlet Error:</b><br>.....
    What is the problem here? How can I solve this as I had to restart my Tomcat once a while due to this problem.

    ok.. I have db classes where all my sql statements methods are being displayed.. In each db class, there will be a getInstance() method to create the connection. Below is one of my db class.. How to I modified the things you had mentioned in my codes..
    package aedgeSoft.access;
    import aedgeSoft.business.*;
    import java.sql.*;
    import java.util.*;
    import java.util.Date;
    import java.io.*;
    public class DBMemberType
         private Connection con;
         private static DBMemberType instance = null;
         public static DBMemberType getInstance()
              try
                   if(instance==null)
                        instance = new DBMemberType();
              catch(SQLException e)
                   System.out.println("Problems with loading database in DBMemberType");
              catch(ClassNotFoundException e)
                   System.out.println("Problems with loading db driver in DBMemberType");
              finally
                   return instance;
         private DBMemberType() throws SQLException, ClassNotFoundException
              try{
              Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
              con = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433;user=username;password=password;DatabaseName=db");
              catch(InstantiationException e)
                   e.printStackTrace();
              catch(IllegalAccessException e)
                   e.printStackTrace();
         //add memberType
         public boolean addMemberType(MemberType mt)
    ..........

  • Connection reset by peer (jdk/jre 1.5.0_06, oracle 10.2.0.2)

    I keep getting the "Oracle says: Io exception: Connection reset by peer: socket write error" to my jdbc thin client connection.
    I have talked to our dba's and they don't see anything wrong on the oracle side. Network people say the network is good. Was this bug fixed in newer versions of ojdbc14.jar?

    With JDK 5.0 use ojdbc5.jar instead of ojdbc14.jar.

  • Re: Connection reset by peer: Connection reset by peer

              >This is not a problem. It is an error message that you can safely ignore (that
              we should not be printing) and have fixed in version 6.0.
              Sorry but we are upgrading from 5.1 to 6.1sp2 and this became a problem for us.
              Indeed we just ignored this exception in 5.1, but today with 6.1sp2, we get it
              each time we do a RequestDispatcher.forward(). The forward is done, but every
              attributes set on the request are lost !!
              At first I thought it was related with the NT Muxer, or the NT Performance Pack,
              I removed the property NativeIOEnabled but I still get a :
              ven. 20020726 09:11:31 CEST <0> java.net.SocketException: Connection reset by
              peer: socket write error
                   at java.net.SocketOutputStream.socketWrite(Native Method)
                   at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
                   at weblogic.servlet.internal.ChunkUtils.writeHeaderChunk(ChunkUtils.java:151)
                   at weblogic.servlet.internal.ResponseHeaders.writeHeaders(ResponseHeaders.java:380)
                   at weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseImpl.java:827)
                   at weblogic.servlet.internal.ServletOutputStreamImpl.sendHeaders(ServletOutputStreamImpl.java:222)
                   at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:113)
                   at weblogic.servlet.internal.ServletOutputStreamImpl.commit(ServletOutputStreamImpl.java:446)
                   at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:266)
                   at cegedim.tvf.teamsweb.gui.TeamsWebScreenBuilder.forwardScreen(TeamsWebScreenBuilder.java:155)
                   at cegedim.tvf.teamsweb.gui.TeamsWebScreenBuilder.build(TeamsWebScreenBuilder.java:98)
                   at cegedim.tvf.koala.servlet.GlobalServlet.callResultBuilder(GlobalServlet.java:365)
                   at cegedim.tvf.teamsweb.servlet.ConnectionServlet.doPost(ConnectionServlet.java:112)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
                   at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
                   at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

              Yann,
              This is not a J2EE Connector problem. From the stack trace it looks like you might
              have better luck posting this to the Servlet newsgroup.
              Also, just so that you are aware, this newsgroup is not monitored regularly so
              if your issue/question is not getting answered in a timely manner, please send
              a request to BEA Support.
              >
              >>This is not a problem. It is an error message that you can safely ignore
              >(that
              >we should not be printing) and have fixed in version 6.0.
              >
              >--
              >
              >Sorry but we are upgrading from 5.1 to 6.1sp2 and this became a problem
              >for us.
              >Indeed we just ignored this exception in 5.1, but today with 6.1sp2,
              >we get it
              >each time we do a RequestDispatcher.forward(). The forward is done, but
              >every
              >attributes set on the request are lost !!
              >At first I thought it was related with the NT Muxer, or the NT Performance
              >Pack,
              >I removed the property NativeIOEnabled but I still get a :
              >
              >ven. 20020726 09:11:31 CEST <0> java.net.SocketException: Connection
              >reset by
              >peer: socket write error
              >     at java.net.SocketOutputStream.socketWrite(Native Method)
              >     at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
              >     at weblogic.servlet.internal.ChunkUtils.writeHeaderChunk(ChunkUtils.java:151)
              >     at weblogic.servlet.internal.ResponseHeaders.writeHeaders(ResponseHeaders.java:380)
              >     at weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseImpl.java:827)
              >     at weblogic.servlet.internal.ServletOutputStreamImpl.sendHeaders(ServletOutputStreamImpl.java:222)
              >     at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:113)
              >     at weblogic.servlet.internal.ServletOutputStreamImpl.commit(ServletOutputStreamImpl.java:446)
              >     at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:266)
              >     at cegedim.tvf.teamsweb.gui.TeamsWebScreenBuilder.forwardScreen(TeamsWebScreenBuilder.java:155)
              >     at cegedim.tvf.teamsweb.gui.TeamsWebScreenBuilder.build(TeamsWebScreenBuilder.java:98)
              >     at cegedim.tvf.koala.servlet.GlobalServlet.callResultBuilder(GlobalServlet.java:365)
              >     at cegedim.tvf.teamsweb.servlet.ConnectionServlet.doPost(ConnectionServlet.java:112)
              >     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              >     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              >     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
              >     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
              >     at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
              >     at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
              >     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              >     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              >
              

  • RE: SocketException: Connection reset by peer

     

    I am getting a same exception in WebLogic6.1 SP1.
    java.net.SocketException: Connection reset by peer: socket write error
         at java.net.SocketOutputStream.socketWrite(Native Method)
         at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
         at weblogic.servlet.internal.ChunkUtils.writeHeaderChunk(ChunkUtils.java:151)
         at weblogic.servlet.internal.ResponseHeaders.writeHeaders(ResponseHeaders.java:380)
         at weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseImpl.java:827)
         at weblogic.servlet.internal.ServletOutputStreamImpl.sendHeaders(ServletOutputStreamImpl.java:222)
         at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:241)
         at weblogic.servlet.internal.ChunkOutput.checkForFlush(ChunkOutput.java:306)
         at weblogic.servlet.internal.MultibyteOutput.write(ChunkOutput.java:413)
         at weblogic.servlet.internal.MultibyteOutput.print(ChunkOutput.java:389)
         at weblogic.servlet.internal.ChunkOutputWrapper.print(ChunkOutputWrapper.java:134)
         at weblogic.servlet.jsp.JspWriterImpl.print(JspWriterImpl.java:111)
    Anybody has any idea?

  • "Connection reset by peer"   Help Me

    Hi
    I have j2re1.4.2_08 and Oracle 9.2
    When I tried to update database with huge data I got following exception:
    java.sql.SQLException: Io exception: Connection reset by peer: socket write error
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2061)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1940)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2709)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:589)
    at edu.bnmit.BookDBUpdateThread.run(BookDBUpdateThread.java:80)
    at edu.bnmit.BookDBUpdateThread.update(BookDBUpdateThread.java:46)
    at java.lang.Thread.run(null:-1)
    method used to update database is:
    void update(Books b[]){
    Connection dbConnection;
    PreparedStatement stmt;
    try{
    dbConnection = DriverManager.getConnection(
    dbConnection.setAutoCommit(false);
    String sqlStmt = "UPDATE Books SET " +
    "bookName=?, bookAuthor=?" +
    "WHERE bookId=?";
    stmt = dbConnection.prepareStatement(sqlStmt);
    for(int i = 0; i < b.length; i++){
    stmt.setString(1,b.bookName);
    stmt.setString(2,b.bookAuthor);
    stmt.setInt(3,b.bookId);
    stmt.executeUpdate();
    dbConnection.commit();
    stmt.close();
    dbConnection.close();
    }catch(SQLException e){
    System.err.println("Error While Updating Table");
    String s = e.toString();
    StackTraceElement trace[] = e.getStackTrace();
    for(int j = 0; j < trace.length; j++){
    s += "\n\tat "
    + trace[j].getClassName() + trace[j].getMethodName()
    + "(" + trace[j].getFileName()
    + ": " + trace[j].getLineNumber() + ")";
    System.err.println(s);
    }Orcale server is distently placed. I get this exception when I send 10,000+ records to update.
    Can anyone help me.
    Thanks

    [Just a note: the stack does not match the code posted here. In the stack, executeUpdate() is called from BookDBUpdateThread.run() whereas your code shows that it's called from BookDBUpdateThread.update().  It helps to post the correct stack/code.)
    The problem might just be that you have an unreliable connection. The fact that you have a long running operation is just exposing connection drops that may otherwise go unnoticed.
    I suggest that you test this over a more reliable connection. If that is not possible, split the update into multiple shorter running updates. Of course, this would only work if the updates do not require a single transaction. If a single transaction is required, you can use your own XATransaction (the details on XATransactions are beyond the scope of this forum.)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Servlet Forward + Connection reset by peer

    I have a strange error when making a forward from a servlet to a JSP page that exists !
    i have the following message :
    Connection reset by peer: socket write error
    If i use Mozilla to access the same page, it works fine !!!
    Strange !
    Can you help me please ?

    I use OC4J 9.0.4 and had the same error in IE6 but everything works fine in IE5 ! The same application works fine in JBOSS with both versions of IE (5 and 6).

  • ServletException - Connection reset by peer

    Hi all,
    I have a Servlet (ModificaCorpoOrdineService.java) with two method:
    1) maskEditOrderCorp(req,resp)
    2) EditOrderCorp(req,resp)
    1) The first method is called when I have to present
    the page addModCorpoOrdine.jsp and contain
    the redirect to that jsp page:
    RequestDispatcher rd = getServletContext().getRequestDispatcher("/Jsp/addModCorpoOrdine.jsp");
    rd.forward(req, resp);
    2) The second is called when I press "modify" from the JSP page when finish of edit the Order Corp. This method check data and if success save into DB the Order.
    When some check fails, I call the method maskEditOrderCorp() to re-present the page displaying the error.
    In some case this cause the error:
    java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at it.webconsulting.util.servlet.GenericService.doGet(GenericService.java:111)
    at it.webconsulting.util.servlet.GenericService.doPost(GenericService.java:136)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
    at it.webconsulting.util.servlet.ServletDispatcher.doGet(ServletDispatcher.java:140)
    at it.karnak.web.servlet.KarnakServletDispatcher.doGet(KarnakServletDispatcher.java:58)
    at it.webconsulting.util.servlet.ServletDispatcher.doPost(ServletDispatcher.java:159)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.lite.web.CheckSessionFilter.doFilter(CheckSessionFilter.java:212)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: javax.servlet.ServletException: Connection reset by peer: socket write error at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:595)
    at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:537)
    at jsp.addModCorpoOrdine._jspService(_addModCorpoOrdine.java:2230)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:347)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
    at it.karnak.web.servlet.ModificaCorpoOrdineService.maskEditOrderCorp(ModificaCorpoOrdineService.java:260)
    at it.karnak.web.servlet.ModificaCorpoOrdineService.clienteNonCompleto(ModificaCorpoOrdineService.java:1347)
    at it.karnak.web.servlet.ModificaCorpoOrdineService.checkInviaAKarnak(ModificaCorpoOrdineService.java:2403)
    at it.karnak.web.servlet.ModificaCorpoOrdineService.editOrderCorp(ModificaCorpoOrdineService.java:535)
    ... 24 more
    Can someone help me?
    Tanks for all your help.
    D.

    ok.. I have db classes where all my sql statements methods are being displayed.. In each db class, there will be a getInstance() method to create the connection. Below is one of my db class.. How to I modified the things you had mentioned in my codes..
    package aedgeSoft.access;
    import aedgeSoft.business.*;
    import java.sql.*;
    import java.util.*;
    import java.util.Date;
    import java.io.*;
    public class DBMemberType
         private Connection con;
         private static DBMemberType instance = null;
         public static DBMemberType getInstance()
              try
                   if(instance==null)
                        instance = new DBMemberType();
              catch(SQLException e)
                   System.out.println("Problems with loading database in DBMemberType");
              catch(ClassNotFoundException e)
                   System.out.println("Problems with loading db driver in DBMemberType");
              finally
                   return instance;
         private DBMemberType() throws SQLException, ClassNotFoundException
              try{
              Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
              con = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433;user=username;password=password;DatabaseName=db");
              catch(InstantiationException e)
                   e.printStackTrace();
              catch(IllegalAccessException e)
                   e.printStackTrace();
         //add memberType
         public boolean addMemberType(MemberType mt)
    ..........

  • ADF FACES: ServletException and socket write error

    Using EA17.
    I have (an unfortunately) very complex page that uses a lot of partialTriggers to control components that render based on the state of other components. There are probably a dozen or so components that come and go. There are also a lot of panelGroup components to hold all the optional components and many of the controlling components are autoSubmit radio buttons. There is virtually no code (logic) in my backing bean. All the control work is being done in the .jspx page.
    The exception below occurs after changing a couple of values that make components appear/disappear.
    For starters, what would cause a socket write error from the servlet?
    I know that this is a fairly vague request, but trying to produce a simple test case to reproduce this will be pretty difficult. So, I'm wondering if anyone has seen anything like this? Or has any suggestions on what to poke at??
    Thanks.
    P.S. And worst of all - it's not consistent. I can go through the same series of value/page updates and it will work one time and not the next. :-(
    P.P.S. This error does not occur using Firefox as the browser. This does happen on IE 6. Unfortunately, that's the browser I have to use for internal applications. Maybe this additional information (that it appears to be browser related) will help track down the problem.
    05/07/30 15:47:43 origRenderView failed!
    05/07/30 15:47:43 javax.faces.FacesException: javax.servlet.ServletException: Connection reset by peer: socket write error
    05/07/30 15:47:43      at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:327)
    05/07/30 15:47:43      at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
    05/07/30 15:47:43      at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:146)
    05/07/30 15:47:43      at com.fhm.mwb.ui.view.FHMViewHandler.renderView(FHMViewHandler.java:159)
    05/07/30 15:47:43      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    05/07/30 15:47:43      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    05/07/30 15:47:43      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    05/07/30 15:47:43      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    05/07/30 15:47:43      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:61)
    05/07/30 15:47:43      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    05/07/30 15:47:43      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    05/07/30 15:47:43      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:310)
    05/07/30 15:47:43      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:183)
    05/07/30 15:47:43      at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:670)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:378)
    05/07/30 15:47:43      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:869)
    05/07/30 15:47:43      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:288)
    05/07/30 15:47:43      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:120)
    05/07/30 15:47:43      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:299)
    05/07/30 15:47:43      at java.lang.Thread.run(Thread.java:534)
    05/07/30 15:47:43 Caused by: javax.servlet.ServletException: Connection reset by peer: socket write error
    05/07/30 15:47:43      at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:753)
    05/07/30 15:47:43      at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:700)
    05/07/30 15:47:43      at qaFollowup2e_jspx._jspService(qaFollowup.jspx:232)
    05/07/30 15:47:43      at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)
    05/07/30 15:47:43      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:343)
    05/07/30 15:47:43      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:543)
    05/07/30 15:47:43      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:441)
    05/07/30 15:47:43      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    05/07/30 15:47:43      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:61)
    05/07/30 15:47:43      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:672)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:378)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:300)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:36)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:207)
    05/07/30 15:47:43      at oracle.oc4j.security.OC4JAccessController.doPrivilegedWithException(OC4JAccessController.java:186)
    05/07/30 15:47:43      at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:85)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:211)
    05/07/30 15:47:43      at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    05/07/30 15:47:43      ... 20 more

    Thanks for the information on this.
    What I can't understand is why the first request hasn't finished. I specifically tried waiting several seconds between clicking on various components. From all visual cues (from IE) the previous request has completed and the screen has redrawn. So, the requests shouldn't be overlapping. Is there possibly something happening with the ADF javascript that could be making this happen?
    When the error occurs, the page fails to update properly (i.e., the components that should now be visible due to a change in a radio button selection are not rendered). This leaves the application in an inconsistent state and the page can be filled out improperly by the end user.
    I know that's a long winded way of saying "it doesn't seem innocuous, since the application state gets messed up because of the error."
    Let me know if there's anything I can do to work around this.
    Thanks Adam.

Maybe you are looking for