Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-16349

can only start sakai 100 times (if problem replacing metaobj resource)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.6.0, 2.7.0
    • Component/s: Metaobj
    • Labels:
      None

      Description

      I'll come back and add more detail later. I need to get to a meeting. After converting our database to 2.6, we were unable to start Sakai. It failed in metaobj, but this failure causes Sakai not to be able to start.

      rg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'structuredArtifactDefinitionManagerTarget' defined in file [/army/sunone/sakai2/apach\
      e-tomcat-5.5.20/components/sakai-metaobj-component/WEB-INF/components.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: org.sakaiprojec\
      t.exception.IdUniquenessException: /group/PortfolioAdmin/system/formCreate-100.xslt id=/group/PortfolioAdmin/system/formCreate-100.xslt
      Caused by:
      java.lang.RuntimeException: org.sakaiproject.exception.IdUniquenessException: /group/PortfolioAdmin/system/formCreate-100.xslt id=/group/PortfolioAdmin/system/formCreate-100\
      .xslt
      at org.sakaiproject.metaobj.shared.mgt.impl.StructuredArtifactDefinitionManagerImpl.createResource(StructuredArtifactDefinitionManagerImpl.java:1481)
      at org.sakaiproject.metaobj.shared.mgt.impl.StructuredArtifactDefinitionManagerImpl.init(StructuredArtifactDefinitionManagerImpl.java:713)

      Here's the fix, which unfortunately I don't have time to explain now:

      In metaobj-impl/component/src/webapp/WEB-INF/components.xml

      <property name="expressionMax"><value>999</value></property>
      + <property name="replaceViews"><value>false</value></property>
      <property name="securityService"><ref bean="org.sakaiproject.authz.api.SecurityService"/></property>
      <property name="formConsumers"><list/></property>
      <property name="structuredArtifactFinder">

      The problem is that it keeps trying to create new versions of /formCreate-100.xslt, but the call to addresource says only to create 100 copies. So it fails at the 100'th start. The solution it not to allow a milliion copies, but to stop it from trying to create a new one each time. Somehow that patch does it, but I've forgotten the details.

      This might reasonably be considered a blocker for all releases after metaobj was integrated into the default version, since it will stop the system from coming up.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  noahbotimer Noah Botimer
                  Reporter:
                  hedrick Charles Hedrick
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration