shardingsphere Cannot invoke method mod() on null object

家电修理 2023-07-16 19:17www.caominkang.com电器维修

Cannot invoke method mod() on null object
at .codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:91) ~[groovy-2.4.5-indy.jar:2.4.5]
at .codehaus.groovy.runtime.callsite.PogometaClassSite.call(PogometaClassSite.java:48) ~[groovy-2.4.5-indy.jar:2.4.5]
at .codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) ~[groovy-2.4.5-indy.jar:2.4.5]
at .codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:35) ~[groovy-2.4.5-indy.jar:2.4.5]
at .codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) ~[groovy-2.4.5-indy.jar:2.4.5]
at .codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) ~[groovy-2.4.5-indy.jar:2.4.5]
at .codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) ~[groovy-2.4.5-indy.jar:2.4.5]

shardingsphere 分片报错

###Error updating database. Cause: java.lang.NullPointerException: Cannot invoke method mod() on null object
###The error may exist in /shardingjdbc/mapper/CourseMapper.java (best guess)
###The error may involve .shardingjdbc.mapper.CourseMapper.insert-Inline
###The error ourred hile setting parameters
###SQL: INSERT INTO course ( id, name, user_id, status ) VALUES ( ?, ?, ?, ? )
###Cause: java.lang.NullPointerException: Cannot invoke method mod() on null object] ith root cause

java.lang.NullPointerException: Cannot invoke method mod() on null object

原因

Copyright © 2016-2025 www.caominkang.com 曹敏电脑维修网 版权所有 Power by