conniction fixed 

public void Upload(){

JcalendarController CC = new JcalendarController (this.username,
this.day, this.text, this.file);

System.out.println(this.username+" "+ this.day+" "+this.text+" "+
this.file);

//calendarlist.add(CC);

JcalendarDAO.CheckDAO(CC);

JcalendarBeans();

}



finally {		
		    try { connection.close(); } catch (Exception e) { /* ignored */ }
}



Connection connection=DBconnection.getConnection();