IO Error: Socket read timed out / IOP_iopinstance1_datasource" closed
Hi ,
Can somebody suggest what could be the probable cause of following errors showing up in IOP log file?
####<Aug 16, 2011 10:49:11 PM PDT> <Info> <Common> <sc-csttest> <IOPServer_iopinstance1> <weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@357ac2f7> <<anonymous>> <> <0000J7MI9kZFk3vLsYw0yX1EIpFA00002K> <1313560151943> <BEA-000628> <Created "1" resources for pool "IOP_iopinstance1_datasource", out of which "1" are available and "0" are unavailable.>
####<Aug 16, 2011 10:49:12 PM PDT> <Info> <JDBC> <sc-csttest> <IOPServer_iopinstance1> <weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@357ac2f7> <<anonymous>> <> <0000J7MI9kZFk3vLsYw0yX1EIpFA00002K> <1313560152146> <BEA-001128> <Connection for pool "IOP_iopinstance1_datasource" closed.>
java.sql.SQLRecoverableException: IO Error: Socket read timed out
Thanks
Lokesh
This particular error means your database is down and socket is timedout. Or the query takes so long that the reader timedout -- unlikely.
Also, the general weblogic socket write errors, which you might see sometimes means that the client got disconnected before the server wrote results back. This is harmless
Similar Messages
-
WebLogic 11g data source connection pooling failed with IO error:socket read timed out.
Hi all,
We encountered IO Error: Socket read timed out( <Received exception while creating connection for pool "DS_1": IO Error: Socket read timed out> ) during the creation of data sources in WebLogic 11g. Manual data source testing seems to indicate intermittent connection and the server seems to take a long time to start up with multiple IO errors. We increased the timeout at the database side but it does not seems to help. The database is 11g (11.2.0.3). The database services and listener are up which does not indicate that the database instance is down.This particular error means your database is down and socket is timedout. Or the query takes so long that the reader timedout -- unlikely.
Also, the general weblogic socket write errors, which you might see sometimes means that the client got disconnected before the server wrote results back. This is harmless -
JDBC pooling Oracle driver Socket read timed out
I run Java EE application on Glassfish server v3 together with Oracle 12 DB on the same machine under Windows Server 2012 64bit. I use latest ojdbc7 driver.
Connection pool config:
<jdbc-connection-pool validation-table-name="DUAL" steady-pool-size="20" statement-cache-size="100" associate-with-thread="true" statement-timeout-in-seconds="30" idle-timeout-in-seconds="60" max-wait-time-in-millis="2000" validate-atmost-once-period-in-seconds="20" datasource-classname="oracle.jdbc.pool.OracleDataSource" pool-resize-quantity="5" max-pool-size="60" res-type="javax.sql.DataSource" name="dbPool" is-connection-validation-required="true">
<property name="driverClass" value="oracle.jdbc.OracleDriver"></property>
<property name="user" value="xxx"></property>
<property name="url" value="jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=BROKEN)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl)))"></property>
<property name="password" value="xxx"></property>
<property name="portNumber" value="1521"></property>
<property name="databaseName" value="orcl"></property>
<property name="serverName" value="127.0.0.1"></property>
<property name="oracle.jdbc.ReadTimeout" value="300000"></property>
<property name="oracle.net.CONNECT_TIMEOUT" value="10000"></property>
</jdbc-connection-pool>
After 2 or 3 hours, when there is more than 1 user (3-5) using my application, it stops responding and I get this in glassfish logs
javax.enterprise.resource.resourceadapter.com.sun.enterprise.resource.allocator|_ThreadID=152;_ThreadName=Thread-2;|RAR5038:Unexpected exception while creating resource for pool dbPool. Exception : javax.resource.spi.ResourceAllocationException: Connection could not be allocated because: IO Error: Socket read timed out
Local Exception Stack:
Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: IO Error: Socket read timed out
From the database side it looks like this
Fatal NI connect error 12560, connecting to:
(LOCAL=NO)
VERSION INFORMATION:
TNS for 64-bit Windows: Version 12.1.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for 64-bit Windows: Version 12.1.0.1.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 12.1.0.1.0 - Production
Time: 13-JUN-2014 03:14:49
Tracing not turned on.
Tns error struct:
ns main err code: 12560
TNS-12560: TNS:protocol adapter error
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
opiodr aborting process unknown ospid (3404) as a result of ORA-609
When I just reset db listener everything works ok for next 1-2 hours (depends on application load). So temporary solution is to run bat script from windows scheduler to reset the listener every 1h.
I tried everything I could find - applied these parameters:
- Sqlnet.ora:
SQLNET.INBOUND_CONNECT_TIMEOUT=180
SQLNET.EXPIRE_TIME=5
- Listener.ora:
INBOUND_CONNECT_TIMEOUT_LISTENER_IPC=120
But still without successIs the problem here just that you need a connection pool that closes idle connections? Some pools will close idle connections after a time out period. And the pool lets you set that time out period. If the pool you are using doesn't provide that then use a different pool.
-
Java.sql.SQLException: Io exception: Socket read timed out
Hello,
I've a interface RFC - JDBC - RFC.
When this interface is executing, i have the follow error in RuntimeWorkbench::
'Unable to execute statement for table or stored procedure. 'TABLAERR' (Structure 'STATEMENT') due to java.sql.SQLException: Io exception: Socket read timed out'
In SXMB_MONI do not see any message, only
' <SAP:Category>XIAdapterFramework</SAP:Category>
<SAP:Code area="MESSAGE">GENERAL</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack />
<SAP:Retry>M</SAP:Retry> '
this error don't occurs always, when and why i don't know..
I searched for information about this error and nothing found
why it is happens?
thank very muchHI,
This is not a problem in ur mapping or configuration.
This is a problem with JDBC connection. This is a common error, that generally comes when the DB server is receiving and processing numerous records. Connection time out or socket read time out.
First try this:
In ur JDBC adapter go to Advanced Tab Page and check Transaction Isolation Level as Serializable.
If still problem persists then take help of basis guys and increase the timeout for the connection, same thing can be asked from DB team. -
Java.sql.SQLException: Socket read timed out
// DbTest.java
<code>
import java.sql.*;
import java.io.*;
public class DbTest
public static void main(String args[])
System.out.println("DbTest main(-)");
Connection con = null;
try
Class.forName("oracle.jdbc.driver.OracleDriver");
System.out.println("class loaded");
con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcldb","scott","tiger");
System.out.println("con obj created");
System.out.println("con obj retrived");
if (con!=null)
System.out.println("Connection created successfully");
else
System.out.println("Connection refused");
catch (SQLException e)
e.printStackTrace();
catch(Exception e)
e.printStackTrace();
</code>
e:\JavaPrgms\JDBC>javac DbTest.java
e:\JavaPrgms\JDBC>java DbTest
DbTest main(-)
class loaded
java.sql.SQLException: Socket read timed out
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:412)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
531)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
n.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at DbTest.main(DbTest.java:17)
Caused by: oracle.net.ns.NetException: Socket read timed out
at oracle.net.ns.Packet.receive(Packet.java:320)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:286)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1042)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301)
... 7 more
i am using win 7 64bit os , Oracle 11.2, Jdk 1.7 how can i resolve this problem?
Edited by: 910776 on Oct 4, 2012 10:49 AMYour other thread got locked because all you did was post a bunch of code without explaining what your question or issue was or what the code is supposed to be doing.
java.sql.SQLException: Socket read timed out
Simply reposting in this forum isn't enough. Edit your post and and add \ tags on the line before and the line after the code to preserve the formatting.
Also explain what you are trying to do, the problem you are having and answer the questions I ask you in your other thread.
{quote}
What is it you are trying to do?
Why are you trying to connect to two different databases?
Do either of those databases actually exist?
Do they exist on the local machine that Java is running on?
Can you connect to either of them without using Java?
{quote} -
Socket read timing out immediately
When does the timer for SO_TIMEOUT start? Is it when you call read on the socket? Or is it after the last packet of data is received from the remote node?
In my app, I have a socket with SO_TIMEOUT set to 2 minutes. By design, the connection is idle for a period of time longer than that, but I don't even try to read from the socket during this period. Then, I write some data to the socket and try to read a response. I would expect the 2 minute interval to start when I make the blocking call to read, but instead, I get a SocketTimeoutException right away. What's going on? Was the time that the connection was purposely idle count toward the timeout interval, even though I wasn't blocked trying to read? How can I avoid this?I'm now officially confused.
Digging around a bit: from the Socket FAQ:
SO_{SND,RCV}TIMEO are probably the most widely
unimplemented, or strangely/incompatibly implemented, of all
common sockopts in existence... Basically, in short, NEVER
try to use them for anything... ;-)
If you want I/O timeouts, your only real option in most cases is
to roll your own, using either blocking/alarm()-based timeouts, or
non-blocking/select()-based timeouts... The latter probably being
the best choice, and least likely to cause pain (especially if you
ever need to write multi-threaded code)...
From the JDK source (PlainSocketImpl.c):
* SO_TIMEOUT is a no-op on Solaris/Linux
if (cmd == java_net_SocketOptions_SO_TIMEOUT) {
return;
}There ya go :-)
The JDK source for Windows (PlainSocketImpl.c) sets SO_RCVTIMEO if the winsock library in question supports it. (Undocumented feature: timeouts of <= 5 seconds are interpreted as 0).
I'm starting to think maybe setSoTimeout() isn't the best thing to do... Anyone here with experience with it? -
We have configured a business service with JCA DB adapter and uses a select statement to fetch a single record from a database. The select is simple query uses single table with a “where” clause having 5 conditions, like where column1 = ‘value’ and column2 = ‘value’ and column3 = ‘value’ and column4 = ‘value’ and column5 = ‘value’. There are 350 rows in the table and column 1 to 4 has the indexes. When we have done the load testing (5000 messages at the same time), we are getting the below error.
Error : Error Code : BEA-380000 Error Reason : Read timed out
Any info on this issue and its resolution will be helpful.I doubt if this is an web service connectivity issue.
I have tested this by using
**telnet <hostname> <webservice port no>**
Is there any other issue that i have ignored ? -
Check in failed. Read timed out
Hi,
When I finished checking in an activity,I got an failed message:
Failed to execute operations.Communication error[[cause:Read timed out]] at 09:34:32.550
How to deal with it?
Regards,
AbeHi,
You are right. Still, if you checkin or activate something, then a build takes place. In your case this is not possible due to some kind of timeout, I wanted to see some details why.
Perhaps it also makes sense to switch on some client side tracing as well. For this. please see the note:
#751640 - How To Configure Logging For NWDI Developer Studio
Best Regards,
Ervin
Edited by: Ervin Szolke on Sep 13, 2010 12:31 PM -
Read timed out error while opening monitor tab in DataServices
Hello all,
Am getting a "Read timed out" error when I try to open the monitor tab in DataServices admin console for a few jobs only. For several jobs, monitor tab opens just fine. But for a few it doesnt and throws the error mentioned above. Mostly this behaviour is noticed with a job having several workflows and dataflows.
The version of DS used is 12.1.0.0. Tried to gather some info on this issue, but couldnt find any relevant thread. Would really appreciate if anyone could help me with it.
Regards,
Premcheck the following post
http://www.forumtopics.com/busobj/viewtopic.php?t=148213 -
Error: Read timed out&MESSAGE_NOT_FOUND.
Hi,
There's a synchronous scenario (File-File). A connection failure occured during a query from buisness-process (BPM). Since then an error (error message) appears constantly in Runtime Workbench-Component Monitoring-Communication Channels.
Success
RRB: entering RequestResponseBean
Success
RRB: passing through ...
Success
RRB: suspending the transaction
Success
RRB: leaving RequestResponseBean
Success
Application attempting to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
Success
Trying to put the message into the call queue.
Success
Message successfully put into the queue.
Success
The message was successfully retrieved from the call queue.
Success
The message status set to DLNG.
Error
Received XI System Error. ErrorCode: GENERAL ErrorText: com.sap.aii.af.ra.ms.api.DeliveryException: Read timed out ErrorStack:
Error
Returning synchronous error notification to calling application: com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException: Read timed out.
Error
Transmitting the message using connection http://*****:8010/sap/xi/engine?type=entry failed, due to: com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException: Read timed out.
Error
The message status set to FAIL.
Error
Returning to application. Exception: com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException: Read timed out
Error
Attempt to process file failed with com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException: Read timed out
Error
Attempt to process file failed with com.sap.aii.af.service.util.transaction.api.TxManagerException: Unable to roll back transaction: com.sap.engine.services.ts.exceptions.BaseIllegalStateException
File removing and the channel rebooting the channel donu2019t help.
After rebooting the channel:
Error
Received XI System Error. ErrorCode: MESSAGE_NOT_FOUND ErrorText: ErrorStack: XML message not found
Error
Returning synchronous error notification to calling application: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:MESSAGE_NOT_FOUND:.
Error
Transmitting the message using connection http://*****:8010/sap/xi/engine?type=entry failed, due to: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:MESSAGE_NOT_FOUND:.
Error
The message status set to FAIL.
Error
Returning to application. Exception: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:MESSAGE_NOT_FOUND:
Error
Attempt to process file failed with com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:MESSAGE_NOT_FOUND:
Error
Attempt to process file failed with com.sap.aii.af.service.util.transaction.api.TxManagerException: Unable to roll back transaction: com.sap.engine.services.ts.exceptions.BaseIllegalStateException
Any ideas?hi,
try this,
go to Message Monitoring in RWB, delete all the messages with status system error and onhold.
it shd solve your problem
Regards,
Sukarna.chirumamilla. -
Hi PI gurus,
Need some suggestions on one issue below -
Scenario - proxy (SAP) to SOAP (Web based system)
In the RWB Communication Channel Monitirong we are receiving the below error
" Error SOAP: call failed: java.io.IOException: Read timed out; HTTP 200 OK"
the request from XI system is going to target system and printing the lables (as per the functionality) with no issues but the comminication channel is giving the above error and this is causing the repeated sending the same request to target sytem and the data is printing repeateadly. This issues is occuring in Quality environment.
Strangley the same Interface with the same connectivity details is working fine in Development environment. But not working in Quality environment. Checked the firewalls settings on both in XI and Target system side and confirmed that everything is fine.
Below are the Logs both from Quality and developement are as follows
Quality ( Failure Case)
17.03.2011 07:19:59 Success SOAP: request message entering the adapter with user J2EE_GUEST
17.03.2011 07:25:03 Error SOAP: call failed: java.io.IOException: Read timed out; HTTP 200 OK
Development (Success ful)
17.03.2011 07:27:55 Success SOAP: request message entering the adapter with user J2EE_GUEST
17.03.2011 07:27:58 Success SOAP: completed the processing
When we checked with basis team on user id J2EE_GUEST, they confirmed that they are same in Development and Quality.
I repeat,, that the same target url and everthing is same in XI Configuration
Thanks in Advance. Points would be rewared for the best solution.
Thanks,
JitenderHI Jitender,
If your scenariois working in DEV and if it is not working in QAS.Could you please check if both the systems are at same patch levels..
Please refer below notes :1551161,817894,952402.
Cheers!!!
Naveen. -
when i send a test message throw the RWB for Http receiver adapter it is giving the error "Error in processing caused by: com.sap.aii.adapter.http.api.HttpAdapterException: ERROR_SOCKET_TIMEOUT, Read timed out"
Hi, Michal
I have read your Weblog. It makes sense to me. Thanks a lot for your help! However, I still have some questions and listed them as following. Could you please help to answer them?
<b>Q1:</b> I am new to SAP-XI. So I have no idea about TCODE-SXMB_ADM. Could you introduce more details about it?
<b>Q2:</b> The XI system I am using is running on SAP-ICC's machine. The tools I can use are:
<b>1.</b>Builder for Integration Repository
<b>2.</b>Builder for Integration Configuration
<b>3.</b>System Landscape Directory
<b>4.</b>Runtime Workbench
<b>5.</b>Administration System (for Repository, Directory, Runtime)
Please note that I do not have a complete control on this SAP-XI. Do you think whether or not I can set the timeout parameter by following the instructions provided in your Weblog?
For more details about my SAP-XI, please access the following Web page:
http://iccxi.sap.com:58000/rep/support/admin/index.html
<b>Q3:</b> The following messages are extracted from the SAP-XI. Wish they are hepful to solving my problem.
2006-06-19 05:12:16 Success The message was successfully received by the messaging system. Profile: XI URL: http://iccxi.sap.com:58000/MessagingSystem/receive/AFW/XI
2006-06-19 05:12:16 Success Using connection AFW. Trying to put the message into the request queue.
2006-06-19 05:12:16 Success Message successfully put into the queue.
2006-06-19 05:12:16 Success The message was successfully retrieved from the request queue.
2006-06-19 05:12:16 Success The message status set to DLNG.
2006-06-19 05:12:16 Success Delivering to channel: ValidationRequestHandlerServiceChannel
2006-06-19 05:12:16 Success SOAP: request message entering the adapter
2006-06-19 05:12:37 Success SOAP: call failed
2006-06-19 05:12:37 Error SOAP: error occured: java.net.ConnectException: Connection timed out: connect
2006-06-19 05:12:37 Error Exception caught by adapter framework: Connection timed out: connect
Thanks
Menghua Li -
SLD server exception: IO error: Read timed out
Hi,
I have deployed the components for NWDI and after that when i am creating the Domain,I am doing update CMS data for creating a Track. I am getting the following error:
SLD server exception: IO error: Read timed out
Can any one help on this.
Thanks
Ravi.SHi,
My SLD is a PI 7.0 system and my NWDI is configured on a standalone Java system.
I have done the SLDDataSupplier check, and it connects fine to the SLD.
Also on my http://<hostname>:<port>/devinf/main in the NWDI system, the SLD link points to the right SLD and im able to connect.
Still at the CMS update stage it gives the error -
SLD (URL http://<hostname>:<port>/) server exception: IO error: Read timed out -
Read timed out error in IOP Ver 11.1.2.0
Hi,
This is an error we encountered during one of IOP testing for a project. Wondering if someone can help us understand the real issue. Any help is appreciated.
User is using the Analysis Workbench, He has created a scenario, and in one of the cubes, focused on a specific Fiscal quarter using the Add-ins options in Excel.
Then, he selected this quarter and chose 'Show Quarter' option by right clicking on the selected qtr. System then threw out the error:
*Read Timed out. We encountered a problem performing your request. Please notify Oracle, referring to error tag [mtreoi]*
I searched the logs on the server and this is what I found
bash-3.2$ grep 'Read time' *
IOP-8.log:[2012-06-21T17:24:28.718+00:00] [IOPServer_Oracle_IOP_LTV_UAT] [ERROR] [] [oracle.iop.isclient.analyzer.WorkbookServlet] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JWG4aeE1F00073z,0] [APP: IOP_Oracle_IOP_LTV_UAT#11.1.2.0] Error tag [mtreoi]: Cannot process response action /scenario/63:0/sheet/LTV Analysis/address/E4/show/LTV Analysis/levelZoom/FiscalQtr-FiscalQtr-Quarter: com.interlacesystems.util.ISException: Read timed out
IOPServer_Oracle_IOP_LTV_UAT-diagnostic-8.log:[2012-06-21T17:24:28.718+00:00] [IOPServer_Oracle_IOP_LTV_UAT] [ERROR] [] [oracle.iop.isclient.analyzer.WorkbookServlet] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JXB5vT4hE1F3z,0] [APP: IOP_Oracle_IOP_LTV_UAT#11.1.2.0] Error tag [mtreoi]: Cannot process response action /scenario/63:0/sheet/LTV Analysis/address/E4/show/LTV Analysis/levelZoom/FiscalQtr-FiscalQtr-Quarter: com.interlacesystems.util.ISException: Read timed outAny takers for this? Hope I have this in the right forum...
Any one listening (or reading...)???
Thanks
Suma -
Hai,
I write one webservice retrieve the data from maxdb.
If the data is more than 3000 records, when i try to execute the webservice, it shows read timed out error.
How to resolve this error.
please help me.
regards,Hi
If you are using a webservice client then you can programatically in SEI The Service Endpoint Interface .
Please find the example link in sap help where you set the timeout option
client._setProperty("socketTimeout", "30000");
http://help.sap.com/saphelp_nw04/helpdata/en/04/d2c60e78814516afe7811829f02725/content.htm
hope this helps .please do not forget to reward points
regards
rajesh kr
Maybe you are looking for
-
How do I clean up two user names and share most current music on laptop with the older computer and out of date ipod music. I have to do this carefully, so I don't lose the most current music library on the laptop?
-
Any suggestions on how to get playlists back. iCloud restore did not help
-
I do a final project about Georaster. My teacher say, I must use ASP.NET to coding with Georaster (including raw data and metadata-XML). It means that I must display a raster image that saved in Georater object on Web by ASP.NET. Some ideas say that
-
ITS Mobile - how to prefill and skip selection screen
Hi there, I am struggling with requirement for ITS mobile service: I need to fill the input fields on selection screen with values from url and automaticaly jump to the second screen. I know this is possible with ITS as described [here|http://wiki.sd
-
Evaluation Path issue for relation 450
Hello, The relationship 450 is not being extracted through iDoc data retrieval process. Is there a separate process to activate downloading this relationship? Or is it an iDoc limitation? What is the workaround to fix this problem as one of our clien