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

Rice Dev: KRAD, Sample Travel App bombing with Data Dictionary errors

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-b6, 2.0
    • Component/s: Unit Testing
    • Security Level: Public (Public: Anyone can view)
    • Labels:
    • Environment:
      Rice Dev
    • Similar issues:
      KULRICE-1200Get Rice sample app working again
      KULRICE-5651Create KRAD Version of Sample Travel App
      KULRICE-6300Travel Account link in KNS sample app throwing exception
      KULRICE-5471Rice Dev: KRAD Book Type Lookup bombs
      KULRICE-6399Make configuring the reloading data dictionary easier for client app developers
      KULRICE-11419KRAD Sample Travel App: Move unnecessary screens into their own menu section
      KULRICE-9944Sample Travel App is moving to the Component Library should be yanked from the default portal
      KULRICE-12590KRAD Sample App does not refresh database
      KULRICE-5502Rice Dev: KRAD Responsibility Inquiry Bombs to Error screen
      KULRICE-5503Rice Dev: KRAD Permission Inquiry Bombs to Error screen
    • Rice Module:
      KRAD
    • Application Requirement:
      Rice
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      When clicking on a lookup or any of the maintenance links (Main Menu > Sample Travel Application > Travel Fiscal Officer) an error screen is thrown and the following is in the log related to it. Not sure if it's because the Sample App isn't hooked up right or what....

      2011-08-08 08:59:08,599 [http-8081-10] u:admin/d: ERROR org.kuali.rice.kns.web.struts.form.pojo.StrutsExceptionIncidentHandler - Exception being handled by Exception Handler
      java.lang.ClassCastException: org.kuali.rice.krad.datadictionary.MaintenanceDocumentEntry cannot be cast to org.kuali.rice.kns.datadictionary.MaintenanceDocumentEntry
      	at org.kuali.rice.kns.service.impl.MaintenanceDocumentDictionaryServiceImpl.getMaintenanceDocumentEntry(MaintenanceDocumentDictionaryServiceImpl.java:244)
      	at org.kuali.rice.kns.service.impl.MaintenanceDocumentDictionaryServiceImpl.getDocumentTypeName(MaintenanceDocumentDictionaryServiceImpl.java:128)
      	at org.kuali.rice.kns.web.struts.action.KualiLookupAction.supressActionsIfNeeded(KualiLookupAction.java:106)
      	at org.kuali.rice.kns.web.struts.action.KualiLookupAction.execute(KualiLookupAction.java:145)
      	at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.processActionPerform(KualiRequestProcessor.java:524)
      	at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor$1.doInTransaction(KualiRequestProcessor.java:245)
      	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
      	at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.processFormActionAndForward(KualiRequestProcessor.java:206)
      	at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.strutsProcess(KualiRequestProcessor.java:199)
      	at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.process(KualiRequestProcessor.java:86)
      	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
      	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.kuali.rice.kew.web.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:77)
      	at org.kuali.rice.kew.web.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:61)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.kuali.rice.kew.web.UserLoginFilter.doFilter(UserLoginFilter.java:89)
      	at org.kuali.rice.kew.web.UserLoginFilter.doFilter(UserLoginFilter.java:77)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.kuali.rice.kew.web.BootstrapFilterChain.doFilter(BootstrapFilter.java:272)
      	at org.kuali.rice.kew.web.DummyLoginFilter.doFilter(DummyLoginFilter.java:97)
      	at org.kuali.rice.kew.web.DummyLoginFilter.doFilter(DummyLoginFilter.java:56)
      	at org.kuali.rice.kew.web.BootstrapFilterChain.doFilter(BootstrapFilter.java:265)
      	at org.kuali.rice.kew.web.BootstrapFilter.doFilter(BootstrapFilter.java:163)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.kuali.rice.krad.web.filter.HideWebInfFilter.doFilter(HideWebInfFilter.java:69)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
      	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      	at java.lang.Thread.run(Thread.java:619)

        Issue Links

          Activity

          Hide
          Aaron Hamid (Inactive) added a comment -

          The Travel Fiscal Officer maintenance doc (and other maintenance docs in the sample app) is defined as:

          <bean id="FiscalOfficerMaintenanceDocument-parentBean" abstract="true" parent="uifMaintenanceDocumentEntry">
          

          The uifMaintenanceDocumentEntry is a krad class that is not compatible with the kns MaintenanceDocumentEntry. It is defined in krad DataDictionaryBaseTypes.xml:

          <bean id="uifMaintenanceDocumentEntry"
          		class="org.kuali.rice.krad.datadictionary.MaintenanceDocumentEntry"
          		abstract="true">
                  <property name="maintainableClass" value="org.kuali.rice.krad.maintenance.MaintainableImpl"/>
                  <property name="dataObjectClass" value="org.kuali.rice.krad.document.MaintenanceDocumentBase"/>
              </bean>
          
          Show
          Aaron Hamid (Inactive) added a comment - The Travel Fiscal Officer maintenance doc (and other maintenance docs in the sample app) is defined as: <bean id= "FiscalOfficerMaintenanceDocument-parentBean" abstract= "true" parent= "uifMaintenanceDocumentEntry" > The uifMaintenanceDocumentEntry is a krad class that is not compatible with the kns MaintenanceDocumentEntry. It is defined in krad DataDictionaryBaseTypes.xml : <bean id= "uifMaintenanceDocumentEntry" class= "org.kuali.rice.krad.datadictionary.MaintenanceDocumentEntry" abstract= "true" > <property name= "maintainableClass" value= "org.kuali.rice.krad.maintenance.MaintainableImpl" /> <property name= "dataObjectClass" value= "org.kuali.rice.krad.document.MaintenanceDocumentBase" /> </bean>
          Hide
          Aaron Hamid (Inactive) added a comment -

          Maintenance docs using the org.kuali.rice.kns.datadictionary.MaintenanceDocumentEntry class work.

          It looks like a transition from kns to krad is in a partial state, maybe MaintenanceDocumentDictionaryService needs to be updated or replaced with a krad alternative?

          Show
          Aaron Hamid (Inactive) added a comment - Maintenance docs using the org.kuali.rice.kns.datadictionary.MaintenanceDocumentEntry class work. It looks like a transition from kns to krad is in a partial state, maybe MaintenanceDocumentDictionaryService needs to be updated or replaced with a krad alternative?
          Hide
          Eric Westfall added a comment -

          Bulk update of incomplete 2.0.0-b2 issues to just a 2.0 fix version.

          Show
          Eric Westfall added a comment - Bulk update of incomplete 2.0.0-b2 issues to just a 2.0 fix version.
          Hide
          Scott Gibson (Inactive) added a comment -

          We currently do not support both KNS and KRAD maintenance documents for the same business object class. For 2.0 we need to switch the links in the travel app channel to be KRAD links instead of KNS.

          Show
          Scott Gibson (Inactive) added a comment - We currently do not support both KNS and KRAD maintenance documents for the same business object class. For 2.0 we need to switch the links in the travel app channel to be KRAD links instead of KNS.
          Hide
          Matt Sargent added a comment -

          Looks good now. Thanks!
          _matt

          Show
          Matt Sargent added a comment - Looks good now. Thanks! _matt
          Hide
          Jessica Coltrin (Inactive) added a comment -

          Closing since these items are now in the release notes.

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

            People

            • Assignee:
              Samuel Holtzkampf (Inactive)
              Reporter:
              Matt Sargent
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Structure Helper Panel