Whenever I try to use the “render_complex_sql” method (java connector ver. 15_120612) Tomcat returns the error. For the sake of clarity I run the “render_complex_sql” method on your sample which comes with java connector v1.5 download. I ran the sample substituting “render_sql” method to “render_complex_sql” in “tree_03_sql_connector” class and got the error
27.08.2012 19:12:44 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet tree_03_sql_config_connector threw exception
java.lang.StackOverflowError
at com.mysql.jdbc.Util.handleNewInstance(Util.java:429)
at com.mysql.jdbc.ResultSetImpl.getInstance(ResultSetImpl.java:382)
at com.mysql.jdbc.MysqlIO.buildResultSetWithRows(MysqlIO.java:2604)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:487)
at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:2582)
at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:1758)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2172)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2690)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2619)
at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:783)
at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:626)
at com.dhtmlx.connector.DBDataWrapper.query(DBDataWrapper.java:362)
at com.dhtmlx.connector.DBDataWrapper.select(DBDataWrapper.java:214)
at com.dhtmlx.connector.TreeRenderStrategy.render_set(TreeRenderStrategy.java:37)
……………………
at com.dhtmlx.connector.TreeRenderStrategy.render_set(TreeRenderStrategy.java:37)
Two original files were changed (“tree_03_sql_connector.java”- as said above, and “DataBaseConnection.java”- to connect to MySql database) all the rest were left untouched.
What is the problem? I need to run stored procedure somehow.
Best regards