MySQL Forums
Forum List  »  Connector/JDBC and Java

ndb-bindings : JVM crash while tring to connect to NDB Cluster from java.
Posted by: Arun Kumar
Date: November 06, 2012 09:04PM

Hi All,

I have an Java application which is using ndb-bindings 0.7.1 to access NDB cluster.

I encountered an JVM crahs, when my application tried to connect to NDB CLuster.

Following is the steps followed:

1) NdbClusterConnection conn = NdbClusterConnection.create(serverUrl)
2) conn.connect(5, 3, true)
3) conn.waitUntilReady(5, 5);
4) Ndb ndb = conn.createNdb(dbName, 10);
5) NdbDictionary dictionary = ndb.getDictionary();
6) NdbTable table=dictionary.getTable(tableName);

JVM Crash happened at Step 6. Following is the JVM stack trace :

Stack: [0x0000000042eba000,0x0000000042edb000], sp=0x0000000042ed8c50, free space=123k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [] my_stat+0x10d

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.mysql.cluster.ndbj.NdbjJNI.NdbDictionary_getTable(JLcom/mysql/cluster/ndbj/NdbDictionary;Ljava/lang/String;)J+0
j com.mysql.cluster.ndbj.NdbDictionary.getTable(Ljava/lang/String;)Lcom/mysql/cluster/ndbj/NdbTable;+6
j java.ndbclient.ndb.SchemaReader.readTableSchema(Ljava/lang/String;)Ljava/ndbclient/schema/EntitySchema;+31
j java.ndbclient.ndb.NdbConnection.readSchema()Ljava/util/Map;+71
j java.ndbclient.ndb.NdbConnection.connect()V+220
j java.ndbclient.ndb.NdbConnection.access$100(Ljava/ndbclient/ndb/NdbConnection;)V+1
j java.ndbclient.ndb.NdbConnection$

Can someone help me in identifying the reason for the crash and guide in the right direction for understanding this crash.

Also was this crash (or similar crash) encountered by anyone and was there any fix or workaround.

Your help & suggestion is greatly appreciated.


Options: ReplyQuote

Written By
ndb-bindings : JVM crash while tring to connect to NDB Cluster from java.
November 06, 2012 09:04PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.