Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法获取数据库元数据java.sql.SQLException:_Java_Hibernate_Shared - Fatal编程技术网

无法获取数据库元数据java.sql.SQLException:

无法获取数据库元数据java.sql.SQLException:,java,hibernate,shared,Java,Hibernate,Shared,我正在使用hibernate sharedFactory进行数据库更新。 当我尝试执行一次更新时,我在日志中遇到以下错误: 2011-09-01 16:17:50,406 ERROR (org.hibernate.tool.hbm2ddl.SchemaUpdate:134:execute) - could not get database metadata java.sql.SQLException: Connections could not be acquired from the unde

我正在使用hibernate sharedFactory进行数据库更新。 当我尝试执行一次更新时,我在日志中遇到以下错误:

2011-09-01 16:17:50,406 ERROR (org.hibernate.tool.hbm2ddl.SchemaUpdate:134:execute) - could not get database metadata
java.sql.SQLException: Connections could not be acquired from the underlying database!

2011-09-01 16:32:05,734 ERROR (org.hibernate.tool.hbm2ddl.SchemaUpdate:165:execute) - could not complete schema update
java.sql.SQLException: Connections could not be acquired from the underlying database!
而异常正是在这行代码上抛出的

sessionFactoryShard = shardedConfig.buildShardedSessionFactory();

有人能告诉我发生此错误的原因吗?

您的连接字符串正确吗?它只是告诉您它无法连接到数据库或服务器未运行!是的..这就是它变得奇怪的原因..连接字符串是正确的,并且更新也在进行..但是对于每次更新,这个错误都会出现在日志上。这个问题中有问题吗..或者回答这个问题时有问题吗?连接字符串正确吗?它只是告诉您它无法连接到数据库或服务器未运行!是的..这就是它变得奇怪的原因..连接字符串是正确的,并且更新也在进行..但是对于每个更新,这个错误都会出现在日志上。这个问题中有问题吗..或者回答这个问题时有问题吗。???