As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
17:50:31,765 ERROR [repo.action.AsynchronousActionExecutionQueueImpl] Failed to execute asynchronous action: Action[ id=c50d0622-4a6b-4da5-ae86-6e6b4a0a7357, node=workspace://SpacesStore/c50d0622-4a6b-4da5-ae86-6e6b4a0a7357 ]org.alfresco.service.cmr.dictionary.InvalidAspectException: The aspect is invalid: {www.test.es}expConflictividad at org.alfresco.repo.node.db.DbNodeServiceImpl.addAspect(DbNodeServiceImpl.java:533) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154) at org.alfresco.repo.transaction.SingleEntryTransactionResourceInterceptor.invokeInternal(SingleEntryTransactionResourceInterceptor.java:163) at org.alfresco.repo.transaction.SingleEntryTransactionResourceInterceptor.invoke(SingleEntryTransactionResourceInterceptor.java:138) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210) at $Proxy3.addAspect(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvocationHandler.invoke(StoreRedirectorProxyFactory.java:221) at $Proxy4.addAspect(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154) at org.alfresco.repo.node.MLPropertyInterceptor.invoke(MLPropertyInterceptor.java:241) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176) at org.alfresco.repo.node.MLPropertyInterceptor.invoke(MLPropertyInterceptor.java:241) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176) at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:160) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176) at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:160) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210) at $Proxy3.addAspect(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154) at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176) at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176) at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:245) at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210) at $Proxy3.addAspect(Unknown Source) at org.alfresco.repo.action.executer.AddFeaturesActionExecuter.executeImpl(AddFeaturesActionExecuter.java:104) at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:120) at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:537) at org.alfresco.repo.action.executer.CompositeActionExecuter.executeImpl(CompositeActionExecuter.java:72) at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:120) at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:537) at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:472) at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.execute(AsynchronousActionExecutionQueueImpl.java:258) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:294) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:209) at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:267) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
—————————————-Find 'www.test.es' in 'C:\alfresco-enterprise-tomcat-2.2.1\alf_data\contentstore\2008\10\27\0\50\3943c35d-8e3d-4de9-b95b-becb48807566.bin' :C:\alfresco-enterprise-tomcat-2.2.1\alf_data\contentstore\2008\10\27\0\50\3943c35d-8e3d-4de9-b95b-becb48807566.bin(4): org.alfresco.service.cmr.dictionary.InvalidAspectException: The aspect is invalid: {www.test.es}expConflictividadFound 'www.test.es' 1 time(s).—————————————-Find 'www.test.es' in 'C:\alfresco-enterprise-tomcat-2.2.1\alf_data\lucene-indexes\archive\SpacesStore\a15ec152-6ade-4b83-95a9-79a3c5398519\_0.cfs' :C:\alfresco-enterprise-tomcat-2.2.1\alf_data\lucene-indexes\archive\SpacesStore\a15ec152-6ade-4b83-95a9-79a3c5398519\_0.cfs(6296): http://www.alfresco.org/model/content/1.0}auditable+Found 'www.test.es' 1 time(s).—————————————-Find 'www.test.es' in 'C:\alfresco-enterprise-tomcat-2.2.1\tomcat\temp\Alfresco\2008\10\27\0\50\3c840820-68ac-4a69-8393-cd76132cabca.bin' :C:\alfresco-enterprise-tomcat-2.2.1\tomcat\temp\Alfresco\2008\10\27\0\50\3c840820-68ac-4a69-8393-cd76132cabca.bin(4): org.alfresco.service.cmr.dictionary.InvalidAspectException: The aspect is invalid: {www.test.es}expConflictividadFound 'www.test.es' 1 time(s).—————————————-Find 'www.test.es' in 'C:\alfresco-enterprise-tomcat-2.2.1\tomcat\temp\Alfresco\2008\10\27\0\50\df8baf90-535f-4431-885d-16e1500ecc23.bin' :C:\alfresco-enterprise-tomcat-2.2.1\tomcat\temp\Alfresco\2008\10\27\0\50\df8baf90-535f-4431-885d-16e1500ecc23.bin(4): org.alfresco.service.cmr.dictionary.InvalidAspectException: The aspect is invalid: {www.test.es}expConflictividadFound 'www.test.es' 1 time(s).—————————————-Find 'www.test.es' in 'C:\alfresco-enterprise-tomcat-2.2.1\tomcat\temp\Alfresco\2008\10\27\17\31\08a796bf-8576-4102-b20a-24f7d3849c8d.bin' :C:\alfresco-enterprise-tomcat-2.2.1\tomcat\temp\Alfresco\2008\10\27\17\31\08a796bf-8576-4102-b20a-24f7d3849c8d.bin(4): org.alfresco.service.cmr.dictionary.InvalidAspectException: The aspect is invalid: {www.test.es}expConflictividadFound 'www.test.es' 1 time(s).—————————————-Find 'www.test.es' in 'C:\alfresco-enterprise-tomcat-2.2.1\tomcat\temp\Alfresco\2008\10\27\17\7\fc5ac98c-6f60-4be8-83ee-6a96eb84e505.bin' :C:\alfresco-enterprise-tomcat-2.2.1\tomcat\temp\Alfresco\2008\10\27\17\7\fc5ac98c-6f60-4be8-83ee-6a96eb84e505.bin(4): org.alfresco.service.cmr.dictionary.InvalidAspectException: The aspect is invalid: {www.test.es}expConflictividadFound 'www.test.es' 1 time(s).
<model name="test:miModelTest" xmlns="http://www.alfresco.org/model/dictionary/1.0"> … <namespaces> <namespace uri="www.test.es" prefix="test"/> </namespaces> …
<?xml version="1.0" encoding="UTF-8"?><!– Conflictividad Model –><!– Note: This model is pre-configured to load at startup of the Repository. So, all custom –><!– types and aspects added here will automatically be registered –><model name="map:conflictividadModel" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <!– Optional meta-data about the model –> <description>Conflictividad</description> <author>xxxxxxxx</author> <version>1.0</version> <imports> <!– Import Alfresco Dictionary Definitions –> <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/> <!– Import Alfresco Content Domain Model Definitions –> <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/> </imports> <!– Introduction of new namespaces defined by this model –> <!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –> <namespaces> <namespace uri="es.mimodelo" prefix="mimodelo"/> </namespaces> <aspects> <aspect name="map:expConflictividad"> <title>Conflictividad</title> <parent>cm:folder</parent> <properties> <property name="mimodelo:numexpediente"> <title>Numero de Expediente</title> <type>d:text</type> </property> <property name="mimodelo:comautonoma"> <title>Comunidad Autonoma</title> <type>d:text</type> </property> <property name="mimodelo:anio"> <title>Ano</title> <type>d:int</type> </property> <property name="mimodelo:tipoexpediente"> <title>Tipo Expediente</title> <type>d:text</type> </property> <property name="mimodelo:demandante"> <title>Demandante</title> <type>d:text</type> </property> <property name="mimodelo:demandado"> <title>Demandado</title> <type>d:text</type> </property> <property name="mimodelo:situacion"> <title>Situacion</title> <type>d:text</type> </property> <property name="mimodelo:numprocedimiento"> <title>Numero de Procedimiento</title> <type>d:int</type> </property> <property name="mimodelo:anioprocedimiento"> <title>Ano de Procedimiento</title> <type>d:int</type> </property> </properties> </aspect> </aspects></model>
protected String finishImpl(FacesContext context, String outcome) throws Exception { String newSpaceId = null; String nodeId = navigator.getCurrentNodeId(); NodeRef parentNodeRef; if(nodeId == null) parentNodeRef = getNodeService().getRootNode(Repository.getStoreRef()); else parentNodeRef = new NodeRef(Repository.getStoreRef(), nodeId); name = "CO" + this.numexpe; title = description = name; FileInfo fileInfo = getFileFolderService().create(parentNodeRef, name, Repository.resolveToQName(spaceType)); NodeRef nodeRef = fileInfo.getNodeRef(); newSpaceId = nodeRef.getId(); if(logger.isDebugEnabled()) logger.debug((new StringBuilder()).append("Created folder node with name: ").append(name).toString()); Map uiFacetsProps = new HashMap(5); uiFacetsProps.put(ApplicationModel.PROP_ICON, icon); uiFacetsProps.put(ContentModel.PROP_TITLE, title); uiFacetsProps.put(ContentModel.PROP_DESCRIPTION, description); getNodeService().addAspect(nodeRef, ApplicationModel.ASPECT_UIFACETS, uiFacetsProps); Map<QName, Serializable> propiedades = new HashMap<QName, Serializable>(); propiedades.put(MiModel.propConfNumExpediente, this.numexpe); propiedades.put(MiModel..propConfComunidadAutonoma, this.comautonoma); propiedades.put(MiModel..propConfAnio, this.anio); propiedades.put(MiModel..propConfTipoExpediente, this.tipoexpediente); propiedades.put(MiModel..propConfDemandante, this.demandante); propiedades.put(MiModel..propConfDemandado, null); propiedades.put(MiModel..propConfSituacion, null); propiedades.put(MiModel..propConfNumProcedimiento, null); propiedades.put(MiModel..propConfAnioProcedimiento, null); getNodeService().addAspect(nodeRef, MiModel..aspectExpConflictividad, propiedades); if(logger.isDebugEnabled()) logger.debug((new StringBuilder()).append("Added uifacets aspect with properties: ").append(uiFacetsProps).toString()); createdNode = nodeRef; setTitle(""); setDescription(""); return outcome; }
package xx.test.modelos;import org.alfresco.service.namespace.QName;public interface MiModel { //Conflictividad QName aspectExpConflictividad = QName.createQName("{es.mimodelo}expConflictividad"); QName propConfNumExpediente = QName.createQName("{es.mimodelo}numexpediente"); QName propConfComunidadAutonoma = QName.createQName("{es.mimodelo}comautonoma"); QName propConfAnio = QName.createQName("{es.mimodelo}anio"); QName propConfTipoExpediente = QName.createQName("{es.mimodelo}tipoexpediente"); QName propConfDemandante = QName.createQName("{es.mimodelo}demandante"); QName propConfDemandado = QName.createQName("{es.mimodelo}demandado"); QName propConfSituacion = QName.createQName("{es.mimodelo}situacion"); QName propConfNumProcedimiento = QName.createQName("{es.mimodelo}numprocedimiento"); QName propConfAnioProcedimiento = QName.createQName("{es.mimodelo}anioprocedimiento"); }
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap"> <property name="models"> <list> <value>alfresco/extension/exampleModel.xml</value> </list> </property> </bean>
// check that the aspect is legal AspectDefinition aspectDef = dictionaryService.getAspect(aspectTypeQName); if (aspectDef == null) { throw new InvalidAspectException("The aspect is invalid: " + aspectTypeQName, aspectTypeQName); }
List<CompiledModel> models = getModelsForUri(aspectName.getNamespaceURI()); for (CompiledModel model : models) { AspectDefinition aspect = model.getAspect(aspectName); if (aspect != null) { return aspect; } } return null;
getNodeService().addAspect(nodeRef, MiModel..aspectExpConflictividad, propiedades);
<aspect name="map:expConflictividad">
<aspect name="mimodelo:expConflictividad">