Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.ArrayIndexOutOfBoundsException #1419

Closed
helloqhx opened this issue Nov 2, 2018 · 4 comments
Closed

java.lang.ArrayIndexOutOfBoundsException #1419

helloqhx opened this issue Nov 2, 2018 · 4 comments

Comments

@helloqhx
Copy link

helloqhx commented Nov 2, 2018

I use sharding-jdbc to batch insert to mysql.
sharding key: a varchar column, e.g.hash
database sharding algorithm: hash.charAt(0) % 3
table sharding algorithm: hash.charAt(0) % 4

when i do batch insert with sharding-jdbc:

Exception in thread "Thread-1" java.lang.ArrayIndexOutOfBoundsException: 1
at io.shardingsphere.shardingjdbc.executor.BatchPreparedStatementExecutor.accumulate(BatchPreparedStatementExecutor.java:176)
at io.shardingsphere.shardingjdbc.executor.BatchPreparedStatementExecutor.executeBatch(BatchPreparedStatementExecutor.java:168)
at io.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.executeBatch(ShardingPreparedStatement.java:236)
at org.apache.commons.dbutils.QueryRunner.batch(QueryRunner.java:192)
at org.apache.commons.dbutils.QueryRunner.batch(QueryRunner.java:151)

@terrymanu
Copy link
Member

Could you provide more details follow the template?

Template:

Bug Report

For English only, other languages will not accept.

Before report a bug, make sure you have:

Please pay attention on issues you submitted, because we maybe need more details.
If no response more than 7 days and we cannot reproduce it on current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Which version of Sharding-Sphere did you use?

Which project did you use? Sharding-JDBC or Sharding-Proxy?

Expected behavior

Actual behavior

Reason analyze (If you can)

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

Example codes for reproduce this issue (such as a github link).

@terrymanu
Copy link
Member

Hi, any update on this issue? we will close this issue after 2 days if no more response.

@terrymanu
Copy link
Member

If no response more than 7 days and we cannot reproduce it on current information, we will close it.

@guid-git
Copy link

guid-git commented Dec 16, 2020

I use sharding-jdbc to batch insert to mysql.
sharding key: a varchar column, e.g.hash
database sharding algorithm: hash.charAt(0) % 3
table sharding algorithm: hash.charAt(0) % 4

when i do batch insert with sharding-jdbc:

Exception in thread "Thread-1" java.lang.ArrayIndexOutOfBoundsException: 1
at io.shardingsphere.shardingjdbc.executor.BatchPreparedStatementExecutor.accumulate(BatchPreparedStatementExecutor.java:176)
at io.shardingsphere.shardingjdbc.executor.BatchPreparedStatementExecutor.executeBatch(BatchPreparedStatementExecutor.java:168)
at io.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.executeBatch(ShardingPreparedStatement.java:236)
at org.apache.commons.dbutils.QueryRunner.batch(QueryRunner.java:192)
at org.apache.commons.dbutils.QueryRunner.batch(QueryRunner.java:151)

have you solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants