Connection gets timed out

Hi all
I'm processing record which come under batches. Each batch may have around 10000 records. So to deal with this we have written a Thread which calls a EJB to udpate the status of batch. The logic works fine for small sizes of batches but for large sizes it behavior is weird . Some time processes all records and sometime it throws exception.
Anyhelp on this
Thanks in advance
Exception data: com.ibm.websphere.csi.CSITransactionRolledbackException: Transaction rolled back; nested exception is:
javax.transaction.TransactionRolledbackException: Transaction is ended due to timeout
at com.ibm.ejs.csi.TransactionControlImpl.completeTxTimeout(TransactionControlImpl.java(Compiled Code))
at com.ibm.ejs.csi.TransactionControlImpl.preInvoke(TransactionControlImpl.java(Compiled Code))
at com.ibm.ejs.container.EJSContainer.preInvoke_internal(EJSContainer.java(Compiled Code))
at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java(Inlined Compiled Code))
at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java(Compiled Code))
at com.actek.j2ee.cignafinancial.sessionbean.EJSRemoteStatelessCIGNAFinancialAPISession_10719fa0.callAPI(Unknown Source)
at com.actek.j2ee.cignafinancial.sessionbean._CIGNAFinancialAPISession_Stub.callAPI(_CIGNAFinancialAPISession_Stub.java:266)
at com.actek.j2ee.cignafinancial.util.CIGNAFinancialUtil.getAPICallMessage(CIGNAFinancialUtil.java:2746)
at com.actek.j2ee.cignafinancial.entity.ManCapAdjPK.validate(ManCapAdjPK.java:394)
at com.actek.j2ee.common.entitybean.AbstractUniversumPK.update(AbstractUniversumPK.java(Compiled Code))
at com.actek.j2ee.common.sessionbean.PersistenceSessionBean.processEntityCollection(PersistenceSessionBean.java(Compiled Code))
at com.actek.j2ee.common.sessionbean.PersistenceSessionBean.processSaveTransaction(PersistenceSessionBean.java(Compiled Code))
at com.actek.j2ee.common.sessionbean.PersistenceSessionBean.performSaveTransaction(PersistenceSessionBean.java:116)
at com.actek.j2ee.common.sessionbean.EJSRemoteStatelessCIGNAFinancialPersistenceSession_c53797d9.performSaveTransaction(Unknown Source)
at com.actek.j2ee.common.sessionbean._PersistenceSession_Stub.performSaveTransaction(_PersistenceSession_Stub.java:269)
at com.actek.j2ee.cignafinancial.client.cfusion.ManAdjHdrCapApproveThread.validate(ManAdjHdrCapApproveThread.java(Compiled Code))
at com.actek.j2ee.cignafinancial.client.cfusion.ManAdjHdrCapApproveThread.run(ManAdjHdrCapApproveThread.java(Compiled Code))
at java.lang.Thread.run(Thread.java:567)
Caused by: javax.transaction.TransactionRolledbackException: Transaction is ended due to timeout
at com.ibm.ws.Transaction.JTA.TranManagerImpl.completeTxTimeout(TranManagerImpl.java(Compiled Code))
at com.ibm.ws.Transaction.JTA.TranManagerSet.completeTxTimeout(TranManagerSet.java(Inlined Compiled Code))

Is there any way thru which i can increase the connection time.yes, but it's different for each database
Im using DB2 on As400 and driver is jt400get with your DBA or read your database documentation (or Google probably best, but include DB2 version number in your search)
sorry, haven't used DB2 in quite awhile

Similar Messages

  • OraclePool connection gets timed out

    Hello.
    We are trying to use the OraclePool in the Jena adapter. We create it in the initialize method of a Spring bean
         java.util.Properties oraclePoolProperties = new java.util.Properties();
         oraclePoolProperties.setProperty("MinLimit", "5"); // the cache size is 5 at least
         oraclePoolProperties.setProperty("MaxLimit", "40");
         oraclePoolProperties.setProperty("InitialLimit", "5"); // create 5 connections at startup
         oraclePoolProperties.setProperty("InactivityTimeout", "1800"); // seconds
         oraclePoolProperties.setProperty("AbandonedConnectionTimeout", "900"); // seconds
         oraclePoolProperties.setProperty("MaxStatementsLimit", "10");
         oraclePoolProperties.setProperty("PropertyCheckInterval", "60"); // seconds
         //this.oraclePool = new OraclePool(oracleConexionUrl, null, null, prop, "OracleSemConnPool");
         String[] tokensConexionUrl = oracleConexionUrl.split("[:/@]");
         logger.debug(tokensConexionUrl[3] + " - " + tokensConexionUrl[4]);
         this.oraclePool = new OraclePool(oracleConexionUrl, tokensConexionUrl[3], tokensConexionUrl[4],
                                                                oraclePoolProperties, "OracleSemConnPool");
         logger.debug("Done creating OraclePool");     
    Oracle oracle = oraclePool.getOracle();
    // do stuff
    oracle.dispose();
    Inemdiately after the creation of the pool, a connection is created correctly.
    However, an hour later, with no use of any other connection, when a thread tries to get a Jena Oracle connection with the pool, it gets a SQLException: Connection timed out
    Are we missing some configuration?

    The exception is this:
    java.lang.RuntimeException: Oracle constructor:
         at oracle.spatial.rdf.client.jena.Oracle.<init>(Oracle.java:138)
         at oracle.spatial.rdf.client.jena.OraclePool.getOracle(OraclePool.java:230)
         at org.fundacionctic.ogd.data.service.OracleJenaService.createOracleConnection(OracleJenaService.java:144)
         at org.fundacionctic.ogd.data.service.OracleJenaService.getConexion(OracleJenaService.java:165)
         at org.fundacionctic.ogd.data.D2RDataSource.updateData(D2RDataSource.java:52)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276)
         at org.springframework.scheduling.support.MethodInvokingRunnable.run(MethodInvokingRunnable.java:76)
         at org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:66)
         at java.util.TimerThread.mainLoop(Timer.java:512)
         at java.util.TimerThread.run(Timer.java:462)
    Caused by: java.sql.SQLException: Error de E/S: Connection timed out
         at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:866)
         at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1145)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1267)
         at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1469)
         at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:389)
         at oracle.spatial.rdf.client.jena.Oracle.<init>(Oracle.java:125)
         ... 13 more
    Caused by: java.net.SocketException: Connection timed out
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(SocketInputStream.java:129)
         at oracle.net.ns.Packet.receive(Packet.java:282)
         at oracle.net.ns.DataPacket.receive(DataPacket.java:103)
         at oracle.net.ns.NetInputStream.getNextPacket(NetInputStream.java:230)
         at oracle.net.ns.NetInputStream.read(NetInputStream.java:175)
         at oracle.net.ns.NetInputStream.read(NetInputStream.java:100)
         at oracle.net.ns.NetInputStream.read(NetInputStream.java:85)
         at oracle.jdbc.driver.T4CSocketInputStreamWrapper.readNextPacket(T4CSocketInputStreamWrapper.java:122)
         at oracle.jdbc.driver.T4CSocketInputStreamWrapper.read(T4CSocketInputStreamWrapper.java:78)
         at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1179)
         at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:1155)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:279)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:194)
         at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:853)
         ... 18 more

  • I can not dowload the new updated software for my Ipod touch 4G. When i do I get an error message that says Network connection has timed out. I have done the trouble shooting steps. Downloaded the latest version of Itunes, and checked network connection

    I can not dowload the new updated software for my Ipod touch 4G. When i do I get an error message that says Network connection has timed out. I have done the trouble shooting steps. Downloaded the latest version of Itunes, and checked network connection

    Disabling the computer's antivirus and firewall during the download and update usually resolves the timeout error.

  • I've tried downloading iOS5 several times and after an hour each time I get a message that says my network connection has timed out.  But I can't find any information about "timing out" or how to correct the situation.  Any help?

    I've tried downloading iOS5 several times and after an hour each time I get a message that says my network connection has timed out.  But I can't find any information about "timing out" or how to correct the situation.  Any help?

    Disable your antivirus and firewall, and try again.

  • Long time to load a first page, get "the connection has timed out" frequently.

    Frequently takes a long time to get to first page. Even a "speed test" to check my DSL connection. Usually can get to "google.com" quickly but it did come up slow today (just a test for a simple page).
    I have a wireless N router with it's own Firewall (which I didn't want) and I think I've turned it off. Symantec firewall, don't think WinXP firewall is on.
    Tried refresh of Adobe Flash Player per suggestion in this forum, no help.
    Would like to have a tool to see how long each step of getting to the web takes so I can see if there's a bottleneck.
    Occasionally "try again" button works on the "connection has timed out" message.
    My PC is 6 yr old. xp-home, lots of ram, HDD available. Run Symantec AV/MBAM frequently. Ran Housecall and Dr. Web- no problems.
    Talked to my DSL provider and Symantec in depth. Similar lethargy when I get IE running but not as frequent as under FF. Measured my DSL speed - 5MB as promised.
    When the lag occurs, Task Manager does not show FF taking a lot of processor time.
    Have done the things suggested in FAQ to help with performance.
    Also going to bleepingcomputer.com to see if there are suggestions there.
    I'm hoping someone has experienced an analog to this and has a suggestion to diagnose and solve. Thanks - Mike.

    Here's your sign! This is my problem and its solution. Let me know if someone needs help to interpret.
    If you frequently get "connection timed out", go to your ISP and get Manual DNS addresses. Then beat them till they put a real fix on their system.
    Problem is in the DNS server service provided by my DSL provider, Bell South/AT&T. Result of a poor performing DNS is that one can't get thru to the selected site.
    If you do a web search +dsl +"time out" you will see the history with Windstream. THEY finally issues a system-wide fix which, it appears, flattened the issue. Then add +AT&T to see that experience. I did not read it all thru, I'm wasted chasing this problem. I don't give AT&T ANY credit for customer service or heading off problems for their customers on this one.
    AT&T support offers me:
    ==================================== start quote.
    How do I check and update my DNS settings, if my DNS settings are not "server assigned"?
    When you visit a Web site, your browser sends the site's alphabetic domain name to a DNS server. The DNS server translates the domain into a numeric IP address, then responds to your computer with the Internet location of the Web site. Incorrect DNS settings on your computer can disrupt this information flow and cause your Internet browsing to slow down or fail.
    If you have trouble browsing the Internet, check your DNS settings. You likely have your DNS settings as "server-assigned." This allows DNS information to be automatically sent to your computer, which may improve your browsing experience. However, you may need to have your DNS settings manually entered
    Note: If you are using a router to connect to your Internet service, check with your manufacturer's web site for instructions on updating your DNS settings with the following information:
    Primary DNS: 68.94.156.1
    Secondary DNS: 68.94.157.1
    1. Click the Start button and select Control Panel from the menu.
    2. Select Network and Internet Connections.
    3. Double-click the Network Connections icon at the lower right.
    4. Under the LAN or High-Speed Internet section, right-click the Local Area Connection icon and select Properties.
    5. From the "Components checked are used by this connection" list, select Internet Protocol (TCP/IP), then click the Properties button.
    6. Read the current DNS setting on the lower half of the TCP/IP properties screen. If the radio button Obtain DNS server address automatically is selected, you do not need to update your DNS settings. Otherwise, please continue.
    7. Input the new Preferred DNS server of 68.94.156.1 and the Alternate DNS server of 68.94.157.1.
    8. Click OK.
    9. Return to the Network Connections screen. If you have a DSL Connection icon in the Broadband section, proceed to next step otherwise you have completed updating your DNS settings.
    10. Under the Broadband section, right-click the DSL Connection icon and select Properties.
    11. Select the Networking tab.
    12. From the "This connection uses the following items" list, select Internet Protocol (TCP/IP) and click the Properties button.
    13. Read the current DNS setting on the lower half of the TCP/IP properties screen. If the radio button Obtain DNS server address automatically is selected you do not need to up date your DNS settings. Otherwise, please continue.
    14. Input the new Preferred DNS server of 68.94.156.1 and the Alternate DNS server of 68.94.157.1.
    15. Click OK.
    ================================= end quote.
    So it appears I can't put screen shots in here. Well I hope you get the gist.
    In fact this is a bit hosed up.
    It says if you user "automatic dns" you're OK, that's opposite of my experience.
    I changed to the specified DNS addresses and things seem 99.9% fixed.
    I also changed my Router (wireless) settings.
    If there's a survey of my experience here I'll take it.
    Mike Hardy

  • I am getting an error message that my network connection has timed out. while trying to update my iPhone on iTunes. Has anyone found a solution? I was given some advice about turning off my firewall and/or virus protection but am nervous about doing that.

    I get a message that my network connection has timed out while trying to update my iPhone on iTunes. Has anyone else had that problem and if so what solutions have you found? I was told to turn off my firewall and/or virus protection while updating but am nervous about doing that for obvious reasons. I'm also disgusted with Apple not providing free tech support.

    See this article about the ports that have to be open during the update process. iTunes has to contact Apple during the download. iTunes for Windows: Troubleshooting security software issues

  • While updating my iphone 4 to 5 I'm getting an error message 'connection is timed out. please check your internet settings' whereas my connection is very much active. Any suggestions!

    While updating my iphone 4 to 5 I'm getting an error message 'connection is timed out. please check your internet settings' whereas my connection is very much active. Any suggestions!

    Check to see if you anti-virus software running, that will at times interfere with the connection with the Apple server.

  • Cant download ios5. Using windows computer. Downloaded update 3 times gets to 100% and then says connection has timed out and I lose the lot. Any suggestions

    I have been trying to download ios5 using my windows compute Windows 7. I connected Ipad and opened Itunes etc. Three times I have sat there for up to an hour downloding the program and it gets to the end (100%) sometimes it even processses the file and then I get a message saying the connection has timed out and to try again. I am on a wireless connection and it is so frustrating. I have the latest version of itunes. Any suggestions?

    Try temporarily disabling your firewall and anti-virus software then try the download again.
    Stedman

  • When trying to download the new iPhone version, I keep getting an error message that my network connection has timed out.  Any ideas how to fix this?

    When trying to download the new iPhone version, I keep getting an error message that my network connection has timed out.  Any ideas how to fix this?

    This is asked and answered many time each day.  The forum search bar is on the right side of this page.
    Disable your firewall/security software and try again.

  • I keep getting an error that the connection keeps getting timed out. How do I fix this?

    When ever I click on iTunes Store icon on my iTunes I keep getting an error saying that iTunes cannot connect to the iTunes Store. Internet connection has timed out. How can I fix this issue w/o it continuing to happen which may I say is very annoying.

    you will need to follow "the old method" described at this page Moving from Aperture to Lightroom

  • I have just downloaded firefox onto my laptop but it wont open. I keep getting a message that says: 'The connection has timed out' Can you help

    This is the message i get after a few seconds of trying to connect:
    The connection has timed out.
    The server at search.bearshare.com is taking too long to respond.
    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer's network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

    Is this when you install the EXE, or when you are running Firefox, or some other time?

  • I have tried to update the operating system on my ipad several times without success.  Each time it reaches 353.2mb of 353.2mb and starts to process the file.  Nothing happens and then I get a message saying the network connection has timed out.

    I have tried to update the operating system on my ipad several times without success.  Each time it reaches 353.2mb of 353.3mb and starts to process the file.  Nothing happens and then I get a message saying the network connection has timed out.  The network is still connected.

    Have you tried temporarily turning off your firewall and antivirus software whilst the download is happening ? A number of people on here have had success downloading it after doing so.

  • Surfing the web I constantly get a dialog box popping up that says "The connection was rest" or " Server not found" or "The connection has timed out"

    Surfing the web I constantly get a dialog box popping up that says "The connection was rest" or " Server not found" or "The connection has timed out". The panel gives me three possible causes, none of which are correct and tells me to "Try again". Sometimes when I try again the site appears, sometimes it does after several tries and sometimes it never does. I called my IP, Cox and they told me it is a result of something Microsoft put out in their updates to IE (presumably to discourage people from using Firefox). Can you help me get rid of this problem?

    Surfing the web I constantly get a dialog box popping up that says "The connection was rest" or " Server not found" or "The connection has timed out". The panel gives me three possible causes, none of which are correct and tells me to "Try again". Sometimes when I try again the site appears, sometimes it does after several tries and sometimes it never does. I called my IP, Cox and they told me it is a result of something Microsoft put out in their updates to IE (presumably to discourage people from using Firefox). Can you help me get rid of this problem?

  • Keep getting the message the connection has timed out over and over again

    While trying to go on certain sites I continually get the connection has timed out message. Everyone else tells me they have no issues but I do it seems it is for government count and city employment sites. Help I am trying to apply for work and cannot do so. Thank you.

    I went to Norton and they were trying to help me, even to the point of removing Norton. They figured it was a firewall problem and I agree. They were not able to help me, but I shut the computer down, unplugged the modem and router, waited about 10 minutes and then started plugging everything in. It all works fine. I think the error message was cached in the memory and it needed to be reset to erase it.
    Hope this helps.

  • I get the message: "The connection has timed out" and can't get to my online banking

    I get the message: "the connection has timed out" when accessing my online bankingsite. I never had this problem before loading Firefox. There are a few sites that give me this problem. I have cleared my cookies cache, cleared history cache, cleared my security offline storage,
    Nothing works.
    == URL of affected sites ==
    http://www.collinscu.org

    I went to Norton and they were trying to help me, even to the point of removing Norton. They figured it was a firewall problem and I agree. They were not able to help me, but I shut the computer down, unplugged the modem and router, waited about 10 minutes and then started plugging everything in. It all works fine. I think the error message was cached in the memory and it needed to be reset to erase it.
    Hope this helps.

Maybe you are looking for

  • Is it possible to limit the number of attachments

    Is is possible to limit the number of attachments that the mail server will receive in a message. For example if the email has 5 or more attachments reject it or through it in the bitbucket. The reason I ask is I have a remote site that is sending me

  • Offline payment processing email not being received?

    We just got an event booking today with credit card payment and have yet to receive the secure PDF for processing. Is anyone else having this issue today or in the recent past? I noticed that this occured back in Feb but is it still not fixed? Any cl

  • Communicate between separate VI's using OOP

    Hello, I have a question relating to how two separate labview programs can communicate with each other. Specifically I want to make a temperature controller using the OOP features of labview, and implement a Model-Viewer-Controller design. I would li

  • Sending email from PL/SQL in oracle

    This is the sample code DECLARE l_mailhost VARCHAR2(64) := 'mail.mycompany.com'; l_from VARCHAR2(64) := '[email protected]'; l_to VARCHAR2(64) := '[email protected]'; l_mail_conn UTL_SMTP.connection; BEGIN l_mail_conn := UTL_SMTP.open_connection(l_ma

  • Vendor e-catalog problem after upgrade to SRM7

    Hi all, We are upgrading from SRM4 to SRM7 and now testing on some existing external web serivces which punch out to vendor e-catalogues.  However, we found that one of the vendor e-catalog has problem and  the symptom is like this: - punch out succe