Dear Team,
I am a novice to oreint DB I get the below message when I run my java
program trying to access OreintDB. looking forward for help
Sep 15, 2015 11:08:55 AM com.orientechnologies.common.log.OLogManager log
INFO: OrientDB auto-config DISKCACHE=1,023MB (heap=1,024MB os=4,095MB
disk=27,784MB)
Exception in thread "Main Thread" java.lang.NoSuchMethodError: acquire
at
com.orientechnologies.orient.jdbc.OrientJdbcConnection.<init>(OrientJdbcConnection.java:64)
at
com.orientechnologies.orient.jdbc.OrientJdbcDriver.connect(OrientJdbcDriver.java:46)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at OreintDB.Oreint.main(Oreint.java:38)
*MY JAVA API IS*
import java.sql.*;
import java.util.Properties;
import com.orientechnologies.orient.jdbc.OrientJdbcConnection;
import static java.sql.ResultSet.CONCUR_READ_ONLY;
import static java.sql.ResultSet.HOLD_CURSORS_OVER_COMMIT;
import static java.sql.ResultSet.TYPE_FORWARD_ONLY;
class Oreint
{
public static void main(String args[]) throws SQLException
{
//ODatabaseDocumentTx db = new
ODatabaseDocumentTx("remote:localhost/raju").create();
try{
Class.forName("com.orientechnologies.orient.jdbc.OrientJdbcDriver");
/* declare admin credentials */
Properties credentials = new Properties();
credentials.put("user","admin");
credentials.put("password","admin");
/* obtain a connection */
Connection conn =
(OrientJdbcConnection)DriverManager.getConnection("jdbc:orient:remote:localhost/GratefulDeadConcerts",credentials);//
DriverManager.getConnection("jdbc:orient:remote:localhost/GratefulDeadConcerts",credentials);
Statement stmt =
conn.createStatement();//(OrientJdbcStatement)conn.createStatement();
ResultSet rs = stmt.executeQuery("select from
OUser");//(OrientJdbcResultSet) stmt.executeQuery("select from OUser");
/* perform a query */
/* consume the resultset */
while (rs.next()) {
String title = rs.getString(0);
String text = rs.getString(1);
System.out.printf("%s\n%s\n%s\n\n\n",title,text);
}
rs.close();
stmt.close();
conn.close();
}
catch(Exception err)
{
err.printStackTrace();
}
System.out.println("welcome to oreint db");
}
}
Thanking You,
Lova Raju
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.