cancel
Showing results for 
Search instead for 
Did you mean: 

Search indexing not working properly

techguy817
Champ in-the-making
Champ in-the-making
Hello all,

I recently installed Alfresco 4.0 on a 2008 R2 server to test for document management at my company.  I uploaded a couple of PPTs and DOCs and they indexed fine and I was able to search within their contents.  When I created folders and uploaded some more PPTs and DOCs I can't search within these documents or even within their titles.  I'm not sure why I can search some docs and not others.  Where can I troubleshoot this or re-index?  I've waited a few hours and rebooted the server as well but still the documents are not indexed.

Thanks,
Al
6 REPLIES 6

techguy817
Champ in-the-making
Champ in-the-making
So are there any log files that I can check?  How exactly does the indexing process work once documents are uploaded?  I also notice that the default document icon hasn't changed to the preview from the file.  Trying to figure this out…

kriton
Champ in-the-making
Champ in-the-making
I got exactly the same problem. It seems to me that it is a bug in alfresco, as I've done multiple installations on different machines (both unix and windows) with both 4.0a and 4.0b and got the problem all the times.

I believe this is also related to this problem: https://forums.alfresco.com/en/viewtopic.php?f=47&t=41543 I posted.

kriton
Champ in-the-making
Champ in-the-making
My update on this issue: I've tried various things and I still can not get things sorted. I think've identified the source of the problem.

When tomcat starts I get this exception:
Nov 4, 2011 9:40:50 AM org.apache.solr.common.SolrException log
SEVERE: org.alfresco.service.cmr.dictionary.DictionaryException: 10040001 Failed to compile model afgen:advancedwfs
                at org.alfresco.repo.dictionary.CompiledModel.<init>(CompiledModel.java:108)
                at org.alfresco.repo.dictionary.M2Model.compile(M2Model.java:163)
                at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModelImpl(DictionaryDAOImpl.java:298)
                at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModelIgnoringConstraints(DictionaryDAOImpl.java:287)
                at org.alfresco.solr.AlfrescoSolrDataModel.putModel(AlfrescoSolrDataModel.java:626)
                at org.alfresco.solr.AlfrescoDataType.loadModel(AlfrescoDataType.java:325)
                at org.alfresco.solr.AlfrescoDataType.init(AlfrescoDataType.java:164)
                at org.apache.solr.schema.FieldType.setArgs(FieldType.java:117)
                at org.apache.solr.schema.IndexSchema$1.init(IndexSchema.java:443)
                at org.apache.solr.schema.IndexSchema$1.init(IndexSchema.java:414)
                at org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:176)
                at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:456)
                at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:95)
                at org.apache.solr.core.CoreContainer.create(CoreContainer.java:426)
                at org.apache.solr.core.CoreContainer.load(CoreContainer.java:278)
                at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:117)
                at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
                at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
                at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
                at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
                at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838)
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4488)
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
                at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
                at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
                at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
                at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
                at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
                at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
                at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
                at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
                at org.apache.catalina.core.StandardService.start(StandardService.java:519)
                at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
                at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
                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.catalina.startup.Bootstrap.start(Bootstrap.java:289)
                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 10040000 Mandatory aspect wf:assignee2 of class afgen:SendtoClientTask is not found
                at org.alfresco.repo.dictionary.M2ClassDefinition.resolveDependencies(M2ClassDefinition.java:236)
                at org.alfresco.repo.dictionary.CompiledModel.resolveDependencies(CompiledModel.java:233)
                at org.alfresco.repo.dictionary.CompiledModel.<init>(CompiledModel.java:92)
                … 43 more

Nov 4, 2011 9:40:50 AM org.apache.solr.common.SolrException log
SEVERE: java.lang.NullPointerException
                at org.alfresco.solr.AlfrescoSolrDataModel.getSolrLuceneAnalyser(AlfrescoSolrDataModel.java:1426)
                at org.alfresco.solr.AlfrescoDataType.getAnalyzer(AlfrescoDataType.java:232)
                at org.alfresco.solr.AlfrescoDataType.getAnalyzer(AlfrescoDataType.java:69)
                at org.apache.solr.schema.IndexSchema$SolrIndexAnalyzer.analyzerCache(IndexSchema.java:345)
                at org.apache.solr.schema.IndexSchema$SolrIndexAnalyzer.<init>(IndexSchema.java:339)
                at org.apache.solr.schema.IndexSchema.refreshAnalyzers(IndexSchema.java:331)
                at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:660)
                at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:95)
                at org.apache.solr.core.CoreContainer.create(CoreContainer.java:426)
                at org.apache.solr.core.CoreContainer.load(CoreContainer.java:278)
                at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:117)
                at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
                at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
                at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
                at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
                at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838)
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4488)
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
                at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
                at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
                at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
                at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
                at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
                at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
                at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
                at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
                at org.apache.catalina.core.StandardService.start(StandardService.java:519)
                at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
                at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
                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.catalina.startup.Bootstrap.start(Bootstrap.java:289)
                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

Nov 4, 2011 9:40:50 AM org.apache.solr.common.SolrException log
SEVERE: org.alfresco.service.cmr.dictionary.DictionaryException: 10040003 Failed to compile model afgen:advancedwfs
                at org.alfresco.repo.dictionary.CompiledModel.<init>(CompiledModel.java:108)
                at org.alfresco.repo.dictionary.M2Model.compile(M2Model.java:163)
                at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModelImpl(DictionaryDAOImpl.java:298)
                at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModelIgnoringConstraints(DictionaryDAOImpl.java:287)
                at org.alfresco.solr.AlfrescoSolrDataModel.putModel(AlfrescoSolrDataModel.java:626)
                at org.alfresco.solr.AlfrescoDataType.loadModel(AlfrescoDataType.java:325)
                at org.alfresco.solr.AlfrescoDataType.init(AlfrescoDataType.java:164)
                at org.apache.solr.schema.FieldType.setArgs(FieldType.java:117)
                at org.apache.solr.schema.IndexSchema$1.init(IndexSchema.java:443)
                at org.apache.solr.schema.IndexSchema$1.init(IndexSchema.java:414)
                at org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:176)
                at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:456)
                at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:95)
                at org.apache.solr.core.CoreContainer.create(CoreContainer.java:426)
                at org.apache.solr.core.CoreContainer.load(CoreContainer.java:278)
                at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:117)
                at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
                at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
                at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
                at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
                at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838)
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4488)
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
                at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
                at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
                at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
                at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
                at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
                at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
                at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
                at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
                at org.apache.catalina.core.StandardService.start(StandardService.java:519)
                at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
                at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
                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.catalina.startup.Bootstrap.start(Bootstrap.java:289)
                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 10040002 Mandatory aspect wf:assignee2 of class afgen:SendtoClientTask is not found
                at org.alfresco.repo.dictionary.M2ClassDefinition.resolveDependencies(M2ClassDefinition.java:236)
                at org.alfresco.repo.dictionary.CompiledModel.resolveDependencies(CompiledModel.java:233)
                at org.alfresco.repo.dictionary.CompiledModel.<init>(CompiledModel.java:92)
                … 43 more

Nov 4, 2011 9:40:50 AM org.apache.solr.common.SolrException log
SEVERE: java.lang.NullPointerException
                at org.alfresco.solr.AlfrescoSolrDataModel.getSolrLuceneAnalyser(AlfrescoSolrDataModel.java:1426)
                at org.alfresco.solr.AlfrescoDataType.getAnalyzer(AlfrescoDataType.java:232)
                at org.alfresco.solr.AlfrescoDataType.getAnalyzer(AlfrescoDataType.java:69)
                at org.apache.solr.schema.IndexSchema$SolrIndexAnalyzer.analyzerCache(IndexSchema.java:345)
                at org.apache.solr.schema.IndexSchema$SolrIndexAnalyzer.<init>(IndexSchema.java:339)
                at org.apache.solr.schema.IndexSchema.refreshAnalyzers(IndexSchema.java:331)
                at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:660)
                at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:95)
                at org.apache.solr.core.CoreContainer.create(CoreContainer.java:426)
                at org.apache.solr.core.CoreContainer.load(CoreContainer.java:278)
                at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:117)
                at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
                at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
                at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
                at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
                at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838)
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4488)
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
                at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
                at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
                at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
                at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
                at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
                at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
                at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
                at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
                at org.apache.catalina.core.StandardService.start(StandardService.java:519)
                at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
                at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
                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.catalina.startup.Bootstrap.start(Bootstrap.java:289)
                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

This is the afgen:advancedwfs model tha is related to this excpetion.
<?xml version="1.0" encoding="UTF-8"?>
<model name="afgen:advancedwfs" xmlns="http://www.alfresco.org/model/dictionary/1.0">
   <imports>
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
      <import uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf"/>
      <import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"/>
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
   </imports>
   <namespaces>
      <namespace uri="afgen.model" prefix="afgen"/>
   </namespaces>
   

   
   <types>

      <type name="afgen:SendtoClientTask">
         <title>Send to Client</title>
         <parent>bpm:workflowTask</parent>
            <properties>
                <property name="afgen:transition0">
                    <type>d:text</type>
               <default>Finish Workflow</default>
                    <constraints>
                        <constraint name="afgen:transition0Options" type="LIST">
                            <parameter name="allowedValues">
                                <list>
                                    <value>Finish Workflow</value>
                                </list>
                            </parameter>
                        </constraint>
                    </constraints>
                </property>
                <property name="afgen:emailclient">
                    <type>d:boolean</type>
               <default>false</default>
                </property>               
            </properties>
         
         <overrides>
            <property name="bpm:packageItemActionGroup">
               <default>edit_package_item_actions</default>
            </property>
            <property name="bpm:outcomePropertyName">
                <default>{afgen.model}transition0</default>
            </property>            
        </overrides>
       
          <mandatory-aspects>
            <aspect>wf:assignee2</aspect>
          </mandatory-aspects>             
      
      </type>

 
   </types>
   
</model>

This is the modified workflowModel.xml (It just has an extra added aspect at the end of it):
<?xml version="1.0" encoding="UTF-8"?>

<model name="wf:workflowmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <imports>
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
      <import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"/>
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
   </imports>

   <namespaces>
      <namespace uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf"/>
   </namespaces>
     
   <types>

      <!–                               –>
      <!–  Basic Review & Approve Tasks –>              
      <!–                               –>
     
      <type name="wf:submitReviewTask">
         <parent>bpm:startTask</parent>
         <mandatory-aspects>
            <aspect>bpm:assignee</aspect>
         </mandatory-aspects>
      </type>

      <type name="wf:submitConcurrentReviewTask">
         <parent>bpm:startTask</parent>
         <properties>
            <property name="wf:requiredApprovePercent">
                <type>d:int</type>
                <mandatory>true</mandatory>
                <default>50</default>
                <constraints>
                    <constraint type="MINMAX">
                        <parameter name="minValue"><value>1</value></parameter>
                        <parameter name="maxValue"><value>100</value></parameter>
                    </constraint>
                </constraints>
            </property>
         </properties>
      </type>

      <!–  Submit review to multiple people (explicit list) –>
      <type name="wf:submitParallelReviewTask">
         <parent>wf:submitConcurrentReviewTask</parent>
         <mandatory-aspects>
            <aspect>bpm:assignees</aspect>
         </mandatory-aspects>
      </type>

      <!–  Submit review to multiple people (as included in a group) –>
      <type name="wf:submitGroupReviewTask">
         <parent>wf:submitConcurrentReviewTask</parent>
         <mandatory-aspects>
            <aspect>bpm:groupAssignee</aspect>
         </mandatory-aspects>
      </type>

      <type name="wf:reviewTask">
         <parent>bpm:workflowTask</parent>
         <overrides>
            <property name="bpm:packageItemActionGroup">
               <default>edit_package_item_actions</default>
            </property>
         </overrides>
      </type>

        <type name="wf:activitiReviewTask">
            <parent>bpm:activitiOutcomeTask</parent>
            <properties>
                <property name="wf:reviewOutcome">
                    <type>d:text</type>
                    <default>Reject</default>
                    <constraints>
                        <constraint name="wf:reviewOutcomeOptions" type="LIST">
                            <parameter name="allowedValues">
                                <list>
                                    <value>Approve</value>
                                    <value>Reject</value>
                                </list>
                            </parameter>
                        </constraint>
                    </constraints>
                </property>
            </properties>
            <overrides>
                <property name="bpm:packageItemActionGroup">
                    <default>edit_package_item_actions</default>
                </property>
                <property name="bpm:outcomePropertyName">
                    <default>{http://www.alfresco.org/model/workflow/1.0}reviewOutcome</default>
                </property>
            </overrides>
        </type>

      <type name="wf:approvedTask">
         <parent>bpm:workflowTask</parent>
         <mandatory-aspects>
            <aspect>bpm:assignee</aspect>
         </mandatory-aspects>
      </type>

      <type name="wf:rejectedTask">
         <parent>bpm:workflowTask</parent>
         <mandatory-aspects>
            <aspect>bpm:assignee</aspect>
         </mandatory-aspects>
      </type>

      <type name="wf:rejectedParallelTask">
         <parent>bpm:workflowTask</parent>
         <mandatory-aspects>
            <aspect>wf:parallelReviewStats</aspect>
         </mandatory-aspects>
      </type>

      <type name="wf:approvedParallelTask">
         <parent>bpm:workflowTask</parent>
         <mandatory-aspects>
            <aspect>wf:parallelReviewStats</aspect>
         </mandatory-aspects>
      </type>


      <!–                               –>
      <!–  Adhoc Tasks –>              
      <!–                               –>
     
      <type name="wf:submitAdhocTask">
         <parent>bpm:startTask</parent>
         <properties>
            <property name="wf:notifyMe">
               <type>d:boolean</type>
               <default>false</default>
            </property>
         </properties>
         <mandatory-aspects>
            <aspect>bpm:assignee</aspect>
         </mandatory-aspects>
      </type>

      <type name="wf:adhocTask">
         <parent>bpm:workflowTask</parent>
         <overrides>
            <property name="bpm:packageActionGroup">
               <default>add_package_item_actions</default>
            </property>
            <property name="bpm:packageItemActionGroup">
               <default>edit_package_item_actions</default>
            </property>
         </overrides>
      </type>

      <type name="wf:completedAdhocTask">
         <parent>bpm:workflowTask</parent>
         <mandatory-aspects>
            <aspect>bpm:assignee</aspect>
         </mandatory-aspects>
      </type>
       
      <!– Deprecated workflow task from Alfresco 3.0 –>
      <!– Needs to be defined for patch.InvitationMigration which gets rid of it.  –>
     
      <type name="wf:inviteToSiteTask">
         <parent>bpm:startTask</parent>
         <properties>
            <property name="wf:serverPath">
               <type>d:text</type>
            </property>
            <property name="wf:acceptUrl">
               <type>d:text</type>
            </property>
            <property name="wf:rejectUrl">
               <type>d:text</type>
            </property>
            <property name="wf:inviteTicket">
               <type>d:text</type>
            </property>
            <property name="wf:inviterUserName">
               <type>d:text</type>
            </property>
            <property name="wf:inviteeUserName">
               <type>d:text</type>
            </property>
            <property name="wf:inviteeFirstName">
               <type>d:text</type>
            </property>
            <property name="wf:inviteeLastName">
               <type>d:text</type>
            </property>
            <property name="wf:inviteeGenPassword">
               <type>d:text</type>
            </property>
            <property name="wf:siteShortName">
               <type>d:text</type>
            </property>
            <property name="wf:inviteeSiteRole">
               <type>d:text</type>
            </property>
         </properties>
         <mandatory-aspects>
            <aspect>bpm:assignee</aspect>
         </mandatory-aspects>
      </type>

   </types>
  
   <aspects>
  
      <aspect name="wf:parallelReviewStats">
         <properties>
            <property name="wf:reviewerCount">
               <type>d:int</type>
            </property>
            <property name="wf:requiredPercent">
               <type>d:int</type>
            </property>
            <property name="wf:approveCount">
               <type>d:int</type>
            </property>
            <property name="wf:actualPercent">
               <type>d:int</type>
            </property>
         </properties>
      </aspect>
      
      <aspect name="wf:assignee2">
          <associations>

              <association name="wf:assignee2">
                  <source>
                      <mandatory>false</mandatory>
                      <many>false</many>
                  </source>
                  <target>
                      <class>cm:person</class>
                      <mandatory>true</mandatory>
                      <many>false</many>
                  </target>
              </association>

          </associations>
      </aspect>
          
   </aspects>

</model>

Once tomcat starts, I get this exception which repeats itself whenever solr is called in share:
ERROR [extensions.webscripts.AbstractRuntime] [http-8080-16] Exception from executeScript - redirecting to status template error: 10040002 Wrapped Exception (with status template): 10040006 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js': 10040005 Failed to execute search: +PATH:"/app:company_home/st:sites/*/cm:documentLibrary//*" +@cm\:modified:[2011\-10\-28T00\:00\:00.000 TO 2011\-11\-4T23\:59\:59.999] +@cm\:modifier:"admin" +TYPE:"cm:content" -TYPE:"cm:systemfolder" -TYPE:"fm:forums" -TYPE:"fm:forum" -TYPE:"fm:topic" -TYPE:"fm:post" +(TYPE:"content" OR TYPE:"app:filelink" OR TYPE:"folder")
org.springframework.extensions.webscripts.WebScriptException: 10040002 Wrapped Exception (with status template): 10040006 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js': 10040005 Failed to execute search: +PATH:"/app:company_home/st:sites/*/cm:documentLibrary//*" +@cm\:modified:[2011\-10\-28T00\:00\:00.000 TO 2011\-11\-4T23\:59\:59.999] +@cm\:modifier:"admin" +TYPE:"cm:content" -TYPE:"cm:systemfolder" -TYPE:"fm:forums" -TYPE:"fm:forum" -TYPE:"fm:topic" -TYPE:"fm:post" +(TYPE:"content" OR TYPE:"app:filelink" OR TYPE:"folder")
                at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:905)
                at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
                at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:393)
                at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
                at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:462)
                at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:500)
                at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:316)
                at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:372)
                at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
                at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
                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.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)
                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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
                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)
Caused by: org.alfresco.scripts.ScriptException: 10040006 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js': 10040005 Failed to execute search: +PATH:"/app:company_home/st:sites/*/cm:documentLibrary//*" +@cm\:modified:[2011\-10\-28T00\:00\:00.000 TO 2011\-11\-4T23\:59\:59.999] +@cm\:modifier:"admin" +TYPE:"cm:content" -TYPE:"cm:systemfolder" -TYPE:"fm:forums" -TYPE:"fm:forum" -TYPE:"fm:topic" -TYPE:"fm:post" +(TYPE:"content" OR TYPE:"app:filelink" OR TYPE:"folder")
                at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:195)
                at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:282)
                at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)
                at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1128)
                at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
                … 25 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: 10040005 Failed to execute search: +PATH:"/app:company_home/st:sites/*/cm:documentLibrary//*" +@cm\:modified:[2011\-10\-28T00\:00\:00.000 TO 2011\-11\-4T23\:59\:59.999] +@cm\:modifier:"admin" +TYPE:"cm:content" -TYPE:"cm:systemfolder" -TYPE:"fm:forums" -TYPE:"fm:forum" -TYPE:"fm:topic" -TYPE:"fm:post" +(TYPE:"content" OR TYPE:"app:filelink" OR TYPE:"folder")
                at org.alfresco.repo.jscript.Search.query(Search.java:814)
                at org.alfresco.repo.jscript.Search.query(Search.java:680)
                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.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
                at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
                at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
                at org.mozilla.javascript.gen.c5._c19(file:/data/alfresco-4.0.b/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js:1151)
                at org.mozilla.javascript.gen.c5.call(file:/data/alfresco-4.0.b/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js)
                at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
                at org.mozilla.javascript.gen.c5._c0(file:/data/alfresco-4.0.b/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js:1355)
                at org.mozilla.javascript.gen.c5.call(file:/data/alfresco-4.0.b/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js)
                at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
                at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
                at org.mozilla.javascript.gen.c5.call(file:/data/alfresco-4.0.b/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js)
                at org.mozilla.javascript.gen.c5.exec(file:/data/alfresco-4.0.b/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js)
                at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:483)
                at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:191)
                … 29 more
Caused by: org.alfresco.repo.search.impl.lucene.LuceneQueryParserException: 10040004 Request failed 404 /solr/alfresco/alfresco?q=%2BPATH%3A%22%2Fapp%3Acompany_home%2Fst%3Asites%2F*%2Fcm%3AdocumentLibrary%2F%2F*%22+%2B%40cm%5C%3Amodified%3A%5B2011%5C-10%5C-28T00%5C%3A00%5C%3A00.000+TO+2011%5C-11%5C-4T23%5C%3A59%5C%3A59.999%5D+%2B%40cm%5C%3Amodifier%3A%22admin%22+%2BTYPE%3A%22cm%3Acontent%22+-TYPE%3A%22cm%3Asystemfolder%22+-TYPE%3A%22fm%3Aforums%22+-TYPE%3A%22fm%3Aforum%22+-TYPE%3A%22fm%3Atopic%22+-TYPE%3A%22fm%3Apost%22+%2B%28TYPE%3A%22content%22+OR+TYPE%3A%22app%3Afilelink%22+OR+TYPE%3A%22folder%22%29&wt=json&fl=*%2Cscore&rows=50&df=TEXT&start=0&locale=en_GB&sort=%40cm%3Amodified+desc&fq=%7B%21afts%7DAUTHORITY_FILTER_FROM_JSON
                at org.alfresco.repo.search.impl.solr.SolrQueryHTTPClient.executeQuery(SolrQueryHTTPClient.java:335)
                at org.alfresco.repo.search.impl.solr.SolrQueryLanguage.executeQuery(SolrQueryLanguage.java:49)
                at org.alfresco.repo.search.impl.solr.SolrSearchService.query(SolrSearchService.java:367)
                at org.alfresco.repo.search.SearcherComponent.query(SearcherComponent.java:78)
                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.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:65)
                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
                at $Proxy13.query(Unknown Source)
                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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
                at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
                at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44)
                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:146)
                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                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.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
                at $Proxy13.query(Unknown Source)
                at org.alfresco.repo.jscript.Search.query(Search.java:794)
                … 48 more

I have to note that the customized wokflow model works fine. I use it in customized workflows with no problems. The problem lies somewhere with how solr indexed it I guess ? I've tried reverting all the workflow model modifications and the problem persists. I've tried deleting all the files under alf_data/solr/workspace-spacesStore/alfrescoModel/ and the problem still persists! So I am out of ideas…

Another thing I have to note, is that this problem does not appear to all environments. I do not face on my windows installation, but I face it on a linux installation. I've tried installling anew on linux and the problem did appear once I modified the workflowModel again though. Furthermore if ~I modify index.subsystem.name in the properties file from solr to lucene, things will work fine (search will work using lucene) but I get the solr related exception on the tomcat startup still, although it does not seem to have any effect in the system.

kriton
Champ in-the-making
Champ in-the-making
Another update: I've deleted everything under data/solr/archive-spacesStore/alfrescoModel/ as well and this did the trick so solr is working again. I havent tried modifying the workflow model again, but my guess is that if I do it could get corrupted again, I suppose thats a bug ?

techguy817
Champ in-the-making
Champ in-the-making
Thanks for sharing your insight Kriton!  As per your suggestion, I renamed the AlfrescoModels folder at C:\Alfresco\alf_data\solr\archive-SpacesStore with _old and restarted TOMCAT which created a new AlfrescoModels folder.  The search indexing still doesn't appear to be working properly.  I search for common words contained in a PPTX PowerPoint file and it never finds it.  The words do show up in the document preview in the browser though (they are not images and the preview formatting is off which is another issue).  Is there a way to raise this as an issue?  It seems like basic functionality to me and would prevent our company from adopting Alfresco.

Regards,
Al

ezah
Champ in-the-making
Champ in-the-making
Hi techguy817 and Kriton

You saved my day and night.  I have the same in Debian with Alfresco-4.0.c.
If you solve please let us know.

Thanks.

Elias