-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: What does "Could not obtain connection metadata" m
PostPosted: Thu Nov 04, 2004 9:02 pm 
Newbie

Joined: Fri Oct 22, 2004 2:10 am
Posts: 6
Hibernate version: Hibernate 2.0

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

05-Nov-2004 08:51:50,435 WARN [net.sf.hibernate.cfg.SettingsFactory] Could not obtain connection metadata

java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Login failed for user 'tester'.

at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)

at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)

at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)

at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)

at com.microsoft.jdbc.sqlserver.tds.TDSLoginRequest.processReplyToken(Unknown Source)

at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)

at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)

at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)

at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)

at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)

at java.sql.DriverManager.getConnection(DriverManager.java:512)

at java.sql.DriverManager.getConnection(DriverManager.java:140)

at net.sf.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:95)

at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72)

at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1119)

at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:748)




Name and version of the database you are using: MSSQL 2000

The generated SQL (show_sql=true): True

Debug level Hibernate log excerpt:


Hi everyone,

Does anyone know wat does "Could not obtain connection metadata" mean?

I got this error when I replace my pc 's database MDF file with another pc's database MDF file, but both database are generated with the same database script. The database script that I am using is auto-generated from ERwin. Could it due to that??


TIA
:)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.