Hi
I'm trying to connect to database with jdbc in netbeans.
I use this code :
String host = "jdbc:derby://localhost:1527/MIRDataBase [mir on MIR]"; String name = "mir"; String pass = "mir" ; con = DriverManager.getConnection( host, name ,pass );
as you see I set username and password but I get this error :
Jan 07, 2013 4:02:19 PM DataBase.Crawler_DataBase <init> SEVERE: null java.sql.SQLNonTransientConnectionException: User id length (0) is outside the range of 1 to 255. 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:579) at java.sql.DriverManager.getConnection(DriverManager.java:221) at DataBase.Crawler_DataBase.<init>(Crawler_DataBase.java:33) at crawler.WebCrawler.<init>(WebCrawler.java:28) at webScanner.WebResourceScanner.main(WebResourceScanner.java:62) Caused by: org.apache.derby.client.am.SqlException: User id length (0) is outside the range of 1 to 255. at org.apache.derby.client.net.NetConnection.checkUserLength(Unknown Source) at org.apache.derby.client.net.NetConnection.checkUser(Unknown Source) at org.apache.derby.client.net.NetConnection.checkUserPassword(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
I've attached my db properties
Does anybody know what's wrong with my connection ?
Thank you