org.kuali.student.r2.common.exceptions.OperationFailedException

Generating template failed: template='Students not admitted to $NLHelper.getCluOrCluSetAsLongNames($programClu,$programCluSet) may take no more than $intValue $NLHelper.getProperGrammar($intValue, "course") in the $org.getLongName() in $duration $NLHelper.getProperGrammar($duration, $durationType.getName()).toLowerCase()', contextMap={duration=1, durationType=null, org=org.kuali.student.r1.core.organization.dto.OrgInfo@3126984f, NLHelper=class org.kuali.student.lum.statement.config.context.util.NLHelper, intValue=3, fields={kuali.reqComponent.field.type.durationType.id=kuali.atp.duration.Year, kuali.reqComponent.field.type.value.positive.integer=3, kuali.reqComponent.field.type.org.id=64, kuali.reqComponent.field.type.program.clu.id=CLU-NL-PROGRAM-1, kuali.reqComponent.field.type.duration=1}}

Solutions on the web17

  • via Kuali JIRA by Nina Gelderbloem, 1 year ago
    Generating template failed: template='Students not admitted to $NLHelper.getCluOrCluSetAsLongNames($programClu,$programCluSet) may take no more than $intValue $NLHelper.getProperGrammar($intValue, "course") in the $org.getLongName() in $duration
  • via Kuali JIRA by Nina Gelderbloem, 1 year ago
    Generating template failed: template='Students not admitted to $NLHelper.getCluOrCluSetAsLongNames($programClu,$programCluSet) may take no more than $intValue $NLHelper.getProperGrammar($intValue, "course") in the $org.getLongName() in $duration
  • list size exceeds limit of 1
  • Stack trace

    • org.kuali.student.r2.common.exceptions.OperationFailedException: Generating template failed: template='Students not admitted to $NLHelper.getCluOrCluSetAsLongNames($programClu,$programCluSet) may take no more than $intValue $NLHelper.getProperGrammar($intValue, "course") in the $org.getLongName() in $duration $NLHelper.getProperGrammar($duration, $durationType.getName()).toLowerCase()', contextMap={duration=1, durationType=null, org=org.kuali.student.r1.core.organization.dto.OrgInfo@3126984f, NLHelper=class org.kuali.student.lum.statement.config.context.util.NLHelper, intValue=3, fields={kuali.reqComponent.field.type.durationType.id=kuali.atp.duration.Year, kuali.reqComponent.field.type.value.positive.integer=3, kuali.reqComponent.field.type.org.id=64, kuali.reqComponent.field.type.program.clu.id=CLU-NL-PROGRAM-1, kuali.reqComponent.field.type.duration=1}} at org.kuali.student.r1.core.statement.naturallanguage.translators.TemplateTranslator.translate(TemplateTranslator.java:50) at org.kuali.student.r1.core.statement.naturallanguage.translators.ReqComponentTranslator.translate(ReqComponentTranslator.java:121) at org.kuali.student.r1.core.statement.naturallanguage.translators.NaturalLanguageTranslatorImpl.translateReqComponent(NaturalLanguageTranslatorImpl.java:98) at org.kuali.student.r1.core.statement.service.impl.StatementServiceImpl.getNaturalLanguageForReqComponent(StatementServiceImpl.java:245) at org.kuali.student.r1.core.statement.service.impl.StatementServiceImpl$$FastClassByCGLIB$$fadbd285.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622) at org.kuali.student.r1.core.statement.service.impl.StatementServiceImpl$$EnhancerByCGLIB$$d806ed5a.getNaturalLanguageForReqComponent(<generated>) at org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_notadmitted_org_duration_ProgramAsClu(TestStatementServiceImplForCourse.java:276) 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.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) 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.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:119) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:101) 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.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) at $Proxy0.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:74) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69) Caused by: org.apache.velocity.exception.VelocityException at org.kuali.student.common.util.VelocityTemplateEngine.evaluate(VelocityTemplateEngine.java:190) at org.kuali.student.common.util.VelocityTemplateEngine.evaluate(VelocityTemplateEngine.java:162) at org.kuali.student.r1.core.statement.naturallanguage.translators.TemplateTranslator.translate(TemplateTranslator.java:48) ... 47 more Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getCluOrCluSetAsLongNames' in class java.lang.Class threw exception java.lang.NullPointerException at VelocityEngine[line 1, column 36] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:342) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at org.apache.velocity.runtime.RuntimeInstance.render(RuntimeInstance.java:1277) at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1216) at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:294) at org.kuali.student.common.util.VelocityTemplateEngine.evaluate(VelocityTemplateEngine.java:187) ... 49 more Caused by: java.lang.NullPointerException at org.kuali.student.lum.statement.config.context.util.NLHelper.getCluOrCluSetAsLongNames(NLHelper.java:44) at org.kuali.student.lum.statement.config.context.util.NLHelper.getCluOrCluSetAsLongNames(NLHelper.java:37) 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.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) ... 56 more

    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

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.