I am trying to connect to D3 Database with MVSP java api. So far:
- I have downloaded the
mvapi.jar
- added it in project
lib
folder written the sample code for connection inside
main
methodString url = "jdbc:mv:d3:hostname:portNo"; Properties props = new Properties(); props.setProperty("username", ""); props.setProperty("password", ""); String account = "AGCO"; String password = ""; MVConnection connection = null; try { // Getting error at this point connection = new MVConnection(url,props); MVStatement mvStatement = connection.createStatement(); connection.logTo(account,password); MVResultSet results = mvStatement.executeQuery(query); }
com.tigr.mvapi.exceptions.MVException: server error with errorCode 1023.
I checked the console but I'm not able to figure out the actual cause or whether I am entering the wrong username, password.
Please suggest what I am doing wrong.