CONM7007I: Mapping the following SQLException, with ErrorCode -901 and SQLS

When I execute a Query it throws
CONM7007I: Mapping the following SQLException, with ErrorCode -901 and SQLState 58004, to a StaleConnectionException: java.sql.SQLException: [SQL0901] Error del sistema SQL.
I am using iSeries DB2 and Websphere V5.
Thanks for your help.

Retrying solved my problem:
StaleConnectionException
This exception (com.ibm.websphere.ce.cm.StaleConnectionException) indicates that the
connection currently being held is no longer valid. This can occur for numerous reasons,
including the following:
The application tries to get a connection and fails, as when the database is not started.
A connection is no longer usable due to a database failure. When an application tries to
use a connection it has previously obtained, the connection is no longer valid. In this
case, all connections currently in use by an application could get this error when they try
to use the connection.
The application using the connection has already called close() and then tries to use the
connection again.
The connection has been orphaned because the application had not used it in at most two
times the orphan timeout; then the application tries to use the orphaned connection.
The application tries to use a JDBC resource, such as a statement, obtained on a
now-stale connection.
Code that implements retries in case of StaleConnectionException...
boolean retry = false;
int numOfRetries = 0;
java.sql.Connection conn = null;
java.sql.Statement stmt = null;
do {
    try {
        //    assumes a datasource already obtained from JNDI
        conn = ds.getConnection();
        conn.setAutoCommit(true);
        stmt = conn.createStatement();
        stmt.execute("INSERT INTO EMPLOYEES VALUES
                (0101, 'Bill', 'R', 'Smith')");
    } catch(com.ibm.websphere.ce.cm.StaleConnectionException
            sce) {
        if(numOfRetries < 2) {   
            retry = true;
            numOfRetries++;
        } else {
            retry = false;
            //    throw error indicating a connection
            //    cannot be obtained
    } catch (java.sql.SQLException sqle) {
        //    handle other database problem
    } finally {
        //    always cleanup JDBC resources
        try {
            if(stmt != null) stmt.close();
        } catch (java.sql.SQLException sqle) {
            //    usually can be ignored
        try {
            if(conn != null) conn.close();
        } catch (java.sql.SQLException sqle) {
            //    usually can be ignored
} while (retry);

Similar Messages

  • Mapping the Follow-up action to the Usage-Decision

    Hi All,
               I have a the following requirement in my development:
    The Usage decision needs three function-modules for the three cases of the follow-up process.
    In addition to that this ,service shall have a control table in Customizing, where the customer is able to decide which follow-up action should be made. (not standard customzing). The function-module for this process is not standard.
    1) Does the second requirement also require FM?
    2) Please give me the steps to map the Follow-up action to the Usage-Decision in SPRO
    Thanks,
    Vasuki

    Hi
    First create the follow up action which you want, and assign the same in QS51 t.code to your UD code group.
    Thanks
    S.Murali

  • I don't know if this is the right section but I experience the following issue with Adobe Acrobat Pro XI installed on Windows 8.1. When I start Acrobat the related window opens normally but, after some scroll up and down along the document, it blocks, Acr

    I don't know if this is the right section but I experience the following issue with Adobe Acrobat Pro XI installed on Windows 8.1. When I start Acrobat the related window opens normally but, after some scroll up and down along the document, it blocks, Acrobat doesn't respond to any command I can give and, in place of the pointer arrow, a vertical bar, as the one of the text editor appears. The only way I can stop Acrobat is by means of the task manager. I tried to de-install and the re- install Acrobat but the behaviour is always the same. What can I do??

    Have you opened Acrobat and gone to Help>Updates to get an updated install?

  • How can I map the composite_dn name with a composite in run time

    Hi All,
    I want to craete a report on number of total business and system faults with the help of Information Publisher in OEM 12c Cloud Control. I am fetching data from the table composite_instance_fault present in SOAINFRA schema. Below os my SQL statement:-
    select error_category,count(error_category) from prefix_SOAINFRA.composite_instance_fault where composite_dn=??EMIP_BIND_TARGET_GUID?? group by error_category
    Now I want to know that how can I map the composite_dn name with a composite in run time. When we fetch data from the repository we used to map target in rumtime by using ??EMIP_BIND_TARGET_GUID?? but here as I am not fetching data from repository, how can I map target in run time.
    On executing the above SQL statement its returing an empty table without any data.
    Please guide!!
    Thanks in Advance!!

    Hi,
    try something like this.
    Mike
    Attachments:
    Unbenannt 5_LV80.vi ‏12 KB

  • Failed to Install The New Preview Build. Installation Failure: Windows failed to install the following update with error 0x80246007: FBL_AWESOME1501 9926 Professional.

    Hello,
    I'm having issues upgrading my Windows 10 Technical Preview installation build 9879 to a newer build that's become available late January 23rd.
    I am installing the new upgrade in a Hyper-V virtual machine and get the following error:
    Failed to install the new preview build, please try again later. 0x80246007
    What could be the problem?
    Previously I've had messages that Windows cannot be upgraded on a computer with less than 2 Gbyte of RAM. That's a Hyper-V VM with dynamic memory and I was highly surprised to see this error; never had this before. Had to set 2048 Mbytes as a minimum memory
    for this VM. Now that I have this 80246007 error code.
    When looking up System log, the following error messages are listed multiple times:
    Installation Failure: Windows failed to install the following update with error 0x80246007: FBL_AWESOME1501 9926 Professional.
    The errors are returned for the Event ID 20 by WindowsUpdateClient
    in task category Windows Update Agent..
    I reviewed the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\Applicability
    registry key as suggested in Windows
    Insider stuck on build 9841 - "No new preview build was found", and here is what it shows:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\Applicability]
    "BranchName"="fbl_awesome1501"
    "ThresholdRiskLevel"="low"
    "ThresholdOptedin"=dword:00000001
    Note, when attempting to install the downloaded update from a native boot, installation starts with no errors.
    However, since setup is not supported for a natively booted VHD files, it does not proceed further showing a message that installation on virtual drives is not supported.  
    Looks like Setup is having problems installing in a Hyper-V virtual machine.
    Possibly, some ESD files got corrupted during downloading? Is it possible to remove them and re-download missing files? (I, however, noticed that Windows seems to re-download upgrade files after you restart 9879 and attempt to check for a new build.
    Any clue why installing under VM causes 9926 to fail?
    Thank you in advance.
    Well this is the world we live in And these are the hands we're given...

    Hi,
    According to the error message, this problem seems like update package installation failed during system upgrade.
    You can try to remove ESD file which locate at boot of C drive and upgrade the system again for test.
    On the other hand, make sure the system 9879 installed all Windows pushed updates before system upgrade.
    Roger Lu
    TechNet Community Support

  • Installation Failure: Windows failed to install the following update with error 0x800F0922

    Hi folks,
    I have a HP Elitebook Folio 9470p.  It came with Windows 8, and I installed it on my corporate domain.  I was trying to do some Windows updates so  I could upgrade it to Windows 8.1, but it fails installing the updates, whether or not I try
    to install them one at a time or all of them.  It has about 18 updates it needs from security updates to a .net framework update.  I run Symantec EP, and disabled it, checked for driver updates for things like display and networking and they are
    all up to date.
    I'm at a loss as to what to do.  It gives this error in the event log for each file, Event ID 20.
    Installation Failure: Windows failed to install the following update with error 0x800F0922: Security Update for Windows 8 for x64-based Systems (KB2862152).
    This is the example for KB2862152, but it gives the same error for every one.  I've tried to auto fix for Windows update issues and it fixed a couple of the issues, but not all of them, and provides no other help.
    I also deleted folders and files from the SoftwareDistribution folder as well, to no avail.  Any ideas what I can do to get whatever updates it needs, so I can fully patch it, and upgrade it to Win 8.1?
    Thanks for any help!

    Hi MM. Mr Kywildcat and Vegan Fan,
    GOOD NEW ! At this time, my issue is solved. The only black side is "how ?" : I hope that we will get a response some day ; however, and for in information  pnly - hoping this could help someone - I resume some actions which allowed this the happy end
    1) about installing 8.1 : I wanted to be sure that gain/pain ratio was positive, and that upgrading from a (potentially) damaged system would'nt produce something looking like a new Win 8.1, but difficult to maintain and keeping some negative potentialities.
    2) I was influenced by the fact that this
    0x800F0922  error acted as "a serial killerror", whose root cause could be a unique update error at reboot time concerning several (>20) packages, so I decided to test some manual upgrades.
    3)   Manual update (i.e. manual download and maunching of .msu packages) of the 2 following packages
    (whose update previously failed on a Windows Update) was successful : .NET Framework version 3.5 for  x64 (KB2898866) and Camera Codec Pack Windows 8 for x64 (KB2899190)
    4) So I decided to try Windows Update on a selection of packages, first : those concerning .Net Framework 3.5 and 4.5 (that is: KB2898866, 2901120, 2898865) --> Successful !
    5) finally, I selected almost all other packages, with some exceptions wich I (think to) have no need for : KB2871690, 2904659, 2843630. To be complete, here is the list of pakages updated one time at all :
    KB 2892074, 2893294, 2893984, 2909210, 2912390, 2916036, 2889784,2903938, 2911101, 2913152, 2917499
    --> always succesful.
    I am not a specialist, but I uess that this 0x800F0922 error hides another problem which is globally "H-RESULTED"
    to all updates pending in one update operation with reboot. This could be assumed from this CBS.log exterped from my last wrong attempts, where root cause seems not to be
    0x800f0922, but 0x80004003 :
    2014-02-15 21:29:13, Info                  CBS    Could not get active session for current session file logging [HRESULT = 0x80004003 - E_POINTER]
    2014-02-15 21:29:13, Info                  CBS    Not able to add pending.xml.bad to Windows Error Report. [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
    2014-02-15 21:29:18, Error  CBS    Startup: Failed to process advanced operation queue, startupPhase: 0.  A rollback transaction will be created. [HRESULT = 0x800f0922 - CBS_E_INSTALLERS_FAILED]
    Anyway, thanks to you who spent some of your time to describe issues and search/ suggest solutions ; I will upgrade my system to 8.1 anyway, some of this day, when I am sure that my configuration does not hides some other problem. I thing that potential
    issue remains until maybe a new KB corrects it, wrong :-) ?
    And I hope that you - Mr Kywildcat - can upgrade your system on "current levels" trying similar attempts. 
    Phil   

  • Hi, I have the following problem with Time Capsule: La imagen del disco de copia de seguridad "/Volumes/Data/MacBook Pro de Carlos.sparsebundle" ya está en uso. Please your comments to solve this problem, i can't made a backup. Thanks.

    Hi, I have the following problem with Time Capsule: La imagen del disco de copia de seguridad “/Volumes/Data/MacBook Pro de Carlos.sparsebundle” ya está en uso. Please your comments to solve this problem, i can't made a backup. Thanks.

    Try Here  >  http://pondini.org/TM/Time_Capsule.html
    Perhaps P 2  >  Time Machine could not complete . . . sparsebundle could not be accessed. (Error 109).

  • How to map the bulk users with the required  roles in portal at one time

    Hi,
    Would anyone tell me how to map the bulk users with the required roles in portal at one time?

    Thanks for all the reply.
    <b>I need to assign 1 or 2 group to n((eg) 1000)number of users</b>
    I tried the first option like
    [group]
    gid=
    gdesc=
    user=
    Thr problem with this is I could n't put more no of users in the notepad.
    I would be able to put only 150 users in the single line of notepad. If it goes to next line it is not working.
    I tried creating seperate notepad but in Import it says "exists"
    I'm not sure about LDAP. Would anyone explain me the best approach to do this.

  • How i map the caf data with data of UWL in web dynpro

    Hi Experts,
    i created a bpm project with nwce 7.1.1 and it have a independent caf to keep it's data and status.
    now i have to create a view(use web dynpro) such like UWL,
    my question is
    how i map the caf data with UWL, and let the view can open the task(popup a window, just like UWL do) for user to finish their job?
    thanks.

    Hi Vic
    Your requirement is exect functionality of UWL based on WEBDYNPRO, CAF and BPM for automation? ,and question is How to use CAF with WD or CAF with UWL API's ?. please clarify it.
    Please fo through from given doc misght give u some idea
    1. [How to develop Web Dynpro UI for your CAF project |http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID0722080650DB02400261803144436507End?blog=/pub/wlg/5414]
    Best Regards
    Satish Kumar

  • Mapping the CMP Fields with the Database Table using Websphere???

    Hi,
    How to Map the CMP Fields with the Database Table using Websphere
    thru ejb.jar.xml???
    Thanks,
    JavaCrazyLover

    Hi,
    How to Map the CMP Fields with the Database Table using Websphere
    thru ejb.jar.xml???
    Thanks,
    JavaCrazyLover

  • When going through the download process with social monkee and getting to the point of adding it to firefox I get the following message: 'Social Monkee could not be installed because firefox cannot modify the needed file'. How can this be fixed?

    When going through the download process with social monkee and getting to the point of adding it to firefox I get the following message: 'Social Monkee could not be installed because firefox cannot modify the needed file'. How can this be fixed?

    That is usually caused by a missing unpack directive (&lt;em:unpack&gt;true&lt;/em:unpack&gt;) in the file install.rdf of that extension.
    See https://developer.mozilla.org/En/Updating_extensions_for_Firefox_4.0#XPI_unpacking
    -----

  • TS3276 Hello all, I am getting the following message with some emails I receive:- HTML enabled email client required to read this email. I don't really understand this and don't know what to do to allow me to open the email. Any help? Thanks, Alex

    Hello all, I am getting the following message with some emails I receive:- HTML enabled email client required to read this email. I really don't understand this message, am non techy, would anyone know how I can open and read the email? Thanks very much for any help, Alex

    In Mail I suggest you try 'View->Message->Plain text alternative'.
    Why? In multipart/alternative messages, such as this, the text/plain version should precede the text/html version, but Toyota have swapped them around. By default mail clients display the second version, assuming it to be HTML.
    Very strange.

  • Windows failed to install the following update with error 0x80070005

    Hi,
    We are using Win Server 2008 R2 std. Server and Win 7 Professional X64 clients. During the second batch of update we got an Error while updating on one client machine and the system restoring back automatically However other clients are updating and working
    fine. Then i tried to install the updates one by one manually then successfully installed all the updates except one ie. KB2862330. It keeps failing then i found an article suggest to check the update with Admin Previlage, disable Antivirus and Scan the
    computer for Malware (Using MS Security Scanner and Malwarebytes). I tried both but never works. After that i got 2 batch of updates, everything is updating and trying to update this (KB2862330) and failing till date. What is the issue and why its not updating
    on one machine?
    Installation Failure: Windows failed to install the following update with error 0x80070005: Security Update for Windows 7 for x64-based Systems (KB2862330).
    KB Article Followed : http://support.microsoft.com/kb/968003/en-us

    Okay, good. The SURT shows no errors.
    So now we can blame the problem exclusively on the update itself.
    And yes... there are still known, ongoing issues with KB2862330.
    Truly, my suggestion is to just not install it at all. Unless you've identified a known risk via a USB vector on particular systems where the vulnerability would be considered a critical risk, I'd say that the risk caused by the vulnerability is significantly
    less than the risk of additional headache caused by the update itself. I have still not deployed MS13-081 to any of my systems, and frankly, I don't plan to.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • I get the following errors with CVI 2010. "sal.h"(17​06,15) Redefiniti​on of macro '__null'.

    A project which was working with CVI 9.0 on XP does not compile with CVI 2010.
     I get the following errors with CVI 2010. "sal.h"(1706,15)   Redefinition of macro '__null'.  
    doesnt work with CVI 2010 on on win 7 too.  
    Could some one provide some insight into this please?  
    Thanks
    performance

    You wild guess is correct.
    The version of the Microsoft SDK that shipped with CVI 9.0 included a definition of __null that matched the definition that is in sal.h. You can find this definition in line 448 of CVI90\sdk\include\specstrings.h.
    The version of the Microsoft SDK that shipped with CVI 2010 included a definition of __null that no longer matches the definition that is in sal.h. You can find this definition in line 575 of CVI2010\sdk\include\spectstrings_strict.h. This is why the CVI compiler complains when it finds the sal.h definition.
    The SDK that ships with CVI has been customized to make sure that it works with the CVI compiler. But this does not include making sure that it also works with VC headers. In general, there's no way to guarantee that VC headers can be compiled in CVI, since these headers don't ship with CVI and cannot be customized.
    In this particular case, you might get it work if you include sal.h before you include windows.h. But there are no guarantees.
    Luis

  • I have an apple id but i have not been able to use the same id with i tune and app store..what to do

    i have an apple id but i have not been able to use the same id with i tune and app store..what to do???every time i m trying to login it is telling that this id has not been used with i tune and App Store ....reviewing of my id is one of the option provided to me after this...

    Have you logged in and reviewed your account and entered payment details ? Unless the instructions on this page are followed when creating an account : Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method - Apple Suppor…
    then credit card details will need to be entered before the account can be used to download any item from the store.
    You could see if this post by mountaingoatgirl lets you review your account without needing to enter credit card details : https://discussions.apple.com/message/24303054#24303054
    If not then you will either have to enter card details (you should be able to remove them after entering them), or create a new account (using the instructions on the above link).

Maybe you are looking for