This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JDBC and the fly likes throwing an Exception after first exceution .. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "throwing an Exception after first exceution .." Watch "throwing an Exception after first exceution .." New topic
Author

throwing an Exception after first exceution ..

shiva mistry
Greenhorn

Joined: Feb 05, 2013
Posts: 10
When I try to Enter sid second time from command prompt it throws an Exception like Connection is closed but if i comment out the con.close() then it allows to perform another query ,I do not know what to do ?can any one help please?



Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18110
    
    8

Don't close the connection, then.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: throwing an Exception after first exceution ..
 
Similar Threads
Applet blinking, DB doesn't work
guestbook, looping, beans and JSTL
giving ClassCastException while deploying ejb2.0 Bmp application on jboss4.5
JSTL for loop error
Getting an Exception like NoClassDefFoundError