Hi,

It seems you are using incompatible versions of OrientDB and JDBC driver,
could you please check all the versions? Where did you download them? From
the official website or from an external source?

Thanks

Luigi


2015-09-15 7:54 GMT+02:00 <[email protected]>:

> Dear Team,
>
> Need Your Help !.........
>
> I am a novice to oreint DB. I have written a java API to interact with
> Oreint DB but I am getting the below error
>
> 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 *
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *package OreintDB;import java.sql.*;import java.util.Properties;  import
> com.orientechnologies.orient.jdbc.OrientJdbcDriver; 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{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");}}*
>
> --
>
> ---
> 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.
>

-- 

--- 
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.

Reply via email to