Red-Hair-Shanks Posted August 26, 2014 Posted August 26, 2014 (edited) geia sas magkes..exw perasi ena code sto acis kai mou bgazi se afti ti grami error to close...pws to ftiaxnw??L2DatabaseFactory.close(con); Edited August 26, 2014 by ourat1995
0 Tryskell Posted August 26, 2014 Posted August 26, 2014 (edited) This stuff is handled by a Java 7 feature, named "try with ressources" . Read others db connections on the project to see how it must be written. Advantages are it lowers the amount of code and there's no need to manually close stuff anymore. http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html Sorry for the non greek post, I fix it : kalimera malaka. Edited August 26, 2014 by Tryskell
0 Red-Hair-Shanks Posted August 26, 2014 Author Posted August 26, 2014 gs error ..did you know how i can fixed?
0 ExCaLiBuR® Posted August 27, 2014 Posted August 27, 2014 finally { L2DatabaseFactory.close(con); } delete this code
0 Red-Hair-Shanks Posted August 27, 2014 Author Posted August 27, 2014 finally { L2DatabaseFactory.close(con); } delete this code sunexizei na mou bgazi to error pou exw anebasi sti pano foto...
0 Devlin Posted August 27, 2014 Posted August 27, 2014 to L2DatabaseFactory.close(con); kanto if (con != null) con.close();
0 Thug!! Posted August 27, 2014 Posted August 27, 2014 Sorry for the non greek post, I fix it : kalimera malaka. hahahahahahaha @on, το έκανες το πρόβλημα ?
0 Red-Hair-Shanks Posted August 27, 2014 Author Posted August 27, 2014 to eftia3a me allo tropo...alla3a merikes grames kai den exw pleon errors..... lock topic
0 Katherine Posted August 27, 2014 Posted August 27, 2014 to eftia3a me allo tropo...alla3a merikes grames kai den exw pleon errors..... lock topic Kay, locked.
Question
Red-Hair-Shanks
geia sas magkes..exw perasi ena code sto acis kai mou bgazi se afti ti grami error to close...pws to ftiaxnw??
Edited by ourat1995L2DatabaseFactory.close(con);
8 answers to this question
Recommended Posts