AnsweredAssumed Answered

Replicación de metadatos

Question asked by rafabono_9703 on Jun 28, 2010
Latest reply on Jul 8, 2010 by cesarista
Buenas, tengo el siguiente problema. Tengo dos nodos en cluster recién migrados de la versión 2.1.1 a la 2.2.3 (bbdd postgre, content-store en gfs e índices cada uno en local). Si creo un contenido en uno de los dos nodos, este aparece perfectamente en el otro. Lo que no se replica son los metadatos (permisos, descripciones, info…). Mi problema es que no puedo activar el ehcache para conseguir el nivel de caché L2. Cuando intento activar el fichero ehcache-custom.xml, me da el siguiente error de licencia:
13:13:59,507 ERROR [web.context.ContextLoader] Context initialization failed
org.alfresco.service.license.LicenseException: Failed to initialise License Component
   at org.alfresco.license.LicenseComponent.verifyLicense(LicenseComponent.java:175)
   at org.alfresco.repo.descriptor.DescriptorServiceImpl$1.execute(DescriptorServiceImpl.java:188)
   at org.alfresco.repo.descriptor.DescriptorServiceImpl$1.execute(DescriptorServiceImpl.java:182)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:310)
   at org.alfresco.repo.descriptor.DescriptorServiceImpl.onBootstrap(DescriptorServiceImpl.java:197)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
   at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
   at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:241)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:349)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
   at org.apache.catalina.core.StandardService.start(StandardService.java:448)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
   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:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)


Con lo que no me levanta el contexto de alfresco.

Si intento reinstalar la licencia me aparece este otro mensaje:
13:15:55,510 INFO  [domain.schema.SchemaBootstrap] No changes were made to the schema.
13:15:59,033 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:15:59,821 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:00,143 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:00,355 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:00,598 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:00,945 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:01,402 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:01,564 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:01,740 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:02,165 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:02,498 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:02,651 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:03,525 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:04,384 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:04,956 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:05,101 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:06,522 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:07,198 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:08,858 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:09,363 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:11,112 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:11,745 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:12,457 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:13,427 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:15,105 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:17,148 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:17,556 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:19,150 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:19,920 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:21,969 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:23,708 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:25,798 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:27,841 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:28,206 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:30,343 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:31,610 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:31,793 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:33,914 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:35,981 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:37,376 INFO  [service.descriptor.DescriptorService] Alfresco license: Installing license file licencia-2-2-3.lic
13:16:38,979 ERROR [web.context.ContextLoader] Context initialization failed
org.alfresco.service.license.LicenseException: Failed to install license file licencia-2-2-3.lic
   at org.alfresco.license.LicenseComponent.verifyLicense(LicenseComponent.java:142)
   at org.alfresco.repo.descriptor.DescriptorServiceImpl$1.execute(DescriptorServiceImpl.java:188)
   at org.alfresco.repo.descriptor.DescriptorServiceImpl$1.execute(DescriptorServiceImpl.java:182)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:310)
   at org.alfresco.repo.descriptor.DescriptorServiceImpl.onBootstrap(DescriptorServiceImpl.java:197)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
   at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
   at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:241)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:349)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
   at org.apache.catalina.core.StandardService.start(StandardService.java:448)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
   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:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: org.alfresco.service.license.LicenseException: Failed to save license
   at org.alfresco.license.LicenseComponent$AlfrescoLicenseManager.setLicenseKey(LicenseComponent.java:515)
   at de.schlichtherle.license.LicenseManager.install(Unknown Source)
   at de.schlichtherle.license.LicenseManager.install(Unknown Source)
   at de.schlichtherle.license.LicenseManager.install(Unknown Source)
   at org.alfresco.license.LicenseComponent.verifyLicense(LicenseComponent.java:136)
   … 38 more
Caused by: org.alfresco.service.cmr.repository.ContentIOException: Failed to set content property on stream closure:
   node: system://system/98485598-9d94-11dc-8a42-5fed6633ce69
   property: {http://www.alfresco.org/model/system/1.0}versionEdition
   writer: ContentAccessor[ contentUrl=store://2010/6/24/13/16/5857c5d6-fc48-4819-be2f-deeb42d6f6c8.bin, mimetype=application/octet-stream, size=616, encoding=UTF-8, locale=es_ES]
   at org.alfresco.repo.content.RoutingContentService$WriteStreamListener.contentStreamClosed(RoutingContentService.java:563)
   at org.alfresco.repo.content.AbstractContentAccessor$CallbackFileChannel$1.execute(AbstractContentAccessor.java:357)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:310)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:236)
   at org.alfresco.repo.content.AbstractContentAccessor$CallbackFileChannel.fireChannelClosed(AbstractContentAccessor.java:367)
   at org.alfresco.repo.content.AbstractContentAccessor$CallbackFileChannel.implCloseChannel(AbstractContentAccessor.java:336)
   at java.nio.channels.spi.AbstractInterruptibleChannel.close(AbstractInterruptibleChannel.java:97)
   at java.nio.channels.Channels$1.close(Channels.java:138)
   at java.io.FilterOutputStream.close(FilterOutputStream.java:143)
   at org.springframework.util.FileCopyUtils.copy(FileCopyUtils.java:132)
   at org.alfresco.repo.content.AbstractContentWriter.putContent(AbstractContentWriter.java:423)
   at org.alfresco.license.LicenseComponent$AlfrescoLicenseManager.setLicenseKey(LicenseComponent.java:510)
   … 42 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: Failed to create server instance
   at org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl.getServer(HibernateNodeDaoServiceImpl.java:357)
   at org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl.getCurrentTransaction(HibernateNodeDaoServiceImpl.java:372)
   at org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl.updateNodeStatus(HibernateNodeDaoServiceImpl.java:719)
   at org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl.recordNodeUpdate(HibernateNodeDaoServiceImpl.java:757)
   at org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl.addNodeProperty(HibernateNodeDaoServiceImpl.java:1143)
   at sun.reflect.GeneratedMethodAccessor244.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   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.TransactionalDaoInterceptor.invoke(TransactionalDaoInterceptor.java:68)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.alfresco.repo.domain.hibernate.DirtySessionMethodInterceptor.invoke(DirtySessionMethodInterceptor.java:381)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
   at $Proxy2.addNodeProperty(Unknown Source)
   at org.alfresco.repo.node.db.DbNodeServiceImpl.setPropertyImpl(DbNodeServiceImpl.java:1134)
   at org.alfresco.repo.node.db.DbNodeServiceImpl.setProperty(DbNodeServiceImpl.java:1101)
   at sun.reflect.GeneratedMethodAccessor213.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   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 $Proxy7.setProperty(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor213.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvocationHandler.invoke(StoreRedirectorProxyFactory.java:221)
   at $Proxy8.setProperty(Unknown Source)
   at org.alfresco.repo.node.MLPropertyInterceptor.invoke(MLPropertyInterceptor.java:252)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:271)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:271)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
   at $Proxy7.setProperty(Unknown Source)
   at org.alfresco.repo.content.RoutingContentService$WriteStreamListener.contentStreamClosed(RoutingContentService.java:547)
   … 53 more
Caused by: org.springframework.orm.hibernate3.HibernateSystemException: net.sf.ehcache.distribution.RemoteCacheException: Error doing remove to remote peer. Message was: RemoteException occurred in server thread; nested exception is:
   java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
   java.io.InvalidClassException: org.hibernate.type.NullableType; local class incompatible: stream classdesc serialVersionUID = 2347933679507115985, local class serialVersionUID = 6931177728942385320; nested exception is org.hibernate.cache.CacheException: net.sf.ehcache.distribution.RemoteCacheException: Error doing remove to remote peer. Message was: RemoteException occurred in server thread; nested exception is:
   java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
   java.io.InvalidClassException: org.hibernate.type.NullableType; local class incompatible: stream classdesc serialVersionUID = 2347933679507115985, local class serialVersionUID = 6931177728942385320
   at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:670)
   at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:407)
   at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:372)
   at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:333)
   at org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl.getServer(HibernateNodeDaoServiceImpl.java:330)
   … 96 more

La licencia está bien, ya que en otra instancia de alfresco (con otra bbdd y content-store) me la instala correctamente y con el ehcache activado. Todo parece indicar que se trate de una propiedad de un nodo que es incapaz de modificar:

Caused by: org.alfresco.service.cmr.repository.ContentIOException: Failed to set content property on stream closure: 
   node: system://system/98485598-9d94-11dc-8a42-5fed6633ce69
   property: {http://www.alfresco.org/model/system/1.0}versionEdition
   writer: ContentAccessor[ contentUrl=store://2010/6/24/13/16/5857c5d6-fc48-4819-be2f-deeb42d6f6c8.bin, mimetype=application/octet-stream, size=616, encoding=UTF-8, locale=es_ES]

Si voy la navegador de nodos, esta es la información que tiene el nodo system://system/98485598-9d94-11dc-8a42-5fed6633ce69 en la propiedad versionEdition:

{http://www.alfresco.org/model/system/1.0}versionEdition   –collection–
contentUrl=store://2010/6/25/14/1/e6855e4b-1d79-4488-a747-182d257f2109.bin|mimetype=application/octet-stream|size=616|encoding=UTF-8|locale=es_ES_
   {http://www.alfresco.org/model/dictionary/1.0}any   
{http://www.alfresco.org/model/dictionary/1.0}content
   false

¿Le ha ocurrido a alguien algo similar o que sepa cómo solucionarlo?

Gracias.

Outcomes