Skip to Content
0

Getting exception while using preparedStatement Hana

Jan 04 at 10:50 AM

42

avatar image
Former Member

I am trying to use ngdbc 1.00.92 in a project to use HANA as my storage. When the framework is executing an insert statement by preparing it, I am getting the following stacktrace

[vert.x-worker-thread-4] DEBUG com.mchange.v2.c3p0.impl.NewPooledConnection - com.mchange.v2.c3p0.impl.NewPooledConnection@2ca2b427 handling a throwable. java.lang.UnsupportedOperationException: Method prepareStatement() is not yet implemented. at com.sap.db.jdbc.ConnectionSapDB.prepareStatement(ConnectionSapDB.java:1926) at com.sap.db.jdbc.trace.Connection.prepareStatement(Connection.java:393) at com.mchange.v2.c3p0.impl.NewProxyConnection.prepareStatement(NewProxyConnection.java:263) at io.vertx.ext.jdbc.impl.actions.JDBCUpdate.prepareStatement(JDBCUpdate.java:80) at io.vertx.ext.jdbc.impl.actions.JDBCUpdate.execute(JDBCUpdate.java:85) at io.vertx.ext.jdbc.impl.actions.JDBCUpdate.execute(JDBCUpdate.java:31) at io.vertx.ext.jdbc.impl.actions.AbstractJDBCAction.handle(AbstractJDBCAction.java:58) at io.vertx.ext.jdbc.impl.actions.AbstractJDBCAction.lambda$execute$0(AbstractJDBCAction.java:66) at io.vertx.core.impl.ContextImpl.lambda$executeBlocking$1(ContextImpl.java:278) at io.vertx.core.impl.TaskQueue.run(TaskQueue.java:80) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 15:58:27.976 [vert.x-worker-thread-4] DEBUG com.mchange.v2.sql.SqlUtils - Converting Throwable to SQLException... java.lang.UnsupportedOperationException: Method prepareStatement() is not yet implemented. at com.sap.db.jdbc.ConnectionSapDB.prepareStatement(ConnectionSapDB.java:1926) at com.sap.db.jdbc.trace.Connection.prepareStatement(Connection.java:393) at com.mchange.v2.c3p0.impl.NewProxyConnection.prepareStatement(NewProxyConnection.java:263) at io.vertx.ext.jdbc.impl.actions.JDBCUpdate.prepareStatement(JDBCUpdate.java:80) at io.vertx.ext.jdbc.impl.actions.JDBCUpdate.execute(JDBCUpdate.java:85) at io.vertx.ext.jdbc.impl.actions.JDBCUpdate.execute(JDBCUpdate.java:31) at io.vertx.ext.jdbc.impl.actions.AbstractJDBCAction.handle(AbstractJDBCAction.java:58) at io.vertx.ext.jdbc.impl.actions.AbstractJDBCAction.lambda$execute$0(AbstractJDBCAction.java:66) at io.vertx.core.impl.ContextImpl.lambda$executeBlocking$1(ContextImpl.java:278) at io.vertx.core.impl.TaskQueue.run(TaskQueue.java:80) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

I am not sure if the error is correct since there is another project in which we use the same driver with Hibernate and it works. Could anyone please point out what is going wrong here?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers