AnsweredAssumed Answered

Calculated field on a Datalist

Question asked by acurs on Dec 12, 2011
Hello everyone,

         I've been trying to create a calculated field base on a custom list I have.

This is the post where I took as reference to achieve this:
http://www.boulderhopkins.com/2010/10/creating-calculated-datalist-columns-in.html

This is the class extending the AbstractFilter class

package com.projectmanagement;

import java.util.Calendar;


public class ProjectDurationFilter extends AbstractFilter<Object, NodeRef> {
   
   private ServiceRegistry AlfUtil;
   private DictionaryService dictionaryService;


      
   @SuppressWarnings("rawtypes")
   public void afterGenerate(Object item, List fields, List forcedFields, Form form, Map context)
      {
      boolean typeDefCorrect = (item instanceof TypeDefinition && ((TypeDefinition) item).getName().equals(Projectmanagement_datalist_model.TYPE_WorkplanItem));
      
      boolean nodeRefCorrect = (item instanceof NodeRef && AlfUtil.getNodeService().getType((NodeRef) item).equals(Projectmanagement_datalist_model.TYPE_WorkplanItem));
      
      if(typeDefCorrect || nodeRefCorrect)
      {
         // If this is a node then do the calculations
         if (nodeRefCorrect) {
           NodeRef itemNode = (NodeRef) item;
           /* Some calculations that aren't interesting */
           // chequeo que las fechas hayan sido inicializadas
           // redundante puesto que puedo poner la propiedad como mandatoria
           if((AlfUtil.getNodeService().getProperty(itemNode,Projectmanagement_datalist_model.PROP_PlannedStartDate) != null) &&
                 (AlfUtil.getNodeService().getProperty(itemNode,Projectmanagement_datalist_model.PROP_PlannedEndDate) != null))
           {
              //chequeo que las fechas de las tarea sea consistente
              
              //primero desgloso la fecha que viene en String
              int anioStartDate =Integer.parseInt(AlfUtil.getNodeService().getProperty(itemNode,Projectmanagement_datalist_model.PROP_PlannedStartDate).toString().substring(0, 3));
              int mesStartDate = Integer.parseInt(AlfUtil.getNodeService().getProperty(itemNode,Projectmanagement_datalist_model.PROP_PlannedStartDate).toString().substring(4, 5));
              int diaStartDate = Integer.parseInt(AlfUtil.getNodeService().getProperty(itemNode,Projectmanagement_datalist_model.PROP_PlannedStartDate).toString().substring(6, 7));
              
              int anioEndDate = Integer.parseInt(AlfUtil.getNodeService().getProperty(itemNode,Projectmanagement_datalist_model.PROP_PlannedEndDate).toString().substring(0,3));
              int mesEndDate = Integer.parseInt(AlfUtil.getNodeService().getProperty(itemNode,Projectmanagement_datalist_model.PROP_PlannedEndDate).toString().substring(4,5));
              int diaEndDate = Integer.parseInt(AlfUtil.getNodeService().getProperty(itemNode,Projectmanagement_datalist_model.PROP_PlannedEndDate).toString().substring(6,7));
              
              
              Calendar startDate = Calendar.getInstance();
              startDate.set(anioStartDate, mesStartDate, diaStartDate);
              Calendar endDate = Calendar.getInstance();
              endDate.set(anioEndDate, mesEndDate, diaEndDate);
      
                       
              switch(endDate.compareTo(startDate)){
                 case 1:{
                 System.out.println("Las fechas2 es mayor");
                 /* Here are the changes for 3.4b */
                 Calendar duration = Calendar.getInstance();
                 duration.setTimeInMillis(endDate.getTimeInMillis()-startDate.getTimeInMillis());
                   form.addField(FieldUtils.makePropertyField(dictionaryService.getProperty(Projectmanagement_datalist_model.PROP_Duration),duration.get(Calendar.DAY_OF_YEAR),form.getFieldGroups().iterator().next(), AlfUtil.getNamespaceService()));
                 break;}
                 case 0:
                 System.out.println("Las fechas son iguales");
                 form.addField(FieldUtils.makePropertyField(dictionaryService.getProperty(Projectmanagement_datalist_model.PROP_Duration),0,form.getFieldGroups().iterator().next(), AlfUtil.getNamespaceService()));
                 break;
                 case -1:
                 System.out.println("La fecha2 es menor");
                 form.addField(FieldUtils.makePropertyField(dictionaryService.getProperty(Projectmanagement_datalist_model.PROP_Duration),0,form.getFieldGroups().iterator().next(), AlfUtil.getNamespaceService()));
                 break;
                 }       
              
           }   
           else {
              form.addField(FieldUtils.makePropertyField(dictionaryService.getProperty(Projectmanagement_datalist_model.PROP_Duration),0,form.getFieldGroups().iterator().next(), AlfUtil.getNamespaceService()));
           }
                            
         }
        
      
     }
   }
     /* Left the other 3 fuctions for completeness */
     @Override
     public void afterPersist(Object item, FormData data, NodeRef persistedObject)
     {}
    
     @SuppressWarnings("rawtypes")
     @Override
     public void beforeGenerate(Object item, List fields,
       List forcedFields, Form form, Map context) {}

     @Override
     public void beforePersist(Object item, FormData data) {}
   
   public void setServiceRegistry(ServiceRegistry serviceRegistry) {
           this.AlfUtil = serviceRegistry;
          }


   public void setDictionaryService(DictionaryService dictionaryService) {
     this.dictionaryService = dictionaryService;
    }
}

This is the model interface

package com.projectmanagement;


import org.alfresco.service.namespace.QName;

public interface Projectmanagement_datalist_model{

   public static final String URI = "http://www.projectmanagement.com/model/datalist/1.0";
   public final QName TYPE_WorkplanItem = QName.createQName(URI, "WorkplanItem");
   public final QName PROP_Duration = QName.createQName(URI,"Duration");
   public final QName PROP_PlannedStartDate = QName.createQName(URI,"PlannedStartDate");
   public final QName PROP_PlannedEndDate = QName.createQName(URI,"PlannedEndDate");
   public final QName PROJECTMANAGEMENT_DATALIST_MODEL = QName.createQName(URI);
   
   
      
}


this is the context file to declare the bean
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
    <bean id="projectDurationFilterNode"
        class="com.projectmanagement.ProjectDurationFilter"
        parent="baseFormFilter">
        <property name="filterRegistry" ref="nodeFilterRegistry" />
        <property name="dictionaryService" ref="dictionaryService" />
    </bean>
    <bean id="projectDurationFilterType"
        class="com.projectmanagement.ProjectDurationFilter"
        parent="baseFormFilter">
        <property name="filterRegistry" ref="typeFilterRegistry" />
        <property name="dictionaryService" ref="dictionaryService" />
    </bean>
</beans>

After deploying in the repository, I have no errors, but when I create an item in the custom datalist, it created the node but didn't show it in the table, anyone have a clue why could be this happening???

The error log I have is:
19:01:38,393 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
19:01:38,397 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
19:01:38,399 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\org_alfresco_module_dod5015\alfresco-global.properties]
19:01:38,400 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\org_alfresco_module_wcmquickstart\alfresco-global.properties]
19:01:38,400 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\test\alfresco-global.properties]
19:01:38,401 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\tests\alfresco-global.properties]
19:01:38,401 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/C:/Alfresco/tomcat/shared/classes/alfresco-global.properties]
19:01:38,488 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
19:01:38,723 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
19:01:38,827 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
19:01:38,876 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
19:01:38,878 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/C:/Alfresco/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
19:02:08,877 WARN  [org.springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'serviceBeans' being accessed! Ambiguous write methods found next to actually used [public void org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setServiceBeans(java.lang.Object[])]: [public void org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setServiceBeans(java.util.List)]
19:02:12,639 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl
19:02:12,643 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js
19:02:21,180 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
19:02:22,062 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
19:02:22,225 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
19:02:22,244 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
19:02:22,245 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
19:02:22,246 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
19:02:22,247 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
19:02:22,247 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/C:/Alfresco/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
19:02:22,343 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
19:02:24,495 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
19:02:24,543 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
19:02:24,552 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
19:02:24,554 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
19:02:24,562 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
19:02:24,562 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/C:/Alfresco/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
19:02:24,737 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
19:02:24,737 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]
19:02:24,756 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
19:02:24,757 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
19:02:24,758 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
19:02:24,759 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
19:02:24,760 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/C:/Alfresco/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
19:02:27,346 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
19:02:27,404 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete
19:02:28,949 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: C:\Alfresco\alf_data
19:02:29,017 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
19:02:30,829 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
19:02:30,869 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 8 module(s).
19:02:31,005 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Starting module 'org_alfresco_module_wcmquickstart' version 1.0.
19:02:31,085 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Starting module 'org_alfresco_module_dod5015' version 1.0.
19:02:31,242 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Starting module 'org.alfresco.module.vti' version 1.2.
19:02:31,334 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Starting module 'info.dashlet.repository.report' version 1.0.
19:02:31,437 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Starting module 'alfea.activity.stats' version 1.0.
19:02:31,532 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Starting module 'org_alfresco_module_fdk' version 1.0.
19:02:31,660 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Starting module 'shareSiteTemplates' version 1.1.
19:02:31,755 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Starting module 'org.alfresco.module.quickr' version 1.0.
19:02:31,843 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'fileServers' subsystem, ID: [fileServers, default]
19:02:31,868 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
19:02:31,874 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
19:02:31,877 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
19:02:31,884 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
19:02:31,893 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/C:/Alfresco/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
19:02:32,424 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
19:02:32,670 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
19:02:32,674 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
19:02:32,687 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
19:02:32,759 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
19:02:32,762 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/C:/Alfresco/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
19:02:32,941 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete
19:02:33,046 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete
19:02:33,050 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: [imap, default]
19:02:33,075 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
19:02:33,079 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
19:02:33,083 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
19:02:33,087 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
19:02:33,095 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/C:/Alfresco/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
19:02:33,202 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID: [imap, default] complete
19:02:33,205 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, outbound]
19:02:33,239 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
19:02:33,243 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
19:02:33,248 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
19:02:33,253 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
19:02:33,256 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/C:/Alfresco/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
19:02:33,447 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, outbound] complete
19:02:33,450 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, inbound]
19:02:33,473 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
19:02:33,477 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
19:02:33,479 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
19:02:33,483 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
19:02:33,486 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/C:/Alfresco/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
19:02:33,556 WARN  [org.springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'blockedSenders' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.email.server.EmailServer.setBlockedSenders(java.lang.String)]: [public void org.alfresco.email.server.EmailServer.setBlockedSenders(java.util.List)]
19:02:33,558 WARN  [org.springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'allowedSenders' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.email.server.EmailServer.setAllowedSenders(java.util.List)]: [public void org.alfresco.email.server.EmailServer.setAllowedSenders(java.lang.String)]
19:02:33,593 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, inbound] complete
19:02:33,596 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'googledocs' subsystem, ID: [googledocs, default]
19:02:33,634 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
19:02:33,740 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
19:02:33,750 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
19:02:33,756 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
19:02:33,760 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/C:/Alfresco/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
19:02:34,266 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'googledocs' subsystem, ID: [googledocs, default] complete
19:02:34,276 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Enabled - calculate missing user usages …
19:02:34,302 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Found 0 users to recalculate
19:02:34,305 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] … calculated missing usages for 0 users
19:02:34,311 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subsystem, ID: [Synchronization, default]
19:02:34,350 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
19:02:34,361 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
19:02:34,364 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
19:02:34,371 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
19:02:34,374 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/C:/Alfresco/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
19:02:34,530 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' subsystem, ID: [Synchronization, default] complete
19:02:34,639 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_18-b07; maximum heap size 910,250MB
19:02:34,642 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community): Current version 3.4.0 (d 3370) schema 4113 - Originally installed version 3.4.0 (d 3370) schema 4113
19:02:34,646 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Replication' subsystem, ID: [Replication, default]
19:02:34,664 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
19:02:34,666 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
19:02:34,670 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
19:02:34,675 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
19:02:34,678 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/C:/Alfresco/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
19:02:34,699 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Replication' subsystem, ID: [Replication, default] complete
19:02:37,812 INFO  [org.alfresco.module.vti.VtiServer] Vti server started successfully on port: 7070
19:03:06,757 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 462 Web Scripts (+0 failed), 713 URLs
19:03:06,759 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 2 Package Description Documents (+0 failed)
19:03:06,762 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 1 Schema Description Documents (+0 failed)
19:03:06,768 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Repository Web Script Container (in 21382.246ms)
19:03:06,789 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
19:03:06,793 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
19:03:07,047 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'wcm_deployment_receiver' subsystem, ID: [wcm_deployment_receiver, default]
19:03:07,076 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
19:03:07,079 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
19:03:07,082 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
19:03:07,086 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
19:03:07,089 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/C:/Alfresco/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
19:03:07,201 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'wcm_deployment_receiver' subsystem, ID: [wcm_deployment_receiver, default] complete
19:03:26,380 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 333 Web Scripts (+0 failed), 344 URLs
19:03:26,384 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed)
19:03:26,386 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed)
19:03:27,255 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 6740.413ms)
19:03:27,402 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
19:03:27,523 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
19:03:28,530 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
19:03:28,539 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
19:03:29,616 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
19:03:29,626 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
19:06:18,054 INFO  [org.alfresco.repo.activities.post.lookup.PostLookup] Update: 1 activity posts
19:06:33,287 INFO  [org.alfresco.repo.activities.feed.FeedTaskProcessor] >>> Generated 4 activity feed entries for 1 activity posts (in 237 msecs)
19:07:26,893 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 11120001 Wrapped Exception (with status template): 11120001 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/datalists/item.post.json.js': 11120000 ReferenceError: "item" is not defined. (file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/datalists/item.post.json.js#555)
org.springframework.extensions.webscripts.WebScriptException: 11120001 Wrapped Exception (with status template): 11120001 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/datalists/item.post.json.js': 11120000 ReferenceError: "item" is not defined. (file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/datalists/item.post.json.js#555)
   at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:758)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
   at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:377)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:381)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:436)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:466)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:304)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:333)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:189)
   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.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.Http11AprProcessor.process(Http11AprProcessor.java:859)
   at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
   at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
   at java.lang.Thread.run(Thread.java:619)
Caused by: org.alfresco.scripts.ScriptException: 11120001 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/datalists/item.post.json.js': 11120000 ReferenceError: "item" is not defined. (file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/datalists/item.post.json.js#555)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:194)
   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:981)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
   … 24 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: 11120000 ReferenceError: "item" is not defined. (file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/datalists/item.post.json.js#555)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:488)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:190)
   … 28 more
Caused by: org.mozilla.javascript.EcmaError: ReferenceError: "item" is not defined. (file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/datalists/item.post.json.js#555)
   at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
   at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
   at org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3413)
   at org.mozilla.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1678)
   at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1617)
   at org.mozilla.javascript.gen.c13._c9(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/datalists/item.post.json.js:555)
   at org.mozilla.javascript.gen.c13.call(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/datalists/item.post.json.js)
   at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
   at org.mozilla.javascript.gen.c13._c0(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/datalists/item.post.json.js:570)
   at org.mozilla.javascript.gen.c13.call(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/datalists/item.post.json.js)
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
   at org.mozilla.javascript.gen.c13.call(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/datalists/item.post.json.js)
   at org.mozilla.javascript.gen.c13.exec(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/datalists/item.post.json.js)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:472)
   … 29 more
19:08:08,661 ERROR [org.alfresco.web.scripts.forms.FormUIGet] java.lang.NullPointerException: null
19:08:15,685 ERROR [org.alfresco.web.scripts.forms.FormUIGet] java.lang.NullPointerException: null
19:20:42,670 ERROR [org.alfresco.web.scripts.forms.FormUIGet] java.lang.NullPointerException: null

Thanks

Outcomes