Derby数据库引导密码在异常文本中可见

时间:2016-10-22 14:38:01

标签: java eclipselink derby

当尝试使用错误的数据库名称连接到数据库时,生成的异常包含黑客可以轻松显示的启动密码。 如何从异常文本中隐藏启动密码 例外

javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLNonTransientConnectionException: The connection was refused because the database data/ClinicDatabaseQQQQ;bootPassword=DataPassword was not found. Error Code: 40000 Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLNonTransientConnectionException: The connection was refused because the database data/ClinicDatabaseQQQQ;bootPassword=DataPassword was not found. Error Code: 40000 ... 11 more Caused by: java.sql.SQLNonTransientConnectionException: The connection was refused because the database data/ClinicDatabaseQQQQ;bootPassword=DataPassword was not found. ... 21 more Caused by: ERROR 08004: The connection was refused because the database data/ClinicDatabaseQQQQ;bootPassword=DataPassword was not found. ... 25 more

0 个答案:

没有答案