i spent 5 hours to solve this problem but i do nothing. \[code\]public class FtHelper { Session session = null; public FtHelper() { this.session = HibernateUtil.getSessionFactory().getCurrentSession(); } public FinancialTransactions getByBeginDate(String beginDate){ List<FinancialTransactions> FtList = null; try { org.hibernate.Transaction tx = session.beginTransaction(); Query q = session.createQuery("from FinancialTransactions where DATE=:date").setParameter("date",beginDate); FtList = (List<FinancialTransactions>) q.list(); } catch (Exception e) { e.printStackTrace(); } return FtList.get(0); }}\[/code\]When i call the getByBeginDate function, connection is refused. Really i dont understand why. What might be the problem?my hibernate settings\[code\]<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><hibernate-configuration> <session-factory> <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/TekirMobile?zeroDateTimeBehavior=convertToNull</property> <property name="hibernate.connection.username">root</property> <property name="hibernate.connection.password"></property> <mapping resource="TekirMobile/FinancialTransactions.hbm.xml"/> <mapping resource="TekirMobile/Customer.hbm.xml"/> <property name="hibernate.show_sql">true</property> <property name="hibernate.current_session_context_class">thread</property> <property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property> </session-factory></hibernate-configuration>\[/code\]