You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "www-haifeng (via GitHub)" <gi...@apache.org> on 2023/05/26 09:38:30 UTC

[GitHub] [shardingsphere] www-haifeng opened a new issue, #25909: Caused by: org.apache.ibatis.exceptions.PersistenceException:

www-haifeng opened a new issue, #25909:
URL: https://github.com/apache/shardingsphere/issues/25909

   Caused by: org.apache.ibatis.exceptions.PersistenceException: 
   ### Error updating database.  Cause: java.lang.IllegalArgumentException
   ### The error may exist in file [E:\dev\hdl-report-srv\out\production\resources\mybatis\report\mapper\RewardAccountReportMapper.xml]
   ### The error may involve com.ai.hdl.report.domain.report.service.repository.mapper.interfaces.RewardAccountReportMapper.batchInsert-Inline
   ### The error occurred while setting parameters
   ### SQL: insert into reward_account_report     (month_date, mcht_id, incentive_policy, dealer_name, dealer_scm_code, common_name,        pickup_number, rebate_standard, calculate_amount, recharge_amount, unrecharge_amount,        reward_type, remark_one, remark_two, data_state, created_by, created_time, updated_by,        updated_time)     values              (?, ?, ?,          ?, ?, ?,          ?, ?,          ?, ?,          ?, ?,          ?, ?, ?,          ?, ?, ?,          ?)      ,        (?, ?, ?,          ?, ?, ?,          ?, ?,          ?, ?,          ?, ?,          ?, ?, ?,          ?, ?, ?,          ?)
   ### Cause: java.lang.IllegalArgumentException
   	at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30) ~[mybatis-3.5.5.jar:3.5.5]
   	at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:199) ~[mybatis-3.5.5.jar:3.5.5]
   	at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:184) ~[mybatis-3.5.5.jar:3.5.5]
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_281]
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_281]
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_281]
   	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_281]
   	at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426) ~[mybatis-spring-2.0.5.jar:2.0.5]
   	... 173 more
   Caused by: java.lang.IllegalArgumentException
   	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:128) ~[guava-30.1-jre.jar:?]
   	at org.apache.shardingsphere.core.strategy.keygen.SnowflakeShardingKeyGenerator.getWorkerId(SnowflakeShardingKeyGenerator.java:133) ~[sharding-core-common-4.1.1.jar:4.1.1]
   	at org.apache.shardingsphere.core.strategy.keygen.SnowflakeShardingKeyGenerator.generateKey(SnowflakeShardingKeyGenerator.java:116) ~[sharding-core-common-4.1.1.jar:4.1.1]
   	at org.apache.shardingsphere.core.rule.ShardingRule.generateKey(ShardingRule.java:323) ~[sharding-core-common-4.1.1.jar:4.1.1]
   	at org.apache.shardingsphere.sharding.route.engine.condition.engine.InsertClauseShardingConditionEngine.lambda$getGeneratedKeys$0(InsertClauseShardingConditionEngine.java:117) ~[sharding-core-route-4.1.1.jar:4.1.1]
   	at java.util.stream.IntPipeline$4$1.accept(IntPipeline.java:250) ~[?:1.8.0_281]
   	at java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:110) ~[?:1.8.0_281]
   	at java.util.Spliterator$OfInt.forEachRemaining(Spliterator.java:693) ~[?:1.8.0_281]
   	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_281]
   	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_281]
   	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_281]
   	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_281]
   	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[?:1.8.0_281]
   	at org.apache.shardingsphere.sharding.route.engine.condition.engine.InsertClauseShardingConditionEngine.getGeneratedKeys(InsertClauseShardingConditionEngine.java:117) ~[sharding-core-route-4.1.1.jar:4.1.1]
   	at org.apache.shardingsphere.sharding.route.engine.condition.engine.InsertClauseShardingConditionEngine.createShardingConditions(InsertClauseShardingConditionEngine.java:69) ~[sharding-core-route-4.1.1.jar:4.1.1]
   	at org.apache.shardingsphere.sharding.route.engine.ShardingRouteDecorator.getShardingConditions(ShardingRouteDecorator.java:80) ~[sharding-core-route-4.1.1.jar:4.1.1]
   	at org.apache.shardingsphere.sharding.route.engine.ShardingRouteDecorator.decorate(ShardingRouteDecorator.java:62) ~[sharding-core-route-4.1.1.jar:4.1.1]
   	at org.apache.shardingsphere.sharding.route.engine.ShardingRouteDecorator.decorate(ShardingRouteDecorator.java:53) ~[sharding-core-route-4.1.1.jar:4.1.1]
   	at org.apache.shardingsphere.underlying.route.DataNodeRouter.executeRoute(DataNodeRouter.java:91) ~[shardingsphere-route-4.1.1.jar:4.1.1]
   	at org.apache.shardingsphere.underlying.route.DataNodeRouter.route(DataNodeRouter.java:76) ~[shardingsphere-route-4.1.1.jar:4.1.1]
   	at org.apache.shardingsphere.underlying.pluggble.prepare.PreparedQueryPrepareEngine.route(PreparedQueryPrepareEngine.java:54) ~[shardingsphere-pluggable-4.1.1.jar:4.1.1]
   	at org.apache.shardingsphere.underlying.pluggble.prepare.BasePrepareEngine.executeRoute(BasePrepareEngine.java:96) ~[shardingsphere-pluggable-4.1.1.jar:4.1.1]
   	at org.apache.shardingsphere.underlying.pluggble.prepare.BasePrepareEngine.prepare(BasePrepareEngine.java:83) ~[shardingsphere-pluggable-4.1.1.jar:4.1.1]
   	at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.prepare(ShardingPreparedStatement.java:183) ~[sharding-jdbc-core-4.1.1.jar:4.1.1]
   	at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.execute(ShardingPreparedStatement.java:143) ~[sharding-jdbc-core-4.1.1.jar:4.1.1]
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_281]
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_281]
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_281]
   	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_281]
   	at org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:59) ~[mybatis-3.5.5.jar:3.5.5]
   	at com.sun.proxy.$Proxy237.execute(Unknown Source) ~[?:?]
   	at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:47) ~[mybatis-3.5.5.jar:3.5.5]
   	at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:74) ~[mybatis-3.5.5.jar:3.5.5]
   	at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:50) ~[mybatis-3.5.5.jar:3.5.5]
   	at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117) ~[mybatis-3.5.5.jar:3.5.5]
   	at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:76) ~[mybatis-3.5.5.jar:3.5.5]
   	at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:197) ~[mybatis-3.5.5.jar:3.5.5]
   	at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:184) ~[mybatis-3.5.5.jar:3.5.5]
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_281]
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_281]
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_281]
   	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_281]
   	at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426) ~[mybatis-spring-2.0.5.jar:2.0.5]
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Caused by: org.apache.ibatis.exceptions.PersistenceException: [shardingsphere]

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu closed issue #25909: Caused by: org.apache.ibatis.exceptions.PersistenceException: 
URL: https://github.com/apache/shardingsphere/issues/25909


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Caused by: org.apache.ibatis.exceptions.PersistenceException: [shardingsphere]

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on issue #25909:
URL: https://github.com/apache/shardingsphere/issues/25909#issuecomment-2212462354

   The version is out of service, please try new version.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] sandynz commented on issue #25909: Caused by: org.apache.ibatis.exceptions.PersistenceException:

Posted by "sandynz (via GitHub)" <gi...@apache.org>.
sandynz commented on issue #25909:
URL: https://github.com/apache/shardingsphere/issues/25909#issuecomment-1566366314

   Hi @www-haifeng , looks you're running version `4.1.1`, and there's invalid worker id, could you debug to check why worker id is invalid?
   
   And does it work in other project or table?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Caused by: org.apache.ibatis.exceptions.PersistenceException: [shardingsphere]

Posted by "shardcn (via GitHub)" <gi...@apache.org>.
shardcn commented on issue #25909:
URL: https://github.com/apache/shardingsphere/issues/25909#issuecomment-2413284322

   you may write issues of version 4.1.1 here :https://gitee.com/shardcn/shardingsphere_4.1.1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org