Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-5808

Fix cache errors when injecting service containing cache annotations with spring

    Details

    • Type: Task
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-b1, 2.0
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      We are getting errors saying the cache can't be found when we are injecting a service containing cache annotations with spring.

      Example integration test is PeopleFlowRoutingTest, where RoleService is injected into the peopleFlowRequestGenerator in KEWSpringBeans.

      2011-10-21 20:30:04,165 [main] ERROR org.kuali.rice.kew.engine.node.RequestsNode - Caught exception routing
      java.lang.IllegalArgumentException: Cannot find cache named http://rice.kuali.org/kim/v2_0/RoleType for CacheDefinition[public abstract org.kuali.rice.kim.api.role.Role org.kuali.rice.kim.api.role.RoleService.getRole(java.lang.String) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException] caches=http://rice.kuali.org/kim/v2_0/RoleType | condition='' | key=''id=' + #p0'
      at org.springframework.cache.interceptor.CacheAspectSupport.getCaches(CacheAspectSupport.java:163)
      at org.springframework.cache.interceptor.CacheAspectSupport$CacheOperationContext.<init>(CacheAspectSupport.java:303)
      at org.springframework.cache.interceptor.CacheAspectSupport.getOperationContext(CacheAspectSupport.java:173)
      at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:196)
      at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:66)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      at $Proxy129.getRole(Unknown Source)
      at org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.generateRequestForRoleMember(PeopleFlowRequestGeneratorImpl.java:76)
      at org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.generateRequestForMember(PeopleFlowRequestGeneratorImpl.java:60)
      at org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.generateRequests(PeopleFlowRequestGeneratorImpl.java:49)
      at org.kuali.rice.kew.impl.peopleflow.PeopleFlowRouteModule.findActionRequests(PeopleFlowRouteModule.java:58)

        Attachments

          Activity

          Hide
          riceci Rice-CI User (Inactive) added a comment -

          Integrated in rice-trunk-nightly #240 (See http://ci.rice.kuali.org/job/rice-trunk-nightly/240/)
          KULRICE-5808 - fix cache errors

          Show
          riceci Rice-CI User (Inactive) added a comment - Integrated in rice-trunk-nightly #240 (See http://ci.rice.kuali.org/job/rice-trunk-nightly/240/ ) KULRICE-5808 - fix cache errors
          Hide
          jcoltrin Jessica Coltrin (Inactive) added a comment -

          Closing since these items are now in the release notes.

          Show
          jcoltrin Jessica Coltrin (Inactive) added a comment - Closing since these items are now in the release notes.

            People

            • Assignee:
              jjhanso Jeremy Hanson
              Reporter:
              jjhanso Jeremy Hanson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified