Solved

StaleConnectionException, RollBackException, RetryableException when using JNDI

Posted on 2009-05-19
7
479 Views
Last Modified: 2013-12-19
The above exceptions are coming when I try to execute ps.executeQuery

Conn = ds.getConnection();
Ps = conn.prepareStatement();
Ps.executeQuery();

SQLCODES are -107,-516, -517 in DB2. I am using JNDI.
0
Comment
Question by:ramadevimandala
  • 4
  • 3
7 Comments
 
LVL 12

Expert Comment

by:Gibu George
ID: 24420189
Hello ramadevimandala,

I don't see any staement passed as a parameter to the conn.prepareStatement()

Regards,

gibu_george
0
 
LVL 12

Accepted Solution

by:
Gibu George earned 500 total points
ID: 24420194
Also the error -516 is related to the prepared statement
0
 

Author Comment

by:ramadevimandala
ID: 24420256
hi im passing the string to conn.prepareStatement() which is s statement.
i tried to get the staleexception in catch and didi the rollback but still its not working
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 12

Expert Comment

by:Gibu George
ID: 24420283
Post the statement please
0
 

Author Comment

by:ramadevimandala
ID: 24420335
processStmt=conn.prepareStatement("SELECT xxeis.eis_rs_utility.y(?) FROM dual");
                  processStmt.setString(1,encrypProcessId);
                  processRS=processStmt.executeQuery();
0
 
LVL 12

Expert Comment

by:Gibu George
ID: 24420377
the 107 error is caused when the parameter passed is too long.  check howmuch is the size of the parameter you are passing and how much xxeis.eis_rs_utility.y() can accept
0
 

Author Comment

by:ramadevimandala
ID: 24421091
Thank you for your help,

My issue is resolved after setting the connection pllo value to 0.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now