用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
上述为错误字节,还求大佬解释解释!!