胖作家
2020-08-07 21:02
采纳率: 100%
浏览 2.0k
已结题

java.sql.SQLNonTransientConnectionException: 发生连接验证失败。原因:用户 ID 或口令无效。

用netbeans做JDBC连接数据库的时候突然出现的错误,本来以为是账户密码错了,但是修改之后依然报错,不知道该怎么解决了,讨论区域好像也没有这个****

java.sql.SQLNonTransientConnectionException: 发生连接验证失败。原因:用户 ID 或口令无效。
连接对象获取失败。
null
连接对象获取失败。
null
    at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
    at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
    at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(DriverManager.java:664)
    at java.sql.DriverManager.getConnection(DriverManager.java:247)
    at com.xhu.BusDb.getConn(BusDb.java:35)
    at com.xhu.BusDb.getBus(BusDb.java:49)
    at com.xhu.BusDb.main(BusDb.java:104)
Caused by: org.apache.derby.client.am.SqlException: 发生连接验证失败。原因:用户 ID 或口令无效。
    at org.apache.derby.client.net.NetConnection.mapSecchkcd(Unknown Source)
    at org.apache.derby.client.net.NetConnection.securityCheckComplete(Unknown Source)
    at org.apache.derby.client.net.NetConnectionReply.parseSECCHKRM(Unknown Source)
    at org.apache.derby.client.net.NetConnectionReply.parseSECCHKreply(Unknown Source)
连接对象获取失败。
null
    at org.apache.derby.client.net.NetConnectionReply.readSecurityCheck(Unknown Source)
    at org.apache.derby.client.net.NetConnection.readSecurityCheckAndAccessRdb(Unknown Source)
    at org.apache.derby.client.net.NetConnection.flowSecurityCheckAndAccessRdb(Unknown Source)
    at org.apache.derby.client.net.NetConnection.flowUSRIDPWDconnect(Unknown Source)
    at org.apache.derby.client.net.NetConnection.flowConnect(Unknown Source)
    at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
    at org.apache.derby.client.net.NetConnection40.<init>(Unknown Source)
    at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection(Unknown Source)
    ... 6 more
java.sql.SQLNonTransientConnectionException: 发生连接验证失败。原因:用户 ID 或口令无效。
    at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
    at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
    at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(DriverManager.java:664)
    at java.sql.DriverManager.getConnection(DriverManager.java:247)
    at com.xhu.BusDb.getConn(BusDb.java:35)
    at com.xhu.BusDb.BusUpdate(BusDb.java:83)
    at com.xhu.BusDb.main(BusDb.java:108)
Caused by: org.apache.derby.client.am.SqlException: 发生连接验证失败。原因:用户 ID 或口令无效。
    at org.apache.derby.client.net.NetConnection.mapSecchkcd(Unknown Source)
    at org.apache.derby.client.net.NetConnection.securityCheckComplete(Unknown Source)
    at org.apache.derby.client.net.NetConnectionReply.parseSECCHKRM(Unknown Source)
    at org.apache.derby.client.net.NetConnectionReply.parseSECCHKreply(Unknown Source)
    at org.apache.derby.client.net.NetConnectionReply.readSecurityCheck(Unknown Source)
    at org.apache.derby.client.net.NetConnection.readSecurityCheckAndAccessRdb(Unknown Source)
    at org.apache.derby.client.net.NetConnection.flowSecurityCheckAndAccessRdb(Unknown Source)
    at org.apache.derby.client.net.NetConnection.flowUSRIDPWDconnect(Unknown Source)
    at org.apache.derby.client.net.NetConnection.flowConnect(Unknown Source)
    at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
    at org.apache.derby.client.net.NetConnection40.<init>(Unknown Source)
    at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection(Unknown Source)
    ... 6 more
java.sql.SQLNonTransientConnectionException: 发生连接验证失败。原因:用户 ID 或口令无效。
    at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
    at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
    at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(DriverManager.java:664)
    at java.sql.DriverManager.getConnection(DriverManager.java:247)
    at com.xhu.BusDb.getConn(BusDb.java:35)
    at com.xhu.BusDb.getBus(BusDb.java:49)
    at com.xhu.BusDb.main(BusDb.java:109)
Caused by: org.apache.derby.client.am.SqlException: 发生连接验证失败。原因:用户 ID 或口令无效。
    at org.apache.derby.client.net.NetConnection.mapSecchkcd(Unknown Source)
    at org.apache.derby.client.net.NetConnection.securityCheckComplete(Unknown Source)
    at org.apache.derby.client.net.NetConnectionReply.parseSECCHKRM(Unknown Source)
    at org.apache.derby.client.net.NetConnectionReply.parseSECCHKreply(Unknown Source)
    at org.apache.derby.client.net.NetConnectionReply.readSecurityCheck(Unknown Source)
    at org.apache.derby.client.net.NetConnection.readSecurityCheckAndAccessRdb(Unknown Source)
    at org.apache.derby.client.net.NetConnection.flowSecurityCheckAndAccessRdb(Unknown Source)
    at org.apache.derby.client.net.NetConnection.flowUSRIDPWDconnect(Unknown Source)
    at org.apache.derby.client.net.NetConnection.flowConnect(Unknown Source)
    at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
    at org.apache.derby.client.net.NetConnection40.<init>(Unknown Source)
    at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection(Unknown Source)
    ... 6 more

上述为错误字节,还求大佬解释解释!!

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

2条回答 默认 最新

  • threenewbee 2020-08-07 21:47
    最佳回答
    评论
    解决 无用
    打赏 举报
查看更多回答(1条)

相关推荐 更多相似问题