Kuali Rice Development
  1. Kuali Rice Development
  2. KULRICE-13115

AFT Failure DemoWidgetsSuggestAft Service Method and Sorting Configuration not suggesting

    Details

    • Type: Task Task
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5
    • Component/s: Development, Regression
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-12095AFT Failure DemoWidgetsSuggestAft View Helper Method Configuration 2 Account not suggesting
      KULRICE-11502AFT Failure Demo Library Widgets Suggest mostly not suggesting
      KULRICE-11900AFT Failure View Help Method Suggest Widget has empty results
      KULRICE-13116AFT Failure DemoClientResponsivenessAjaxFieldQueryAft Ajax Field Query Custom Method and Service not suggesting
      KULRICE-11107AFT Failure KRAD LIbrary Widget Suggest Auto-Query Configuration requires capitalization to work now (uppercase)
      KULRICE-12014KRAD Library- Widgets - Suggest not working properly
      KULRICE-10595Library widgets suggest examples not working
      KULRICE-13057AFT Failure Ajax Field Query Custom Method and Service
      KULRICE-13108AFT Failure Ajax Field Query Custom Method and Service
      KULRICE-12510AFT Failure LabsLookupsAft Lookups, etc. Ajax Field Query Custom Method and Service loading new data over old
    • Sprint:
      Core 2.5.0-m6 Sprint 2, Core 2.5.0-m7 Sprint 1
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Story Points:
      1

      Description

      AFT Step: Open http://env14.rice.kuali.org/kr-krad/kradsampleapp?viewId=KradSampleAppHome
      AFT Step: Click Library Link
      AFT Step: Click Widgets link.
      AFT Step: Click Suggest link.
      AFT Step: Click Service Method and Sorting Configuration link.
      AFT Step: Type into inputField6 the text: Tr
      AFT Step: Click Travel Account 1 link.

      Abbreviated test name: DemoWidgetsSuggestAft.testWidgetsTooltipServiceSortingNav
      Full test name: org.kuali.rice.krad.demo.uif.library.widgets.DemoWidgetsSuggestAft.testWidgetsTooltipServiceSortingNav
      Test results url: http://ci.kuali.org/job/rice-2.5-test-functional-env14-jenkins-krad-sampleapp/lastCompletedBuild/testReport/org.kuali.rice.krad.demo.uif.library.widgets/DemoWidgetsSuggestAft/testWidgetsTooltipServiceSortingNav/

      Abbreviated test name: DemoWidgetsSuggestAft.testWidgetsTooltipServiceSortingBookmark
      Full test name: org.kuali.rice.krad.demo.uif.library.widgets.DemoWidgetsSuggestAft.testWidgetsTooltipServiceSortingBookmark
      Test results url: http://ci.kuali.org/job/rice-2.5-test-functional-env14-jenkins-krad-sampleapp/lastCompletedBuild/testReport/org.kuali.rice.krad.demo.uif.library.widgets/DemoWidgetsSuggestAft/testWidgetsTooltipServiceSortingBookmark/

      In addition, the following aft is also failing
      ------------------
      AFT Step: Open http://env14.rice.kuali.org/kr-krad/kradsampleapp?viewId=KradSampleAppHome
      AFT Step: Click Library Link
      AFT Step: Click Client Responsiveness link.
      AFT Step: Click AJAX Field Query link.
      AFT Step: Click Ajax Field Query Custom Method and Service link.
      AFT Step: Click By Name inputField9
      AFT Step: Press Tab key
      AFT Step: Is text 'Travel Account 3' present? false

      Abbreviated test name: DemoClientResponsivenessAjaxFieldQueryAft.testClientResponsivenessAjaxFieldQueryCustomMethodAndServiceNav
      Full test name: org.kuali.rice.krad.demo.uif.library.clientresponsiveness.DemoClientResponsivenessAjaxFieldQueryAft.testClientResponsivenessAjaxFieldQueryCustomMethodAndServiceNav
      Test results url: http://ci.kuali.org/job/rice-2.5-test-functional-env14-jenkins-krad-sampleapp/lastCompletedBuild/testReport/org.kuali.rice.krad.demo.uif.library.clientresponsiveness/DemoClientResponsivenessAjaxFieldQueryAft/testClientResponsivenessAjaxFieldQueryCustomMethodAndServiceNav/

      Abbreviated test name: DemoClientResponsivenessAjaxFieldQueryAft.testClientResponsivenessAjaxFieldQueryCustomMethodAndServiceBookmark
      Full test name: org.kuali.rice.krad.demo.uif.library.clientresponsiveness.DemoClientResponsivenessAjaxFieldQueryAft.testClientResponsivenessAjaxFieldQueryCustomMethodAndServiceBookmark
      Test results url: http://ci.kuali.org/job/rice-2.5-test-functional-env14-jenkins-krad-sampleapp/lastCompletedBuild/testReport/org.kuali.rice.krad.demo.uif.library.clientresponsiveness/DemoClientResponsivenessAjaxFieldQueryAft/testClientResponsivenessAjaxFieldQueryCustomMethodAndServiceBookmark/

        Issue Links

          Activity

          Hide
          Jeff Ruch added a comment - - edited

          These issues look like they maybe related:
          KULRICE-10193 - possibly the underlying cause.
          KULRICE-12908 - related failure. The fix was a workaround to check if the ViewPostMetadata is null.

          Show
          Jeff Ruch added a comment - - edited These issues look like they maybe related: KULRICE-10193 - possibly the underlying cause. KULRICE-12908 - related failure. The fix was a workaround to check if the ViewPostMetadata is null.
          Hide
          Jeff Ruch added a comment -

          Hi Jeff,

          I poked around with this a bit. I think what is happening is the first time you try this example, it is running into an exception trying to invoke this method:

          java.lang.RuntimeException: Unable to invoke query method: retrieveTravelAccountsByName
          at org.kuali.rice.krad.uif.service.impl.AttributeQueryServiceImpl.executeAttributeQueryMethod(AttributeQueryServiceImpl.java:410)
          at org.kuali.rice.krad.uif.service.impl.AttributeQueryServiceImpl.performFieldSuggestQuery(AttributeQueryServiceImpl.java:89)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:601)
          at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
          at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
          at net.bull.javamelody.MonitoringSpringInterceptor.invoke(MonitoringSpringInterceptor.java:74)
          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
          at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
          at com.sun.proxy.$Proxy178.performFieldSuggestQuery(Unknown Source)

          It looks like our Ajax handler is not picking up exceptions like this and redirecting (which we should create a Jira for). The exception handler likely picks this up and then clears out the form. So when you try the link directly, the form is there and you get the exception you posted (this is also why the others stop working). You can see the same error in localhost if you pass an unknown form key.

          I suspect if you were able to look at the logs in the envs, you would see this exception. I haven’t looking into why it is not able to invoke this method though.

          Would you mind to create a Jira for picking up exceptions on the Ajax call? It might be specific to the suggest.

          Let me know if there is anything else I can help with.

          Thanks,
          Jerry

          Show
          Jeff Ruch added a comment - Hi Jeff, I poked around with this a bit. I think what is happening is the first time you try this example, it is running into an exception trying to invoke this method: java.lang.RuntimeException: Unable to invoke query method: retrieveTravelAccountsByName at org.kuali.rice.krad.uif.service.impl.AttributeQueryServiceImpl.executeAttributeQueryMethod(AttributeQueryServiceImpl.java:410) at org.kuali.rice.krad.uif.service.impl.AttributeQueryServiceImpl.performFieldSuggestQuery(AttributeQueryServiceImpl.java:89) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at net.bull.javamelody.MonitoringSpringInterceptor.invoke(MonitoringSpringInterceptor.java:74) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy178.performFieldSuggestQuery(Unknown Source) It looks like our Ajax handler is not picking up exceptions like this and redirecting (which we should create a Jira for). The exception handler likely picks this up and then clears out the form. So when you try the link directly, the form is there and you get the exception you posted (this is also why the others stop working). You can see the same error in localhost if you pass an unknown form key. I suspect if you were able to look at the logs in the envs, you would see this exception. I haven’t looking into why it is not able to invoke this method though. Would you mind to create a Jira for picking up exceptions on the Ajax call? It might be specific to the suggest. Let me know if there is anything else I can help with. Thanks, Jerry
          Hide
          Jeff Ruch added a comment -

          KULRICE-13148 was created for the Ajax failure.

          Show
          Jeff Ruch added a comment - KULRICE-13148 was created for the Ajax failure.
          Hide
          Jeff Ruch added a comment - - edited

          Looks like this is the source error.

          Caused by: java.lang.NoSuchMethodException: com.sun.proxy.$Proxy435.retrieveTravelAccountsByName(java.lang.String)
          at java.lang.Class.getMethod(Class.java:1624)
          at org.springframework.util.MethodInvoker.prepare(MethodInvoker.java:174)
          at org.kuali.rice.krad.uif.component.MethodInvokerConfig.prepare(MethodInvokerConfig.java:55)
          at org.kuali.rice.krad.uif.service.impl.AttributeQueryServiceImpl.executeAttributeQueryMethod(AttributeQueryServiceImpl.java:406)

          Show
          Jeff Ruch added a comment - - edited Looks like this is the source error. Caused by: java.lang.NoSuchMethodException: com.sun.proxy.$Proxy435.retrieveTravelAccountsByName(java.lang.String) at java.lang.Class.getMethod(Class.java:1624) at org.springframework.util.MethodInvoker.prepare(MethodInvoker.java:174) at org.kuali.rice.krad.uif.component.MethodInvokerConfig.prepare(MethodInvokerConfig.java:55) at org.kuali.rice.krad.uif.service.impl.AttributeQueryServiceImpl.executeAttributeQueryMethod(AttributeQueryServiceImpl.java:406)
          Hide
          Kristina Taylor (Inactive) added a comment -

          Could this central error be related to the service bus being in a different mode on our local environments vs. on our hosted environments? It's a shot in the dark, but it's very possible that it can't quite find the componentViewHelperService.

          Show
          Kristina Taylor (Inactive) added a comment - Could this central error be related to the service bus being in a different mode on our local environments vs. on our hosted environments? It's a shot in the dark, but it's very possible that it can't quite find the componentViewHelperService .

            People

            • Assignee:
              Kristina Taylor (Inactive)
              Reporter:
              Erik Meade
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Agile

                  Structure Helper Panel