hibernate - Application gives Communications Link Failure on Mac OS while using MySQL Server -
my application using mysql server. when try launch on mac os, application state hangs @ persistence manager try establish connection. exception thrown after 30 minutes.
2011-02-25 15:24:06,137 2292512 error org.hibernate.util.jdbcexceptionreporter communications link failure
last packet sent server 0 ms ago. 2011-02-25 16:24:07,944 5894319 error org.hibernate.util.jdbcexceptionreporter communications link failure
last packet sent server 0 ms ago. 2011-02-25 16:24:07,945 5894320 error org.hibernate.util.jdbcexceptionreporter communications link failure
last packet sent server 0 ms ago. 2011-02-25 16:24:07,947 5894322 error com.agilent.cgh.dal.persistence.abstractpersistencetype org.hibernate.exception.jdbcconnectionexception: cannot open connection : cannot open connection org.hibernate.exception.sqlstateconverter.convert(sqlstateconverter.java:97) org.hibernate.exception.jdbcexceptionhelper.convert(jdbcexceptionhelper.java:66) org.hibernate.exception.jdbcexceptionhelper.convert(jdbcexceptionhelper.java:52) org.hibernate.jdbc.connectionmanager.openconnection(connectionmanager.java:449) org.hibernate.jdbc.connectionmanager.getconnection(connectionmanager.java:167) org.hibernate.jdbc.jdbccontext.connection(jdbccontext.java:142) org.hibernate.transaction.jdbctransaction.begin(jdbctransaction.java:85) org.hibernate.impl.sessionimpl.begintransaction(sessionimpl.java:1353)
after bit of debugging found application hangs in spring framework while loading beanrefcontext.xml
any ideas why application unable start on mac os?
i suppose can take mysql configuration file
/etc/my.cnf
probabilly if i've understood request problem here:
wait_timeout = 1800 connect_timeout = 10
Comments
Post a Comment