Error evaluating解决xpression ‘ew.sqlSegment != null and ew.sqlSegment != ‘‘ and ew.nonEmptyOfWhere‘.

(看文章之前要排除,自身的代码bug,本文是在本身代码没问题的基础上,依赖包版本过低导致的)
先上错误和描述,使用的mybatisplus插件,开始用的是3.1.1版本,然后本地运行项目没有问题,之前将项目打包成war包,也没问题,可以在服务器上正常运行。
Error evaluating解决xpression ‘ew.sqlSegment != null and ew.sqlSegment != ‘‘ and ew.nonEmptyOfWhere‘._第1张图片
但是要求,将项目打包成jar包,本地没有问题,使用项目分离的形式进行打包,并且在服务器上运行的时候,在使用到lambda表达式的代码报错,如下:
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression ‘ew.sqlSegment != null and ew.sqlSegment != ‘’ and ew.nonEmptyOfWhere’. Cause: org.apache.ibatis.ognl.OgnlException: sqlSegment [com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: This is impossible to happen]
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:77)
at org.mybatis.spring.SqlSessionTemplate S q l S e s s i o n I n t e r c e p t o r . i n v o k e ( S q l S e s s i o n T e m p l a t e . j a v a : 446 ) a t c o m . s u n . p r o x y . SqlSessionInterceptor.invoke(SqlSessionTemplate.java:446) at com.sun.proxy. SqlSessionInterceptor.invoke(SqlSessionTemplate.java:446)atcom.sun.proxy.Proxy76.selectList(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:230)
at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:168)
at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:82)
at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:61)
at com.sun.proxy. P r o x y 112. s e l e c t L i s t ( U n k n o w n S o u r c e ) a t c o m . b a o m i d o u . m y b a t i s p l u s . e x t e n s i o n . s e r v i c e . i m p l . S e r v i c e I m p l . l i s t ( S e r v i c e I m p l . j a v a : 272 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . e x t e n s i o n . s e r v i c e . i m p l . S e r v i c e I m p l Proxy112.selectList(Unknown Source) at com.baomidou.mybatisplus.extension.service.impl.ServiceImpl.list(ServiceImpl.java:272) at com.baomidou.mybatisplus.extension.service.impl.ServiceImpl Proxy112.selectList(UnknownSource)atcom.baomidou.mybatisplus.extension.service.impl.ServiceImpl.list(ServiceImpl.java:272)atcom.baomidou.mybatisplus.extension.service.impl.ServiceImpl F a s t C l a s s B y S p r i n g C G L I B FastClassBySpringCGLIB FastClassBySpringCGLIB 76535273. i n v o k e ( < g e n e r a t e d > ) a t o r g . s p r i n g f r a m e w o r k . c g l i b . p r o x y . M e t h o d P r o x y . i n v o k e ( M e t h o d P r o x y . j a v a : 218 ) a t o r g . s p r i n g f r a m e w o r k . a o p . f r a m e w o r k . C g l i b A o p P r o x y 76535273.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy 76535273.invoke(<generated>)atorg.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)atorg.springframework.aop.framework.CglibAopProxyDynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)
at cn.com.chnsys.ecms.base.service.impl.TrialPlanServiceImpl E n h a n c e r B y S p r i n g C G L I B EnhancerBySpringCGLIB EnhancerBySpringCGLIB8a6aca8f.list()
at cn.com.chnsys.ecms.interfaces.jz.hy.EcmsThread.getTrialPlans(EcmsThread.java:147)
at cn.com.chnsys.ecms.interfaces.jz.hy.EcmsThread.run(EcmsThread.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor W o r k e r . r u n ( T h r e a d P o o l E x e c u t o r . j a v a : 624 ) a t j a v a . l a n g . T h r e a d . r u n ( T h r e a d . j a v a : 748 ) C a u s e d b y : o r g . a p a c h e . i b a t i s . b u i l d e r . B u i l d e r E x c e p t i o n : E r r o r e v a l u a t i n g e x p r e s s i o n ′ e w . s q l S e g m e n t ! = n u l l a n d e w . s q l S e g m e n t ! = ′ ′ a n d e w . n o n E m p t y O f W h e r e ′ . C a u s e : o r g . a p a c h e . i b a t i s . o g n l . O g n l E x c e p t i o n : s q l S e g m e n t [ c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . e x c e p t i o n s . M y b a t i s P l u s E x c e p t i o n : T h i s i s i m p o s s i b l e t o h a p p e n ] a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . O g n l C a c h e . g e t V a l u e ( O g n l C a c h e . j a v a : 48 ) a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . E x p r e s s i o n E v a l u a t o r . e v a l u a t e B o o l e a n ( E x p r e s s i o n E v a l u a t o r . j a v a : 32 ) a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . I f S q l N o d e . a p p l y ( I f S q l N o d e . j a v a : 34 ) a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . M i x e d S q l N o d e . l a m b d a Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.ibatis.builder.BuilderException: Error evaluating expression 'ew.sqlSegment != null and ew.sqlSegment != '' and ew.nonEmptyOfWhere'. Cause: org.apache.ibatis.ognl.OgnlException: sqlSegment [com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: This is impossible to happen] at org.apache.ibatis.scripting.xmltags.OgnlCache.getValue(OgnlCache.java:48) at org.apache.ibatis.scripting.xmltags.ExpressionEvaluator.evaluateBoolean(ExpressionEvaluator.java:32) at org.apache.ibatis.scripting.xmltags.IfSqlNode.apply(IfSqlNode.java:34) at org.apache.ibatis.scripting.xmltags.MixedSqlNode.lambda Worker.run(ThreadPoolExecutor.java:624)atjava.lang.Thread.run(Thread.java:748)Causedby:org.apache.ibatis.builder.BuilderException:Errorevaluatingexpressionew.sqlSegment!=nullandew.sqlSegment!=andew.nonEmptyOfWhere.Cause:org.apache.ibatis.ognl.OgnlException:sqlSegment[com.baomidou.mybatisplus.core.exceptions.MybatisPlusException:Thisisimpossibletohappen]atorg.apache.ibatis.scripting.xmltags.OgnlCache.getValue(OgnlCache.java:48)atorg.apache.ibatis.scripting.xmltags.ExpressionEvaluator.evaluateBoolean(ExpressionEvaluator.java:32)atorg.apache.ibatis.scripting.xmltags.IfSqlNode.apply(IfSqlNode.java:34)atorg.apache.ibatis.scripting.xmltags.MixedSqlNode.lambdaapply 0 ( M i x e d S q l N o d e . j a v a : 32 ) a t j a v a . u t i l . A r r a y L i s t . f o r E a c h ( A r r a y L i s t . j a v a : 1257 ) a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . M i x e d S q l N o d e . a p p l y ( M i x e d S q l N o d e . j a v a : 32 ) a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . T r i m S q l N o d e . a p p l y ( T r i m S q l N o d e . j a v a : 55 ) a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . M i x e d S q l N o d e . l a m b d a 0(MixedSqlNode.java:32) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.apache.ibatis.scripting.xmltags.MixedSqlNode.apply(MixedSqlNode.java:32) at org.apache.ibatis.scripting.xmltags.TrimSqlNode.apply(TrimSqlNode.java:55) at org.apache.ibatis.scripting.xmltags.MixedSqlNode.lambda 0(MixedSqlNode.java:32)atjava.util.ArrayList.forEach(ArrayList.java:1257)atorg.apache.ibatis.scripting.xmltags.MixedSqlNode.apply(MixedSqlNode.java:32)atorg.apache.ibatis.scripting.xmltags.TrimSqlNode.apply(TrimSqlNode.java:55)atorg.apache.ibatis.scripting.xmltags.MixedSqlNode.lambdaapply 0 ( M i x e d S q l N o d e . j a v a : 32 ) a t j a v a . u t i l . A r r a y L i s t . f o r E a c h ( A r r a y L i s t . j a v a : 1257 ) a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . M i x e d S q l N o d e . a p p l y ( M i x e d S q l N o d e . j a v a : 32 ) a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . I f S q l N o d e . a p p l y ( I f S q l N o d e . j a v a : 35 ) a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . M i x e d S q l N o d e . l a m b d a 0(MixedSqlNode.java:32) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.apache.ibatis.scripting.xmltags.MixedSqlNode.apply(MixedSqlNode.java:32) at org.apache.ibatis.scripting.xmltags.IfSqlNode.apply(IfSqlNode.java:35) at org.apache.ibatis.scripting.xmltags.MixedSqlNode.lambda 0(MixedSqlNode.java:32)atjava.util.ArrayList.forEach(ArrayList.java:1257)atorg.apache.ibatis.scripting.xmltags.MixedSqlNode.apply(MixedSqlNode.java:32)atorg.apache.ibatis.scripting.xmltags.IfSqlNode.apply(IfSqlNode.java:35)atorg.apache.ibatis.scripting.xmltags.MixedSqlNode.lambdaapply 0 ( M i x e d S q l N o d e . j a v a : 32 ) a t j a v a . u t i l . A r r a y L i s t . f o r E a c h ( A r r a y L i s t . j a v a : 1257 ) a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . M i x e d S q l N o d e . a p p l y ( M i x e d S q l N o d e . j a v a : 32 ) a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . D y n a m i c S q l S o u r c e . g e t B o u n d S q l ( D y n a m i c S q l S o u r c e . j a v a : 39 ) a t o r g . a p a c h e . i b a t i s . m a p p i n g . M a p p e d S t a t e m e n t . g e t B o u n d S q l ( M a p p e d S t a t e m e n t . j a v a : 297 ) a t o r g . a p a c h e . i b a t i s . e x e c u t o r . C a c h i n g E x e c u t o r . q u e r y ( C a c h i n g E x e c u t o r . j a v a : 81 ) a t o r g . a p a c h e . i b a t i s . s e s s i o n . d e f a u l t s . D e f a u l t S q l S e s s i o n . s e l e c t L i s t ( D e f a u l t S q l S e s s i o n . j a v a : 147 ) a t o r g . a p a c h e . i b a t i s . s e s s i o n . d e f a u l t s . D e f a u l t S q l S e s s i o n . s e l e c t L i s t ( D e f a u l t S q l S e s s i o n . j a v a : 140 ) a t s u n . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e 0 ( N a t i v e M e t h o d ) a t s u n . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e ( N a t i v e M e t h o d A c c e s s o r I m p l . j a v a : 62 ) a t s u n . r e f l e c t . D e l e g a t i n g M e t h o d A c c e s s o r I m p l . i n v o k e ( D e l e g a t i n g M e t h o d A c c e s s o r I m p l . j a v a : 43 ) a t j a v a . l a n g . r e f l e c t . M e t h o d . i n v o k e ( M e t h o d . j a v a : 498 ) a t o r g . m y b a t i s . s p r i n g . S q l S e s s i o n T e m p l a t e 0(MixedSqlNode.java:32) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.apache.ibatis.scripting.xmltags.MixedSqlNode.apply(MixedSqlNode.java:32) at org.apache.ibatis.scripting.xmltags.DynamicSqlSource.getBoundSql(DynamicSqlSource.java:39) at org.apache.ibatis.mapping.MappedStatement.getBoundSql(MappedStatement.java:297) at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:81) at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147) at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.mybatis.spring.SqlSessionTemplate 0(MixedSqlNode.java:32)atjava.util.ArrayList.forEach(ArrayList.java:1257)atorg.apache.ibatis.scripting.xmltags.MixedSqlNode.apply(MixedSqlNode.java:32)atorg.apache.ibatis.scripting.xmltags.DynamicSqlSource.getBoundSql(DynamicSqlSource.java:39)atorg.apache.ibatis.mapping.MappedStatement.getBoundSql(MappedStatement.java:297)atorg.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:81)atorg.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147)atorg.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)atjava.lang.reflect.Method.invoke(Method.java:498)atorg.mybatis.spring.SqlSessionTemplateSqlSessionInterceptor.invoke(SqlSessionTemplate.java:433)
… 16 common frames omitted
Caused by: org.apache.ibatis.ognl.OgnlException: sqlSegment
at org.apache.ibatis.ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:1693)
at org.apache.ibatis.ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:60)
at org.apache.ibatis.ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:147)
at org.apache.ibatis.ognl.OgnlRuntime.getProperty(OgnlRuntime.java:2719)
at org.apache.ibatis.ognl.ASTProperty.getValueBody(ASTProperty.java:114)
at org.apache.ibatis.ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
at org.apache.ibatis.ognl.SimpleNode.getValue(SimpleNode.java:258)
at org.apache.ibatis.ognl.ASTChain.getValueBody(ASTChain.java:141)
at org.apache.ibatis.ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
at org.apache.ibatis.ognl.SimpleNode.getValue(SimpleNode.java:258)
at org.apache.ibatis.ognl.ASTNotEq.getValueBody(ASTNotEq.java:50)
at org.apache.ibatis.ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
at org.apache.ibatis.ognl.SimpleNode.getValue(SimpleNode.java:258)
at org.apache.ibatis.ognl.ASTAnd.getValueBody(ASTAnd.java:61)
at org.apache.ibatis.ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
at org.apache.ibatis.ognl.SimpleNode.getValue(SimpleNode.java:258)
at org.apache.ibatis.ognl.Ognl.getValue(Ognl.java:493)
at org.apache.ibatis.ognl.Ognl.getValue(Ognl.java:457)
at org.apache.ibatis.scripting.xmltags.OgnlCache.getValue(OgnlCache.java:46)
… 39 common frames omitted
Caused by: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: This is impossible to happen
at com.baomidou.mybatisplus.core.toolkit.ExceptionUtils.mpe(ExceptionUtils.java:39)
at com.baomidou.mybatisplus.core.toolkit.support.SerializedLambda.resolve(SerializedLambda.java:68)
at com.baomidou.mybatisplus.core.toolkit.LambdaUtils.lambda$resolve 0 ( L a m b d a U t i l s . j a v a : 60 ) a t j a v a . u t i l . O p t i o n a l . o r E l s e G e t ( O p t i o n a l . j a v a : 267 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . t o o l k i t . L a m b d a U t i l s . r e s o l v e ( L a m b d a U t i l s . j a v a : 59 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . c o n d i t i o n s . A b s t r a c t L a m b d a W r a p p e r . c o l u m n T o S t r i n g ( A b s t r a c t L a m b d a W r a p p e r . j a v a : 68 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . c o n d i t i o n s . A b s t r a c t L a m b d a W r a p p e r . c o l u m n T o S t r i n g ( A b s t r a c t L a m b d a W r a p p e r . j a v a : 64 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . c o n d i t i o n s . A b s t r a c t L a m b d a W r a p p e r . c o l u m n T o S t r i n g ( A b s t r a c t L a m b d a W r a p p e r . j a v a : 37 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . c o n d i t i o n s . A b s t r a c t W r a p p e r . l a m b d a 0(LambdaUtils.java:60) at java.util.Optional.orElseGet(Optional.java:267) at com.baomidou.mybatisplus.core.toolkit.LambdaUtils.resolve(LambdaUtils.java:59) at com.baomidou.mybatisplus.core.conditions.AbstractLambdaWrapper.columnToString(AbstractLambdaWrapper.java:68) at com.baomidou.mybatisplus.core.conditions.AbstractLambdaWrapper.columnToString(AbstractLambdaWrapper.java:64) at com.baomidou.mybatisplus.core.conditions.AbstractLambdaWrapper.columnToString(AbstractLambdaWrapper.java:37) at com.baomidou.mybatisplus.core.conditions.AbstractWrapper.lambda 0(LambdaUtils.java:60)atjava.util.Optional.orElseGet(Optional.java:267)atcom.baomidou.mybatisplus.core.toolkit.LambdaUtils.resolve(LambdaUtils.java:59)atcom.baomidou.mybatisplus.core.conditions.AbstractLambdaWrapper.columnToString(AbstractLambdaWrapper.java:68)atcom.baomidou.mybatisplus.core.conditions.AbstractLambdaWrapper.columnToString(AbstractLambdaWrapper.java:64)atcom.baomidou.mybatisplus.core.conditions.AbstractLambdaWrapper.columnToString(AbstractLambdaWrapper.java:37)atcom.baomidou.mybatisplus.core.conditions.AbstractWrapper.lambdaaddCondition$ac69df92$1(AbstractWrapper.java:314)
at java.util.stream.ReferencePipeline$3 1. a c c e p t ( R e f e r e n c e P i p e l i n e . j a v a : 193 ) a t j a v a . u t i l . A r r a y L i s t 1.accept(ReferencePipeline.java:193) at java.util.ArrayList 1.accept(ReferencePipeline.java:193)atjava.util.ArrayListArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.ReduceOps R e d u c e O p . e v a l u a t e S e q u e n t i a l ( R e d u c e O p s . j a v a : 708 ) a t j a v a . u t i l . s t r e a m . A b s t r a c t P i p e l i n e . e v a l u a t e ( A b s t r a c t P i p e l i n e . j a v a : 234 ) a t j a v a . u t i l . s t r e a m . R e f e r e n c e P i p e l i n e . c o l l e c t ( R e f e r e n c e P i p e l i n e . j a v a : 499 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . c o n d i t i o n s . s e g m e n t s . N o r m a l S e g m e n t L i s t . c h i l d r e n S q l S e g m e n t ( N o r m a l S e g m e n t L i s t . j a v a : 89 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . c o n d i t i o n s . s e g m e n t s . A b s t r a c t I S e g m e n t L i s t . g e t S q l S e g m e n t ( A b s t r a c t I S e g m e n t L i s t . j a v a : 96 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . c o n d i t i o n s . s e g m e n t s . M e r g e S e g m e n t s . g e t S q l S e g m e n t ( M e r g e S e g m e n t s . j a v a : 72 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . c o n d i t i o n s . A b s t r a c t W r a p p e r . g e t S q l S e g m e n t ( A b s t r a c t W r a p p e r . j a v a : 415 ) a t s u n . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e 0 ( N a t i v e M e t h o d ) a t s u n . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e ( N a t i v e M e t h o d A c c e s s o r I m p l . j a v a : 62 ) a t s u n . r e f l e c t . D e l e g a t i n g M e t h o d A c c e s s o r I m p l . i n v o k e ( D e l e g a t i n g M e t h o d A c c e s s o r I m p l . j a v a : 43 ) a t j a v a . l a n g . r e f l e c t . M e t h o d . i n v o k e ( M e t h o d . j a v a : 498 ) a t o r g . a p a c h e . i b a t i s . o g n l . O g n l R u n t i m e . i n v o k e M e t h o d ( O g n l R u n t i m e . j a v a : 881 ) a t o r g . a p a c h e . i b a t i s . o g n l . O g n l R u n t i m e . g e t M e t h o d V a l u e ( O g n l R u n t i m e . j a v a : 1691 ) . . . 57 c o m m o n f r a m e s o m i t t e d C a u s e d b y : j a v a . l a n g . C l a s s N o t F o u n d E x c e p t i o n : c n . c o m . c h n s y s . e c m s . i n t e r f a c e s . j z . h y . E c m s T h r e a d a t j a v a . n e t . U R L C l a s s L o a d e r . f i n d C l a s s ( U R L C l a s s L o a d e r . j a v a : 382 ) a t j a v a . l a n g . C l a s s L o a d e r . l o a d C l a s s ( C l a s s L o a d e r . j a v a : 424 ) a t s u n . m i s c . L a u n c h e r ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) at com.baomidou.mybatisplus.core.conditions.segments.NormalSegmentList.childrenSqlSegment(NormalSegmentList.java:89) at com.baomidou.mybatisplus.core.conditions.segments.AbstractISegmentList.getSqlSegment(AbstractISegmentList.java:96) at com.baomidou.mybatisplus.core.conditions.segments.MergeSegments.getSqlSegment(MergeSegments.java:72) at com.baomidou.mybatisplus.core.conditions.AbstractWrapper.getSqlSegment(AbstractWrapper.java:415) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.ibatis.ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:881) at org.apache.ibatis.ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:1691) ... 57 common frames omitted Caused by: java.lang.ClassNotFoundException: cn.com.chnsys.ecms.interfaces.jz.hy.EcmsThread at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher ReduceOp.evaluateSequential(ReduceOps.java:708)atjava.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)atjava.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)atcom.baomidou.mybatisplus.core.conditions.segments.NormalSegmentList.childrenSqlSegment(NormalSegmentList.java:89)atcom.baomidou.mybatisplus.core.conditions.segments.AbstractISegmentList.getSqlSegment(AbstractISegmentList.java:96)atcom.baomidou.mybatisplus.core.conditions.segments.MergeSegments.getSqlSegment(MergeSegments.java:72)atcom.baomidou.mybatisplus.core.conditions.AbstractWrapper.getSqlSegment(AbstractWrapper.java:415)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)atjava.lang.reflect.Method.invoke(Method.java:498)atorg.apache.ibatis.ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:881)atorg.apache.ibatis.ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:1691)...57commonframesomittedCausedby:java.lang.ClassNotFoundException:cn.com.chnsys.ecms.interfaces.jz.hy.EcmsThreadatjava.net.URLClassLoader.findClass(URLClassLoader.java:382)atjava.lang.ClassLoader.loadClass(ClassLoader.java:424)atsun.misc.LauncherAppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:686)
at com.baomidou.mybatisplus.core.toolkit.support.SerializedLambda 1. r e s o l v e C l a s s ( S e r i a l i z e d L a m b d a . j a v a : 62 ) a t j a v a . i o . O b j e c t I n p u t S t r e a m . r e a d N o n P r o x y D e s c ( O b j e c t I n p u t S t r e a m . j a v a : 1868 ) a t j a v a . i o . O b j e c t I n p u t S t r e a m . r e a d C l a s s D e s c ( O b j e c t I n p u t S t r e a m . j a v a : 1751 ) a t j a v a . i o . O b j e c t I n p u t S t r e a m . r e a d C l a s s ( O b j e c t I n p u t S t r e a m . j a v a : 1716 ) a t j a v a . i o . O b j e c t I n p u t S t r e a m . r e a d O b j e c t 0 ( O b j e c t I n p u t S t r e a m . j a v a : 1556 ) a t j a v a . i o . O b j e c t I n p u t S t r e a m . d e f a u l t R e a d F i e l d s ( O b j e c t I n p u t S t r e a m . j a v a : 2287 ) a t j a v a . i o . O b j e c t I n p u t S t r e a m . r e a d S e r i a l D a t a ( O b j e c t I n p u t S t r e a m . j a v a : 2211 ) a t j a v a . i o . O b j e c t I n p u t S t r e a m . r e a d O r d i n a r y O b j e c t ( O b j e c t I n p u t S t r e a m . j a v a : 2069 ) a t j a v a . i o . O b j e c t I n p u t S t r e a m . r e a d O b j e c t 0 ( O b j e c t I n p u t S t r e a m . j a v a : 1573 ) a t j a v a . i o . O b j e c t I n p u t S t r e a m . r e a d O b j e c t ( O b j e c t I n p u t S t r e a m . j a v a : 431 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . t o o l k i t . s u p p o r t . S e r i a l i z e d L a m b d a . r e s o l v e ( S e r i a l i z e d L a m b d a . j a v a : 66 ) . . . 81 c o m m o n f r a m e s o m i t t e d [ 2021 − 09 − 2719 : 34 : 46.263 ] E R R O R [ p o o l − 1 − t h r e a d − 2 ] E c m s T h r e a d . j a v a : 117 − 我 的 法 院 代 码 为 : 101 法 院 范 围 异 常 o r g . m y b a t i s . s p r i n g . M y B a t i s S y s t e m E x c e p t i o n : n e s t e d e x c e p t i o n i s o r g . a p a c h e . i b a t i s . b u i l d e r . B u i l d e r E x c e p t i o n : E r r o r e v a l u a t i n g e x p r e s s i o n ′ e w . s q l S e g m e n t ! = n u l l a n d e w . s q l S e g m e n t ! = ′ ′ a n d e w . n o n E m p t y O f W h e r e ′ . C a u s e : o r g . a p a c h e . i b a t i s . o g n l . O g n l E x c e p t i o n : s q l S e g m e n t [ c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . e x c e p t i o n s . M y b a t i s P l u s E x c e p t i o n : T h i s i s i m p o s s i b l e t o h a p p e n ] a t o r g . m y b a t i s . s p r i n g . M y B a t i s E x c e p t i o n T r a n s l a t o r . t r a n s l a t e E x c e p t i o n I f P o s s i b l e ( M y B a t i s E x c e p t i o n T r a n s l a t o r . j a v a : 77 ) a t o r g . m y b a t i s . s p r i n g . S q l S e s s i o n T e m p l a t e 1.resolveClass(SerializedLambda.java:62) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1868) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1751) at java.io.ObjectInputStream.readClass(ObjectInputStream.java:1716) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1556) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2287) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2211) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2069) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:431) at com.baomidou.mybatisplus.core.toolkit.support.SerializedLambda.resolve(SerializedLambda.java:66) ... 81 common frames omitted [2021-09-27 19:34:46.263] ERROR [pool-1-thread-2] EcmsThread.java:117 - 我的法院代码为:101法院范围异常 org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression 'ew.sqlSegment != null and ew.sqlSegment != '' and ew.nonEmptyOfWhere'. Cause: org.apache.ibatis.ognl.OgnlException: sqlSegment [com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: This is impossible to happen] at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:77) at org.mybatis.spring.SqlSessionTemplate 1.resolveClass(SerializedLambda.java:62)atjava.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1868)atjava.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1751)atjava.io.ObjectInputStream.readClass(ObjectInputStream.java:1716)atjava.io.ObjectInputStream.readObject0(ObjectInputStream.java:1556)atjava.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2287)atjava.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2211)atjava.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2069)atjava.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573)atjava.io.ObjectInputStream.readObject(ObjectInputStream.java:431)atcom.baomidou.mybatisplus.core.toolkit.support.SerializedLambda.resolve(SerializedLambda.java:66)...81commonframesomitted[2021092719:34:46.263]ERROR[pool1thread2]EcmsThread.java:117101org.mybatis.spring.MyBatisSystemException:nestedexceptionisorg.apache.ibatis.builder.BuilderException:Errorevaluatingexpressionew.sqlSegment!=nullandew.sqlSegment!=andew.nonEmptyOfWhere.Cause:org.apache.ibatis.ognl.OgnlException:sqlSegment[com.baomidou.mybatisplus.core.exceptions.MybatisPlusException:Thisisimpossibletohappen]atorg.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:77)atorg.mybatis.spring.SqlSessionTemplateSqlSessionInterceptor.invoke(SqlSessionTemplate.java:446)
at com.sun.proxy. P r o x y 76. s e l e c t L i s t ( U n k n o w n S o u r c e ) a t o r g . m y b a t i s . s p r i n g . S q l S e s s i o n T e m p l a t e . s e l e c t L i s t ( S q l S e s s i o n T e m p l a t e . j a v a : 230 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . o v e r r i d e . M y b a t i s M a p p e r M e t h o d . e x e c u t e F o r M a n y ( M y b a t i s M a p p e r M e t h o d . j a v a : 168 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . o v e r r i d e . M y b a t i s M a p p e r M e t h o d . e x e c u t e ( M y b a t i s M a p p e r M e t h o d . j a v a : 82 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . o v e r r i d e . M y b a t i s M a p p e r P r o x y . i n v o k e ( M y b a t i s M a p p e r P r o x y . j a v a : 61 ) a t c o m . s u n . p r o x y . Proxy76.selectList(Unknown Source) at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:230) at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:168) at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:82) at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:61) at com.sun.proxy. Proxy76.selectList(UnknownSource)atorg.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:230)atcom.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:168)atcom.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:82)atcom.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:61)atcom.sun.proxy.Proxy112.selectList(Unknown Source)
at com.baomidou.mybatisplus.extension.service.impl.ServiceImpl.list(ServiceImpl.java:272)
at com.baomidou.mybatisplus.extension.service.impl.ServiceImpl F a s t C l a s s B y S p r i n g C G L I B FastClassBySpringCGLIB FastClassBySpringCGLIB76535273.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy D y n a m i c A d v i s e d I n t e r c e p t o r . i n t e r c e p t ( C g l i b A o p P r o x y . j a v a : 684 ) a t c n . c o m . c h n s y s . e c m s . b a s e . s e r v i c e . i m p l . T r i a l P l a n S e r v i c e I m p l DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684) at cn.com.chnsys.ecms.base.service.impl.TrialPlanServiceImpl DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)atcn.com.chnsys.ecms.base.service.impl.TrialPlanServiceImpl E n h a n c e r B y S p r i n g C G L I B EnhancerBySpringCGLIB EnhancerBySpringCGLIB 8 a 6 a c a 8 f . l i s t ( < g e n e r a t e d > ) a t c n . c o m . c h n s y s . e c m s . i n t e r f a c e s . j z . h y . E c m s T h r e a d . g e t T r i a l P l a n s ( E c m s T h r e a d . j a v a : 147 ) a t c n . c o m . c h n s y s . e c m s . i n t e r f a c e s . j z . h y . E c m s T h r e a d . r u n ( E c m s T h r e a d . j a v a : 75 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r . r u n W o r k e r ( T h r e a d P o o l E x e c u t o r . j a v a : 1149 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r 8a6aca8f.list() at cn.com.chnsys.ecms.interfaces.jz.hy.EcmsThread.getTrialPlans(EcmsThread.java:147) at cn.com.chnsys.ecms.interfaces.jz.hy.EcmsThread.run(EcmsThread.java:75) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor 8a6aca8f.list(<generated>)atcn.com.chnsys.ecms.interfaces.jz.hy.EcmsThread.getTrialPlans(EcmsThread.java:147)atcn.com.chnsys.ecms.interfaces.jz.hy.EcmsThread.run(EcmsThread.java:75)atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)atjava.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.ibatis.builder.BuilderException: Error evaluating expression ‘ew.sqlSegment != null and ew.sqlSegment != ‘’ and ew.nonEmptyOfWhere’. Cause: org.apache.ibatis.ognl.OgnlException: sqlSegment [com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: This is impossible to happen]
at org.apache.ibatis.scripting.xmltags.OgnlCache.getValue(OgnlCache.java:48)
at org.apache.ibatis.scripting.xmltags.ExpressionEvaluator.evaluateBoolean(ExpressionEvaluator.java:32)
at org.apache.ibatis.scripting.xmltags.IfSqlNode.apply(IfSqlNode.java:34)
at org.apache.ibatis.scripting.xmltags.MixedSqlNode.lambda$apply 0 ( M i x e d S q l N o d e . j a v a : 32 ) a t j a v a . u t i l . A r r a y L i s t . f o r E a c h ( A r r a y L i s t . j a v a : 1257 ) a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . M i x e d S q l N o d e . a p p l y ( M i x e d S q l N o d e . j a v a : 32 ) a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . T r i m S q l N o d e . a p p l y ( T r i m S q l N o d e . j a v a : 55 ) a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . M i x e d S q l N o d e . l a m b d a 0(MixedSqlNode.java:32) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.apache.ibatis.scripting.xmltags.MixedSqlNode.apply(MixedSqlNode.java:32) at org.apache.ibatis.scripting.xmltags.TrimSqlNode.apply(TrimSqlNode.java:55) at org.apache.ibatis.scripting.xmltags.MixedSqlNode.lambda 0(MixedSqlNode.java:32)atjava.util.ArrayList.forEach(ArrayList.java:1257)atorg.apache.ibatis.scripting.xmltags.MixedSqlNode.apply(MixedSqlNode.java:32)atorg.apache.ibatis.scripting.xmltags.TrimSqlNode.apply(TrimSqlNode.java:55)atorg.apache.ibatis.scripting.xmltags.MixedSqlNode.lambdaapply 0 ( M i x e d S q l N o d e . j a v a : 32 ) a t j a v a . u t i l . A r r a y L i s t . f o r E a c h ( A r r a y L i s t . j a v a : 1257 ) a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . M i x e d S q l N o d e . a p p l y ( M i x e d S q l N o d e . j a v a : 32 ) a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . I f S q l N o d e . a p p l y ( I f S q l N o d e . j a v a : 35 ) a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . M i x e d S q l N o d e . l a m b d a 0(MixedSqlNode.java:32) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.apache.ibatis.scripting.xmltags.MixedSqlNode.apply(MixedSqlNode.java:32) at org.apache.ibatis.scripting.xmltags.IfSqlNode.apply(IfSqlNode.java:35) at org.apache.ibatis.scripting.xmltags.MixedSqlNode.lambda 0(MixedSqlNode.java:32)atjava.util.ArrayList.forEach(ArrayList.java:1257)atorg.apache.ibatis.scripting.xmltags.MixedSqlNode.apply(MixedSqlNode.java:32)atorg.apache.ibatis.scripting.xmltags.IfSqlNode.apply(IfSqlNode.java:35)atorg.apache.ibatis.scripting.xmltags.MixedSqlNode.lambdaapply 0 ( M i x e d S q l N o d e . j a v a : 32 ) a t j a v a . u t i l . A r r a y L i s t . f o r E a c h ( A r r a y L i s t . j a v a : 1257 ) a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . M i x e d S q l N o d e . a p p l y ( M i x e d S q l N o d e . j a v a : 32 ) a t o r g . a p a c h e . i b a t i s . s c r i p t i n g . x m l t a g s . D y n a m i c S q l S o u r c e . g e t B o u n d S q l ( D y n a m i c S q l S o u r c e . j a v a : 39 ) a t o r g . a p a c h e . i b a t i s . m a p p i n g . M a p p e d S t a t e m e n t . g e t B o u n d S q l ( M a p p e d S t a t e m e n t . j a v a : 297 ) a t o r g . a p a c h e . i b a t i s . e x e c u t o r . C a c h i n g E x e c u t o r . q u e r y ( C a c h i n g E x e c u t o r . j a v a : 81 ) a t o r g . a p a c h e . i b a t i s . s e s s i o n . d e f a u l t s . D e f a u l t S q l S e s s i o n . s e l e c t L i s t ( D e f a u l t S q l S e s s i o n . j a v a : 147 ) a t o r g . a p a c h e . i b a t i s . s e s s i o n . d e f a u l t s . D e f a u l t S q l S e s s i o n . s e l e c t L i s t ( D e f a u l t S q l S e s s i o n . j a v a : 140 ) a t s u n . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e 0 ( N a t i v e M e t h o d ) a t s u n . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e ( N a t i v e M e t h o d A c c e s s o r I m p l . j a v a : 62 ) a t s u n . r e f l e c t . D e l e g a t i n g M e t h o d A c c e s s o r I m p l . i n v o k e ( D e l e g a t i n g M e t h o d A c c e s s o r I m p l . j a v a : 43 ) a t j a v a . l a n g . r e f l e c t . M e t h o d . i n v o k e ( M e t h o d . j a v a : 498 ) a t o r g . m y b a t i s . s p r i n g . S q l S e s s i o n T e m p l a t e 0(MixedSqlNode.java:32) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.apache.ibatis.scripting.xmltags.MixedSqlNode.apply(MixedSqlNode.java:32) at org.apache.ibatis.scripting.xmltags.DynamicSqlSource.getBoundSql(DynamicSqlSource.java:39) at org.apache.ibatis.mapping.MappedStatement.getBoundSql(MappedStatement.java:297) at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:81) at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147) at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.mybatis.spring.SqlSessionTemplate 0(MixedSqlNode.java:32)atjava.util.ArrayList.forEach(ArrayList.java:1257)atorg.apache.ibatis.scripting.xmltags.MixedSqlNode.apply(MixedSqlNode.java:32)atorg.apache.ibatis.scripting.xmltags.DynamicSqlSource.getBoundSql(DynamicSqlSource.java:39)atorg.apache.ibatis.mapping.MappedStatement.getBoundSql(MappedStatement.java:297)atorg.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:81)atorg.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147)atorg.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)atjava.lang.reflect.Method.invoke(Method.java:498)atorg.mybatis.spring.SqlSessionTemplateSqlSessionInterceptor.invoke(SqlSessionTemplate.java:433)
… 16 common frames omitted
Caused by: org.apache.ibatis.ognl.OgnlException: sqlSegment
at org.apache.ibatis.ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:1693)
at org.apache.ibatis.ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:60)
at org.apache.ibatis.ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:147)
at org.apache.ibatis.ognl.OgnlRuntime.getProperty(OgnlRuntime.java:2719)
at org.apache.ibatis.ognl.ASTProperty.getValueBody(ASTProperty.java:114)
at org.apache.ibatis.ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
at org.apache.ibatis.ognl.SimpleNode.getValue(SimpleNode.java:258)
at org.apache.ibatis.ognl.ASTChain.getValueBody(ASTChain.java:141)
at org.apache.ibatis.ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
at org.apache.ibatis.ognl.SimpleNode.getValue(SimpleNode.java:258)
at org.apache.ibatis.ognl.ASTNotEq.getValueBody(ASTNotEq.java:50)
at org.apache.ibatis.ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
at org.apache.ibatis.ognl.SimpleNode.getValue(SimpleNode.java:258)
at org.apache.ibatis.ognl.ASTAnd.getValueBody(ASTAnd.java:61)
at org.apache.ibatis.ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
at org.apache.ibatis.ognl.SimpleNode.getValue(SimpleNode.java:258)
at org.apache.ibatis.ognl.Ognl.getValue(Ognl.java:493)
at org.apache.ibatis.ognl.Ognl.getValue(Ognl.java:457)
at org.apache.ibatis.scripting.xmltags.OgnlCache.getValue(OgnlCache.java:46)
… 39 common frames omitted
Caused by: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: This is impossible to happen
at com.baomidou.mybatisplus.core.toolkit.ExceptionUtils.mpe(ExceptionUtils.java:39)
at com.baomidou.mybatisplus.core.toolkit.support.SerializedLambda.resolve(SerializedLambda.java:68)
at com.baomidou.mybatisplus.core.toolkit.LambdaUtils.lambda$resolve 0 ( L a m b d a U t i l s . j a v a : 60 ) a t j a v a . u t i l . O p t i o n a l . o r E l s e G e t ( O p t i o n a l . j a v a : 267 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . t o o l k i t . L a m b d a U t i l s . r e s o l v e ( L a m b d a U t i l s . j a v a : 59 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . c o n d i t i o n s . A b s t r a c t L a m b d a W r a p p e r . c o l u m n T o S t r i n g ( A b s t r a c t L a m b d a W r a p p e r . j a v a : 68 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . c o n d i t i o n s . A b s t r a c t L a m b d a W r a p p e r . c o l u m n T o S t r i n g ( A b s t r a c t L a m b d a W r a p p e r . j a v a : 64 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . c o n d i t i o n s . A b s t r a c t L a m b d a W r a p p e r . c o l u m n T o S t r i n g ( A b s t r a c t L a m b d a W r a p p e r . j a v a : 37 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . c o n d i t i o n s . A b s t r a c t W r a p p e r . l a m b d a 0(LambdaUtils.java:60) at java.util.Optional.orElseGet(Optional.java:267) at com.baomidou.mybatisplus.core.toolkit.LambdaUtils.resolve(LambdaUtils.java:59) at com.baomidou.mybatisplus.core.conditions.AbstractLambdaWrapper.columnToString(AbstractLambdaWrapper.java:68) at com.baomidou.mybatisplus.core.conditions.AbstractLambdaWrapper.columnToString(AbstractLambdaWrapper.java:64) at com.baomidou.mybatisplus.core.conditions.AbstractLambdaWrapper.columnToString(AbstractLambdaWrapper.java:37) at com.baomidou.mybatisplus.core.conditions.AbstractWrapper.lambda 0(LambdaUtils.java:60)atjava.util.Optional.orElseGet(Optional.java:267)atcom.baomidou.mybatisplus.core.toolkit.LambdaUtils.resolve(LambdaUtils.java:59)atcom.baomidou.mybatisplus.core.conditions.AbstractLambdaWrapper.columnToString(AbstractLambdaWrapper.java:68)atcom.baomidou.mybatisplus.core.conditions.AbstractLambdaWrapper.columnToString(AbstractLambdaWrapper.java:64)atcom.baomidou.mybatisplus.core.conditions.AbstractLambdaWrapper.columnToString(AbstractLambdaWrapper.java:37)atcom.baomidou.mybatisplus.core.conditions.AbstractWrapper.lambdaaddCondition$ac69df92$1(AbstractWrapper.java:314)
at java.util.stream.ReferencePipeline$3 1. a c c e p t ( R e f e r e n c e P i p e l i n e . j a v a : 193 ) a t j a v a . u t i l . A r r a y L i s t 1.accept(ReferencePipeline.java:193) at java.util.ArrayList 1.accept(ReferencePipeline.java:193)atjava.util.ArrayListArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.ReduceOps R e d u c e O p . e v a l u a t e S e q u e n t i a l ( R e d u c e O p s . j a v a : 708 ) a t j a v a . u t i l . s t r e a m . A b s t r a c t P i p e l i n e . e v a l u a t e ( A b s t r a c t P i p e l i n e . j a v a : 234 ) a t j a v a . u t i l . s t r e a m . R e f e r e n c e P i p e l i n e . c o l l e c t ( R e f e r e n c e P i p e l i n e . j a v a : 499 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . c o n d i t i o n s . s e g m e n t s . N o r m a l S e g m e n t L i s t . c h i l d r e n S q l S e g m e n t ( N o r m a l S e g m e n t L i s t . j a v a : 89 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . c o n d i t i o n s . s e g m e n t s . A b s t r a c t I S e g m e n t L i s t . g e t S q l S e g m e n t ( A b s t r a c t I S e g m e n t L i s t . j a v a : 96 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . c o n d i t i o n s . s e g m e n t s . M e r g e S e g m e n t s . g e t S q l S e g m e n t ( M e r g e S e g m e n t s . j a v a : 72 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . c o n d i t i o n s . A b s t r a c t W r a p p e r . g e t S q l S e g m e n t ( A b s t r a c t W r a p p e r . j a v a : 415 ) a t s u n . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e 0 ( N a t i v e M e t h o d ) a t s u n . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e ( N a t i v e M e t h o d A c c e s s o r I m p l . j a v a : 62 ) a t s u n . r e f l e c t . D e l e g a t i n g M e t h o d A c c e s s o r I m p l . i n v o k e ( D e l e g a t i n g M e t h o d A c c e s s o r I m p l . j a v a : 43 ) a t j a v a . l a n g . r e f l e c t . M e t h o d . i n v o k e ( M e t h o d . j a v a : 498 ) a t o r g . a p a c h e . i b a t i s . o g n l . O g n l R u n t i m e . i n v o k e M e t h o d ( O g n l R u n t i m e . j a v a : 881 ) a t o r g . a p a c h e . i b a t i s . o g n l . O g n l R u n t i m e . g e t M e t h o d V a l u e ( O g n l R u n t i m e . j a v a : 1691 ) . . . 57 c o m m o n f r a m e s o m i t t e d C a u s e d b y : j a v a . l a n g . C l a s s N o t F o u n d E x c e p t i o n : c n . c o m . c h n s y s . e c m s . i n t e r f a c e s . j z . h y . E c m s T h r e a d a t j a v a . n e t . U R L C l a s s L o a d e r . f i n d C l a s s ( U R L C l a s s L o a d e r . j a v a : 382 ) a t j a v a . l a n g . C l a s s L o a d e r . l o a d C l a s s ( C l a s s L o a d e r . j a v a : 424 ) a t s u n . m i s c . L a u n c h e r ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) at com.baomidou.mybatisplus.core.conditions.segments.NormalSegmentList.childrenSqlSegment(NormalSegmentList.java:89) at com.baomidou.mybatisplus.core.conditions.segments.AbstractISegmentList.getSqlSegment(AbstractISegmentList.java:96) at com.baomidou.mybatisplus.core.conditions.segments.MergeSegments.getSqlSegment(MergeSegments.java:72) at com.baomidou.mybatisplus.core.conditions.AbstractWrapper.getSqlSegment(AbstractWrapper.java:415) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.ibatis.ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:881) at org.apache.ibatis.ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:1691) ... 57 common frames omitted Caused by: java.lang.ClassNotFoundException: cn.com.chnsys.ecms.interfaces.jz.hy.EcmsThread at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher ReduceOp.evaluateSequential(ReduceOps.java:708)atjava.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)atjava.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)atcom.baomidou.mybatisplus.core.conditions.segments.NormalSegmentList.childrenSqlSegment(NormalSegmentList.java:89)atcom.baomidou.mybatisplus.core.conditions.segments.AbstractISegmentList.getSqlSegment(AbstractISegmentList.java:96)atcom.baomidou.mybatisplus.core.conditions.segments.MergeSegments.getSqlSegment(MergeSegments.java:72)atcom.baomidou.mybatisplus.core.conditions.AbstractWrapper.getSqlSegment(AbstractWrapper.java:415)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)atjava.lang.reflect.Method.invoke(Method.java:498)atorg.apache.ibatis.ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:881)atorg.apache.ibatis.ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:1691)...57commonframesomittedCausedby:java.lang.ClassNotFoundException:cn.com.chnsys.ecms.interfaces.jz.hy.EcmsThreadatjava.net.URLClassLoader.findClass(URLClassLoader.java:382)atjava.lang.ClassLoader.loadClass(ClassLoader.java:424)atsun.misc.LauncherAppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:686)
at com.baomidou.mybatisplus.core.toolkit.support.SerializedLambda$1.resolveClass(SerializedLambda.java:62)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1868)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1751)
at java.io.ObjectInputStream.readClass(ObjectInputStream.java:1716)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1556)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2287)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2211)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2069)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:431)
at com.baomidou.mybatisplus.core.toolkit.support.SerializedLambda.resolve(SerializedLambda.java:66)
… 81 common frames omitted

随后在网上找到两种出现这个问题的原因:
一个是mybatisplus版本的问题,他使用的也是我的3.1.1版本出的错,改成3.1.0就好了,但是我试了同样不行。

第二个是在将项目处置成包分离的时候出的问题,因为我之前没有包分离,确实没出错,但是他没给出具体解决方案。

于是我尝试了mybatisplus的 3.4.2版本(因为其他项目有用到这个版本),于是这个问题顺利解决了。

总结:我总结的网上出现的两个原因,在我遇见的问题上,都是成立的,但是退回到3.1.0的这个版本,对于在包分离方式打包的处置上,还是不能解决问题。于是换了更高版本之后顺利解决。所以高版本的依赖,可能是你代码出现问题的可能。

问题搞了很久,不敢独享,分享给需要的人!

你可能感兴趣的:(java,spring)