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

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条)

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 1月18日
  • 已采纳回答 1月18日

悬赏问题

  • ¥15 关于Java对接海康威视车牌识别一体机SDK是否需要固定外网的IP?
  • ¥15 Linux扩容时,格式化卡住了:vgdispaly查看卷组信息,没有输出
  • ¥18 关于#ubuntu#的问题:使用背景-工作职责内有七八台ubuntu系统的电脑,平时需要互相调取资料,想实现把这几台电脑用交换机组成一个局域网,来实现指定文件夹的互相调取和写入
  • ¥20 求一个简易射频信号综测仪
  • ¥15 esp8266 tally灯 接收端改为发射端
  • ¥30 Labview代码调用access 数据库,相同代码其中一个调用不出来是为什么
  • ¥15 基于51单片机的交通灯系统,找改程序有点急
  • ¥15 java启动jar包后,运行过程中宕机
  • ¥15 进行LM运算过程中出现了无法识别的问题,具体问题如下图
  • ¥500 高有偿提问!求优化设计微信小程序