org.kuali.rice.krms.api.engine.IncompatibleTypeException

Could not compare values for operator org.kuali.rice.krms.framework.engine.expression.DefaultComparisonOperator@3c876818 -> Type should have been one of [java.lang.String] but was java.lang.Boolean

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

  • via Unknown by Eric Westfall,
  • via Unknown by Eric Westfall,
  • Stack trace

    • org.kuali.rice.krms.api.engine.IncompatibleTypeException: Could not compare values for operator org.kuali.rice.krms.framework.engine.expression.DefaultComparisonOperator@3c876818 -> Type should have been one of [java.lang.String] but was java.lang.Boolean at org.kuali.rice.krms.framework.engine.expression.DefaultComparisonOperator.coerceRhs(DefaultComparisonOperator.java:97) at org.kuali.rice.krms.framework.engine.expression.DefaultComparisonOperator.compare(DefaultComparisonOperator.java:47) at org.kuali.rice.krms.framework.engine.expression.ComparisonOperatorServiceImpl.compare(ComparisonOperatorServiceImpl.java:86) at org.kuali.rice.krms.framework.engine.expression.ComparisonOperator.compare(ComparisonOperator.java:114) at org.kuali.rice.krms.framework.engine.expression.BinaryOperatorExpression.invoke(BinaryOperatorExpression.java:48) at org.kuali.rice.krms.framework.engine.expression.BinaryOperatorExpression.invoke(BinaryOperatorExpression.java:26) at org.kuali.rice.krms.framework.engine.expression.BooleanValidatingExpression.invoke(BooleanValidatingExpression.java:41) at org.kuali.rice.krms.framework.engine.expression.BooleanValidatingExpression.invoke(BooleanValidatingExpression.java:27) at org.kuali.rice.krms.framework.engine.expression.ExpressionBasedProposition.evaluate(ExpressionBasedProposition.java:44) at org.kuali.rice.krms.impl.provider.repository.LazyProposition.evaluate(LazyProposition.java:52) at org.kuali.rice.krms.framework.engine.CompoundProposition.evaluateInner(CompoundProposition.java:92) at org.kuali.rice.krms.framework.engine.CompoundProposition.evaluate(CompoundProposition.java:63) at org.kuali.rice.krms.impl.provider.repository.LazyProposition.evaluate(LazyProposition.java:52) at org.kuali.rice.krms.framework.engine.BasicRule.evaluate(BasicRule.java:64) at org.kuali.rice.krms.impl.provider.repository.LazyRule.evaluate(LazyRule.java:53) at org.kuali.rice.krms.framework.engine.BasicAgendaTreeEntry.execute(BasicAgendaTreeEntry.java:59) at org.kuali.rice.krms.framework.engine.BasicAgendaTree.execute(BasicAgendaTree.java:55) at org.kuali.rice.krms.impl.provider.repository.LazyAgendaTree.execute(LazyAgendaTree.java:43) at org.kuali.rice.krms.framework.engine.BasicAgenda.execute(BasicAgenda.java:46) at org.kuali.rice.krms.framework.engine.BasicContext.execute(BasicContext.java:51) at org.kuali.rice.krms.framework.engine.ProviderBasedEngine.execute(ProviderBasedEngine.java:68) at train.krms.test.RuleTest.testPatronInBadStanding(RuleTest.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:83) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.