Hi,

this problem seems to be strongly related to classpath issues, please make
sure that you have only one version of OrientDB and JDBC driver in your
classpath.
Could you please also post your server logs?

Thanks

Luigi


2015-09-22 7:33 GMT+02:00 <[email protected]>:

> Hi Luigi,
>
> I feel connection is not getting aquired
> by the error msg java.lang.NoSuchMethodError:acquire ... <init>(
> OrientJdbcConnection.java:64) ...
>
> thanks,
> With Regards,
> Lova Raju Allumalla
>
> On Tuesday, September 15, 2015 at 12:52:15 PM UTC+5:30,
> [email protected] wrote:
>
>> 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.
>

-- 

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