Regarding connection reset exception in socket
hi,
I am using java socket on one side and c socket on other side iam trying to send data and recieve from it but i got error socketexception connection reset by the peer,
Environment which i am using to open a socket is websphere studio test environment
opereating system on one side is linux and other side is windows
could somebody please help
it's urgent
You will get this under the following circumstances:
(1) The process at the other end has crashed.
(2) the other end has closed after messing around with SO_LINGER.
(3) you have sent data to the other end after it has closed its socket.
Similar Messages
-
Connection Reset exception received in Windows only
Hi,
I have two instances of my java app, one on Windows, one on Linux, both connected to the same cpp app running on Linux, and the machine running the cpp app is very heavily loaded. After some time, only the windows java app gets a Socket Exception (Connection Reset), not the linux.
In fact, after connecting to the cpp app, the java app starts a number of transactions with the cpp app, requesting data from the cpp app. The trasanctions are timing out on Windows, but not on Linux.
Does anyone have any idea why this might be happening?
Thanks for any help,
Regards,
ShefaliHello,
I have the same problem. My java TCP client detect disconnection (Connection Reset exception is generated) after about 60 seconds. With Suse 10 it make more then 15 minutes!!!!
This is not normal of an application that it takes that long to detect a disconnection! Is there a way of changing/configuring the timeout of the TCP/IP layer of the OS?
Thanks in advance for your help.
Alain. -
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
GautamPretty 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: 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. -
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. -
hi
I am currently doing distributed computing as my project.
My problem statement is "doing a complex computation(e.g matrix multiplication ,sorting a big array) by distributing the job across different or heterogenous(want to connect linux and windows )machines in the network.
we are using RMI.we took matrix multiplication and we disributed the job equally depending upon the no of machines avalable.
i.e if we have matrix of order 4 and four clients then we give each row of the matrix to each client and if we have 2 clients we give 2 rows for each client and do the calculation.
we are able to run it on windows platform sucessfully and able to gather the results back correctly.
But when we tried to run it on cross platform(one linux machine and one windows machine or between linux machines)we get CONNECTION RESET EXCEPTION
how to overcome or handle this exception,we are not able to run our project in linux...
suggest me your ideas on this
thanks in advance
vasuThis isn't really JavaMail or even Java related, but you can do a google search for "lotus notes pop3 setup" and the first few pages that come up seem to be pretty helpful (I've only used notes once a couple of years ago).
travis (at) overwrittenstack.com -
I am getting the below exception in my weblogic logs
[FMWGEN][SQLServer JDBC Driver]socket write error: Connection reset by peer.
java.sql.SQLNonTransientConnectionException: [FMWGEN][SQLServer JDBC Driver]socket write error: Connection reset by peer.
at weblogic.jdbc.sqlserverbase.dda4.b(Unknown Source)
at weblogic.jdbc.sqlserverbase.dda4.a(Unknown Source)
at weblogic.jdbc.sqlserverbase.dda3.b(Unknown Source)
at weblogic.jdbc.sqlserverbase.dda3.a(Unknown Source)
at weblogic.jdbc.sqlserverbase.dda3.a(Unknown Source)
at weblogic.jdbc.sqlserver.tds.ddb.a(Unknown Source)
at weblogic.jdbc.sqlserver.ddj.a(Unknown Source)
at weblogic.jdbc.sqlserverbase.ddde.a(Unknown Source)
at weblogic.jdbc.sqlserverbase.ddde.a(Unknown Source)
at weblogic.jdbc.sqlserverbase.ddde.r(Unknown Source)
at weblogic.jdbc.sqlserverbase.ddde.execute(Unknown Source)
at gov.fssa.bcd.utils.JDBCConnection.runQuery(JDBCConnection.java:366)
at gov.fssa.bcd.utils.JDBCConnection.runQuery(JDBCConnection.java:492)
at gov.fssa.bcd.utils.JDBCConnection.runQuery(JDBCConnection.java:428)
This exception happens randomly on production.
I am not sure is it a problem with Weblogic 10.3.5 or my database server or the java app or network related.
Can anyone please help me to conclude which side of the appplication is at fault.
I am using Java 1.6.0_27,Weblogic 10.3.5, sql server 2005
Weblogic is on a Windows server 2008 sp2 and database is on windows server 2003.
Is it because of Java coding or some network related?In what scenarios will a java program throw such errors.
Let me know if any more info is required .
Thanks,"Failing Client" means the application you are using to connect fails unexpectedly. It is a failure of the application you are using to run the process.
you can check the Managed Server logs for more detail of what is happening.
Edited by: HDeiby on 4/10/2012 04:25 PM -
Connection reset exception while accessing the server page using HttpClient
hi all,
In my servlet class I am using HttpClient to connect to the server.
while connecting i am getting the below exception...
please guide me guys..
Nov 21, 2007 4:29:23 PM org.apache.commons.httpclient.HttpMethodBase processRequest
INFO: Recoverable exception caught when processing request
Nov 21, 2007 4:29:23 PM org.apache.commons.httpclient.HttpMethodBase processRequest
WARNING: Recoverable exception caught but MethodRetryHandler.retryMethod() returned false, rethrowing exception
org.apache.commons.httpclient.HttpRecoverableException: java.net.SocketException: Connection reset
at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1962)
at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2653)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1087)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:643)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497)
at LoginToKotak.accountTxn(LoginToKotak.java:916)
at LoginToKotak.kotakAmountTxn(LoginToKotak.java:147)
at ResponseServlet_kotakMB.getAccountTxn(ResponseServlet_kotakMB.java:158)
at ResponseServlet_kotakMB.processRequest(ResponseServlet_kotakMB.java:128)
at ResponseServlet_kotakMB.doPost(ResponseServlet_kotakMB.java:197)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:595)Mallikarjuna,
PL/SQL: ORA-00942: table or view does not exist
ORA-06550: line 1, column 7:As the error message specifies.. table XXCUR_TRADE_CUSTOMER_DETAILS doesnt exists.
Create a synonyms for this table in apps schema with all the grants.
Regards,
Gyan -
Broken Pipe/Connection Reset By Peer IO Exceptions
Can someone explain what causes a connection reset by peer exception vs.
a Broken Pipe IO exception? I realize they are generally caused by
someone hitting stop, closing their browser, hitting a different link,
etc.. but I was trying to understand what might cause a connection
reset by peer exception vs. a broken pipe exception. I've added code to
my servlet to suppress the "Connection Reset By Peer" socket exceptions
but I'm wondering if I should do the same with Broken Pipe. Also, are
there are other types of similar exceptions that can occur when users
get impatient.. Thanks
Kirk
I do not have an idea about your application server but i do know how i solved it in weblogic. Just see whether this is helpful to you.
Points to be sure of........
1) Make sure that when ever you request a connection from a pool, after you are done with it return it. If you are not returning it and trying to use that reference again, this problem will occur.
2) Look at the capabilities of your app server. Set the connection pool such that
a) All the connections are checked at regular interval with some default select statement from any table in the database.
b) Connections are check when the connection is checked out and returned to the pool.
I the connection object is not ready , close it and create a new one. The app server which manages the pool should implement these feature so that when you get the connection - its the tested and working object.
If your app server does not support - then think of ways you testing it before you using it(Anyway this is not the good solution). -
Io exception: Connection reset - after some time interval
Hi,
We are facing a problem in connection while implementing connection pooling using OracleDataSource .
Application is running with out any issue if it is called continuously.
If we call the application after some time interval, connection is being reset. We are able to get the connection instance but connection reset exception is thrown while calling callableStatement.execute().
If application called after application restart it is working fine.This issue is happening only for the first few calls made after some time interval.(after 1 hr)
After that call is proceeding without any issue.
Environment Details
Application is accessing 4 oracle databases and the versions are viz., 9.2.0.8,10.2.0.3,10.2.0.4 and 9.2.0.1.
Driver : ojdbc14.jar
App Server : tomcat
jdk version: 1.5
OracleDataSource is being used for connection pooling.
propCache.setProperty("ConnectionWaitTimeout",10); // caching parms
ods.setConnectionCachingEnabled(true);
ods.setLoginTimeout(intLoginTimeout);
propCache.setProperty("MinLimit","5");
propCache.setProperty("MaxLimit", "20");
propCache.setProperty("InitialLimit","5");
propCache.setProperty("ValidateConnection", "true");
propCache.setProperty("AbandonedConnectionTimeout", "10");
The exception details are as follows
java.sql.SQLException: Io exception: Connection reset
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:987)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1170)
at oracle.jdbc.driver.OracleStatement.doScrollExecuteCommon(OracleStatement.java:4043)
at oracle.jdbc.driver.OraclePreparedStatement.doScrollPstmtExecuteUpdate(OraclePreparedStatement.java:10826)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3337)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3445)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4394)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:834)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
at java.lang.Thread.run(Unknown Source)
Any suggestion to resolve this issue is greatly appreciated.
Thanks.Hi,
try to utilize OracleDataSource#setConnectionCacheProperties() with property InactivityTimeout equals to 1800 (30 minutes in seconds). -
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)
-
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. -
Connection Reset when compiling PL/SQL Package
Recently a strange issue appeared on my office PC. When I try To compile a PL/SQL package on specific Oracle instance I get an error message:
Error: Io exception: Connection reset by peer: socket write error
And the connection is reset. I even cannot reconnect to database schema. To open connection again I have to restart SQL Developer. In spite of this issue I can execute SELECT queries in SQL worksheet and view data in tables. Error message appears only when compiling packages in any schema on database instance in our local network and only on my PC. Other office PCs works fine without any errors. I am able to compile packages on remote database from my PC.
Same error message shows up in different SQL Developer versions and also in JDeveloper. SQL Developer restart, Windows restart, database instance restart doesn't help.
Used software:
SQL Developer versions: 1.2.1 and 1.1
JDeveloper version: 10.1.3.2
Oracle Database on local network: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit
Remote Oracle Database: Oracle Database 10g Release 10.2.0.3.0 - Production
OS: Windows XP Pro SP2
Thanks,
RaymondI am trying to convert the values in a selected
column into 1 and 0 so that I can display all 1s in
one column, all 0s in another. I am doing this in a
PL/SQL package. However ORACLE compiler does not
like the CASE construct.
Does anyone know how to group values in a column into
several new columns. If CASE WHEN construct is not
doable in PL/SQL, what alternatives are there?
Thanks.
CURSOR v_Cursor IS
SELECT A.D_CODE, A.M_CODE, TEST_START ,
, C.C_NAME,C.P_ID,
SUM(CASE WHEN MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 >
40 AND MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 <85 ANDB.B_CODE IN '11.1','222.2','272.4') THEN 1 ELSE 0
END) QUALIFIEDUse the Decode function. This has been around in oracle SQL for ages and works like a case construct.
You would do something like
select ...
sum( decode (MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 >
40 AND MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 <85 AND
B.B_CODE IN ('11.1','222.2','272.4') 1,0 ) -
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)
>
>
Maybe you are looking for
-
Error while executing a procedure in Package
ORA-04068: existing state of packages has been discarded ORA-04061: existing state of package "PLLODS.LK" has been invalidated ORA-04065: not executed, altered or dropped package "PLLODS.LK" ORA-06508: PL/SQL: could not find program unit being called
-
Splitter program for processing the IDOCS with status 64.
Hello folks, I have a requirement explained below. I am looking for a sample code which could help me to jump start with initial development. Requirement: Develop a splitter program which retrieves all the IDCOS with status 64, create and schedule ba
-
InvalidCastException with DI Company Object - SBO 2007 SP1 PL05
Hi, after updating to SBO 2007 SP1 PL05 i cannot start the AddOn, when it comes to the single Sign-On, i get the error message "InvalidCastException". The code is as follows: oCompany = new SAPbobsCOM.Company(); oCompany = (SAPbobsCOM.Company) SBO_Ap
-
Automatic right click when not intended
I'm facing this strange problem. The right-clicked context menu appears out of nowhere near the mouse, even when I'm expecting it to. This happens while I'm making a normal one finger tap, or simply moving the mouse on the touchpad, or even sometimes
-
Firewall constantly asks connection permission for iTunes
I installed the new iTunes today 7.6 running on 10.5.1 It now always asks me if 'i want to allow incoming network connections' like it does the first time you run it. (only started doing this since update of iTunes to 7.6) The same thing happens with