Solved

StaleConnectionException, RollBackException, RetryableException when using JNDI

Posted on 2009-05-19
7
493 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that useā€¦
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

752 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