• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi List[],

When i am entering the data in the table its not showing all the records in the table.
i.e when i entered 25 records in the table its shown only 20 records.

I am using MYSQL . Please help me.

For getting connection i am using singleton class
and my class look like

try
{
con = ConnectionFactory.getConnection();
.
.
.
.
.
.
.
.}catch(Exception e)
{
e.printStack();
}
finally {
try {
if (con != null) {
con.close();
}
} catch (Exception e) {
log.error("Error in closing" + e);
}
 
Vijitha Kumara
Bartender
Posts: 3953
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not show us the code between "try" and "catch", perhaps that would give an idea.
 
Sandeep Kumar Jakkaraju
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your program multi-threaded !!!

Where is this code in ???

 
Campbell Ritchie
Marshal
Posts: 53162
124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And please don't use thread titles like "need help".
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my code.And i am using Single ton class to get the connection.

 
Amir Iqbal
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well first of all it really a messy code, try to use simple code by putting corresponding code into seprate methods
then comes towards the actual problem.
would you please tell what kind of exception or error you are facing when you execute this code???

what comes in "j" after the following line executes??


tell us please.

Regards,
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!