cancel
Showing results for 
Search instead for 
Did you mean: 

Error al añadir un aspecto

txakin
Champ in-the-making
Champ in-the-making
Hola a todos,

Me he creado un nuevo wizard en mi Alfresco. El flujo de todas mis jsp es correcto y me carga todos los valores que yo le digo. Hasta aquí sin problemas.

El problema es que al intentar finalizar (en el summary.jsp) y salvar mi nuevo dato, siempre me da un error a la hora de añadir mi nuevo aspecto.

Os envio mi error :

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)

El caso es que le estoy dando mil vueltas a este error, porque en ningun sitio de configuracion me he creado la etiquta http://www.test.es
Si lo busco en todo mi alfresco, siempre me aparece esa etiqueta en un índece de lucene :

—————————————-
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}expConflictividad
Found '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}expConflictividad
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\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}expConflictividad
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\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}expConflictividad
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\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}expConflictividad
Found 'www.test.es' 1 time(s).

Por lo que veo, debe ser algún problema de alguna cosa que hice hace tiempo y se ha quedado en los ficheros temporales o bin….

Puedo borrar dichos ficheros o cual sería la solución a tomar?

Muchas gracias a todos.
14 REPLIES 14

ajv
Champ in-the-making
Champ in-the-making
Hola txakin, no sé a q ficheros de búsqueda te refieres…
Pero un último apunte que se me ocurre: Aparentemente tiene buena pinta el código que añade el aspecto, pero…no será que el jar que tengas en WEB-INF no es el actualizado? Es decir, que tengas una clase MiModelo en un jar que haga referencia al uri antiguo, en lugar de los que figuran en los modelos nuevos???
Hasta luego!

txakin
Champ in-the-making
Champ in-the-making
Hola ajv,

No quiero volverte loco….pero estoy seguro que el jar que tengo es el correcto.

Si busco con el ultraedit la expresion "www.test.es" los resultados que me da son los 2 ficheros que te he puesto antes….

De lo demás estoy convencido que me lo hace bien….pero hay algo guardado en el alf-data que sigue teniendo referencia a la URI anterior.

Un saludo….

P.D. : Podría borrar esos 2 ficheros en los que me aparece la referencia a dicha URI o es muy peligroso?

ajv
Champ in-the-making
Champ in-the-making
jeje, tranqui que todavía no me vuelvo loco Smiley Very Happy
pues si sólo nos queda lo del alf_data…antes que eliminar dichos ficheros, yo los quitaría de alf_data (moverlos simplemente).
Como sabes la referencia por lo que te ha devuelto la busqueda, en el peor de los casos siempre puedes volver a dejarlos donde estaban…o haz una copia de tu alf_data por si acaso.
Quitándolos, podrías perder algún contenido o espacio que tuviese dicho aspecto…si haces eso, quizás convendría reconstruir los índices para evitar que quede algo por ahi suelto…

Saludos!

txakin
Champ in-the-making
Champ in-the-making
Hola ajv,

al final decidí borrar el alf_data y la base de datos, ya que apenas tenía datos metidos.

ahora me funciona todo correctamente.

ajv
Champ in-the-making
Champ in-the-making
XDD

Bueno, por lo menos hemos dado unas cuantas vueltas al tema  y hemos repasado los aspectos :lol:
Saludos!