Debo realizar una aplicación de escritorio que descargue unos archivos (.xls) desde una pagina en donde se exige registro. Existía una aplicacion en Java que ya funcionaba, y he seguido la linea de dicha app. Esta trabaja con Hibernate, pero hay unos errores que aun no logro resolver. Este es el log de excepciones: Codigo de HibernateUtil. t java.io.PrintStream; Code: import org.hibernate.cfg.Configuration;import org.hibernate.SessionFactory;public class Neimport java.io.File; imporgHibernateUtil { private static SessionFactory sessionFactory = buildSessionFactory(); private static SessionFactory buildSessionFactory() { try { // Create the SessionFactory from standard (hibernate.cfg.xml) // config file. //return new Configuration().configure().buildSessionFactory(); sessionFactory = new Configuration().configure().buildSessionFactory(); } catch (Throwable ex) { // Log the exception. System.err.println("Initial SessionFactory creation failed." + ex); throw new ExceptionInInitializerError(ex); } return null; } public static SessionFactory getSessionFactory() { return sessionFactory; } Codigo NegClaves: import Entidades.ClavesRl; Code: import static Negocio.NegHibernateUtil.getSessionFactory;import static java.sql.DriverManager.println;import java.util.List;import org.hibernate.Query;import org.hibernate.Session;import org.hibernate.SessionFactory;import org.hibernate.Transaction;public class NegClaves { Session sesion; public NegClaves(){ //this.sesion = (Session) getSessionFactory(); this.sesion = NegHibernateUtil.getSessionFactory().openSession(); } public String clave(String UEN){ Query q; q = this.sesion.createQuery("from ClavesRl where UEN='" + UEN + "'"); List<ClavesRl> clave = q.list(); String retorno = ((ClavesRl)clave.get(0)).getPass(); return retorno; } public ClavesRl todo(String UEN){ Query q; q = this.sesion.createQuery("from ClavesRl where UEN='" + UEN + "'"); List<ClavesRl> clave = q.list(); ClavesRl retorno = (ClavesRl)clave.get(0); return retorno; } public boolean uppClave(ClavesRl p) throws Exception { this.sesion.clear(); Transaction tx = this.sesion.beginTransaction(); this.sesion.saveOrUpdate(p); tx.commit(); return true; } Favor ayuda