Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 2.1
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using: Sybase ASE 12.5
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
I am getting this error:
JZ004: User name property missing in DriverManager.getConnection(...,Properties).
The user name is in the hibernate.cfg.xml as well as the sybase-ds.xml which is under the jboss/server/default/lib. We are stumped on why we are getting this error? The configuration file is being found. Here is the snippet of code where the error occurs.
public static Session getSession() throws InfrastructureException
{
s = (Session) threadSession.get();
try {
if (s == null)
{
s = sessionFactory.openSession();
if (getInterceptor(() != null)
{
s = getSessionFactory.openSession(getInterceptor());
}
}else
{
s = getSessopmFactory().openSession();
}
threadSession.set(s);
}catch (Exception ex)
{
throw new InfrastructureException(ex);
}
Logger logger = Logger.getLogger("HANDALAYOUT.HIBERNATE");
if(s.isConnected())
log.debug("*********************** is connected");
else
log.debug("*********************** NOT connected");
return s;
}