about the monetdb jdbc problem
An exception(see the bottom stack) was thrown when I use the JDBC driver(monetdb-jdbc-2.10.jar, MonetDB Database Server v1.7 (Feb2013-SP4) ) on linux(Linux *** 2.6.18-164.11.1.el5 #1 SMP Wed Jan 6 13:26:04 EST 2010 x86_64 x86_64 x86_64 GNU/Linux), but with the same code no exceptions are thrown on windows7 When DML SQL is executed by preparestatement(or Statement) I Just got the exception on linux, can anyone tell me what happened. Exception in thread "main" java.lang.IndexOutOfBoundsException at java.nio.StringCharBuffer.subSequence(StringCharBuffer.java:92) at nl.cwi.monetdb.mcl.parser.StartOfHeaderParser.getNextAsString(StartOfHeaderP arser.java:146) at nl.cwi.monetdb.jdbc.MonetConnection$ResponseList.executeQuery(MonetConnectio n.java:2394) at nl.cwi.monetdb.jdbc.MonetConnection$ResponseList.processQuery(MonetConnectio n.java:2284) at nl.cwi.monetdb.jdbc.MonetStatement.internalExecute(MonetStatement.java:508) at nl.cwi.monetdb.jdbc.MonetStatement.internalBatch(MonetStatement.java:261) at nl.cwi.monetdb.jdbc.MonetStatement.executeBatch(MonetStatement.java:230) at MonetdbBenchmark.insert(MonetdbBenchmark.java:50) at MonetdbBenchmark.main(MonetdbBenchmark.java:19)
On 28-12-2013 14:19:11 +0800, 少湖 wrote:
An exception(see the bottom stack) was thrown when I use the JDBC driver(monetdb-jdbc-2.10.jar, MonetDB Database Server v1.7 (Feb2013-SP4) ) on linux(Linux *** 2.6.18-164.11.1.el5 #1 SMP Wed Jan 6 13:26:04 EST 2010 x86_64 x86_64 x86_64 GNU/Linux), but with the same code no exceptions are thrown on windows7
Can you please try with Feb2013-SP6? If the problem persists, please run your code with a JDBC debug URI, e.g. append "&debug=true" to your connect URI in your MonetdbBenchmark. That will generate a monet_XXXXXXXXXXX.log file that can help to resolve this problem. You can file it as bug on bugs.monetdb.org, and attach the file there. Thank you -- Fabian Groffen fabian@monetdb.org
Hi, I have installed the 2013-sp6 version, but the problem still not fixed, the bug information is attached. Here is how the jdbc is used: 1. getConnection 2. createStatement 3. Statement. executeUpdate(DDL) 4. Statement. executeUpdate(DML) Then I got the exception just as PreparedStatement.executeBatch: Exception in thread "main" java.lang.IndexOutOfBoundsException at java.nio.StringCharBuffer.subSequence(StringCharBuffer.java:92) at nl.cwi.monetdb.mcl.parser.StartOfHeaderParser.getNextAsString(StartOfHeaderParser.java:146) at nl.cwi.monetdb.jdbc.MonetConnection$ResponseList.executeQuery(MonetConnection.java:2394) at nl.cwi.monetdb.jdbc.MonetConnection$ResponseList.processQuery(MonetConnection.java:2284) at nl.cwi.monetdb.jdbc.MonetStatement.internalExecute(MonetStatement.java:508) at nl.cwi.monetdb.jdbc.MonetStatement.execute(MonetStatement.java:349) at nl.cwi.monetdb.jdbc.MonetStatement.executeUpdate(MonetStatement.java:544) at MonetdbBenchmark.insert(MonetdbBenchmark.java:38) at MonetdbBenchmark.main(MonetdbBenchmark.java:19) Thank you -----邮件原件----- 发件人: developers-list [mailto:developers-list-bounces+shuifeng.lsf=taobao.com@monetdb.org] 代表 Fabian Groffen 发送时间: 2013年12月28日 15:55 收件人: developers-list@monetdb.org 主题: Re: about the monetdb jdbc problem On 28-12-2013 14:19:11 +0800, 少湖 wrote:
An exception(see the bottom stack) was thrown when I use the JDBC driver(monetdb-jdbc-2.10.jar, MonetDB Database Server v1.7 (Feb2013-SP4) ) on linux(Linux *** 2.6.18-164.11.1.el5 #1 SMP Wed Jan 6 13:26:04 EST 2010 x86_64 x86_64 x86_64 GNU/Linux), but with the same code no exceptions are thrown on windows7
Can you please try with Feb2013-SP6? If the problem persists, please run your code with a JDBC debug URI, e.g. append "&debug=true" to your connect URI in your MonetdbBenchmark. That will generate a monet_XXXXXXXXXXX.log file that can help to resolve this problem. You can file it as bug on bugs.monetdb.org, and attach the file there. Thank you -- Fabian Groffen fabian@monetdb.org
participants (2)
-
Fabian Groffen
-
少湖