AnsweredAssumed Answered

WCM Deployment errors with 3.3

Question asked by samuel.penn on Aug 11, 2010
Latest reply on Dec 10, 2010 by tvaughan77
I've just upgraded from 3.2 Community to 3.3, and as part of that I've decided to run a separate live server for WCM (previously, the live site ran out of staging, which wasn't ideal, but it's a hobby website and I had limited hardware available at the time). I'm trying to deploy a web project created in 3.2, now upgraded to 3.3, to a fresh install of 3.3 (on a different vm) by using the avm deployment target.

It starts to work, then fails with the following error. The web project is called 'glendale', and I created a 'glendale-live' web project on the live server before trying the deployment, so I could see what's been deployed. A number of folders have been created in 'glendale-live', but no documents. It seems that the first attempt to create a document has failed. Log output from authoring server below:


20:43:45,194 ERROR [org.alfresco.repo.avm.actions.AVMDeployWebsiteAction] Deployment Error                     
org.alfresco.service.cmr.avm.AVMException: 07110009 Deployment exception, unable to deploy : srcPath:glendale:/www/avm_webapps, target:avm, version:26, adapterName:default, hostName:fafner, port:50,500, error:org.alfresco.service.cmr.avm.AVMException: 07110008 Error during deployment srcPath: glendale:/www/avm_webapps, version:26, adapterName:default, hostName:fafner, port:50,500, error:org.alfresco.service.cmr.avm.AVMException: 07110003 Failed to copy filename:/ROOT/arsmagica/greyhawk/races.xml                                                           
        at org.alfresco.repo.deploy.DeploymentServiceImpl.deployDifferenceFS(DeploymentServiceImpl.java:1249)  
        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:307)          
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)                                                                                                   
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)                                                                                                           
        at org.alfresco.repo.transaction.CheckTransactionAdvice.invoke(CheckTransactionAdvice.java:46)         
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)                                                                                                           
        at org.alfresco.repo.transaction.RetryingTransactionAdvice$1.execute(RetryingTransactionAdvice.java:64)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:321)                                                                                                         
        at org.alfresco.repo.transaction.RetryingTransactionAdvice.invoke(RetryingTransactionAdvice.java:67)   
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)                                                                                                           
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)            
        at $Proxy87.deployDifferenceFS(Unknown Source)                                                         
        at org.alfresco.repo.avm.actions.AVMDeployWebsiteAction.executeImpl(AVMDeployWebsiteAction.java:403)   
        at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:133)                                                                                                           
        at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:726)        
        at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:658)            
        at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1$1.execute(AsynchronousActionExecutionQueueImpl.java:494)                                                                     
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:321)                                                                                                         
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:228)                                                                                                         
        at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:503)                                                                        
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:508)     
        at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:506)                                                                             
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)                 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)                     
        at java.lang.Thread.run(Thread.java:619)                                                               
Caused by: org.alfresco.service.cmr.avm.AVMException: 07110008 Error during deployment srcPath: glendale:/www/avm_webapps, version:26, adapterName:default, hostName:fafner, port:50,500, error:org.alfresco.service.cmr.avm.AVMException: 07110003 Failed to copy filename:/ROOT/arsmagica/greyhawk/races.xml                                 
        at org.alfresco.repo.deploy.DeploymentServiceImpl.deployDifferenceFS(DeploymentServiceImpl.java:1224)  
        … 28 more                                                                                            
Caused by: org.alfresco.service.cmr.avm.AVMException: 07110003 Failed to copy filename:/ROOT/arsmagica/greyhawk/races.xml                                                                                                      
        at org.alfresco.repo.deploy.DeploymentServiceImpl$SendQueueWorker.copyFileToFSR(DeploymentServiceImpl.java:1944)                                                                                                       
        at org.alfresco.repo.deploy.DeploymentServiceImpl$SendQueueWorker.run(DeploymentServiceImpl.java:1850) 
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 07110040 Failed to set content property on stream closure:                                                                                                  
   node: avm://glendale-live/-1;www;avm_webapps;ROOT;arsmagica;greyhawk;races.xml                              
   property: {http://www.alfresco.org/model/content/1.0}content                                                
   writer: ContentAccessor[ contentUrl=store://2010/8/11/20/43/a93dd625-60f5-4ac8-942e-73700cd1f96a.bin, mimetype=text/xml, size=0, encoding=UTF-8, locale=en_US]                                                              
java.lang.NullPointerException                                                                                 
        at org.alfresco.repo.content.ContentServiceImpl$WriteStreamListener.contentStreamClosed(ContentServiceImpl.java:658)                                                                                                   
        at org.alfresco.repo.content.AbstractContentAccessor$CallbackFileChannel$1.execute(AbstractContentAccessor.java:367)                                                                                                   
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:321)                                                                                                         
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:247)                                                                                                         
        at org.alfresco.repo.content.AbstractContentAccessor$CallbackFileChannel.fireChannelClosed(AbstractContentAccessor.java:377)                                                                                           
        at org.alfresco.repo.content.AbstractContentAccessor$CallbackFileChannel.implCloseChannel(AbstractContentAccessor.java:346)                                                                                            
        at java.nio.channels.spi.AbstractInterruptibleChannel.close(AbstractInterruptibleChannel.java:114)     
        at java.nio.channels.Channels$1.close(Channels.java:155)                                               
        at java.io.FilterOutputStream.close(FilterOutputStream.java:160)                                       
        at org.alfresco.deployment.impl.asr.AVMDeploymentTarget$10.execute(AVMDeploymentTarget.java:777)       
        at org.alfresco.deployment.impl.asr.AVMDeploymentTarget$10.execute(AVMDeploymentTarget.java:758)       
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:321)                                                                                                         
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:228)                                                                                                         
        at org.alfresco.deployment.impl.asr.AVMDeploymentTarget.sendImpl(AVMDeploymentTarget.java:832)         
        at org.alfresco.deployment.impl.asr.AVMDeploymentTarget.access$1100(AVMDeploymentTarget.java:69)       
        at org.alfresco.deployment.impl.asr.AVMDeploymentTarget$9.doWork(AVMDeploymentTarget.java:731)         
        at org.alfresco.deployment.impl.asr.AVMDeploymentTarget$9.doWork(AVMDeploymentTarget.java:729)         
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:508)     
        at org.alfresco.deployment.impl.asr.AVMDeploymentTarget.send(AVMDeploymentTarget.java:726)             
        at org.alfresco.deployment.impl.server.DeploymentReceiverEngineImpl.getSendToken(DeploymentReceiverEngineImpl.java:543)                                                                                                
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                         
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)                       
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)               
        at java.lang.reflect.Method.invoke(Method.java:616)                                                    
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)          
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)                                                                                                   
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)                                                                                                           
        at org.springframework.remoting.support.RemoteInvocationTraceInterceptor.invoke(RemoteInvocationTraceInterceptor.java:77)                                                                                              
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)                                                                                                           
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)            
        at $Proxy198.getSendToken(Unknown Source)                                                              
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                         
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)                       
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)               
        at java.lang.reflect.Method.invoke(Method.java:616)                                                    
        at org.springframework.remoting.support.RemoteInvocation.invoke(RemoteInvocation.java:205)             
        at org.springframework.remoting.support.DefaultRemoteInvocationExecutor.invoke(DefaultRemoteInvocationExecutor.java:38)                                                                                                
        at org.springframework.remoting.support.RemoteInvocationBasedExporter.invoke(RemoteInvocationBasedExporter.java:78)                                                                                                    
        at org.springframework.remoting.rmi.RmiBasedExporter.invoke(RmiBasedExporter.java:73)                  
        at org.springframework.remoting.rmi.RmiInvocationWrapper.invoke(RmiInvocationWrapper.java:72)          
        at sun.reflect.GeneratedMethodAccessor5005.invoke(Unknown Source)                                      
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)               
        at java.lang.reflect.Method.invoke(Method.java:616)                                                    
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)                                 
        at sun.rmi.transport.Transport$1.run(Transport.java:177)                                               
        at java.security.AccessController.doPrivileged(Native Method)                                          
        at sun.rmi.transport.Transport.serviceCall(Transport.java:173)                                         
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)                            
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)                    
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)                     
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)                     
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)                     
        at java.lang.Thread.run(Thread.java:636)                                                               
        at org.springframework.remoting.support.RemoteInvocationUtils.fillInClientStackTraceIfPossible(RemoteInvocationUtils.java:47)                                                                                          
        at org.springframework.remoting.rmi.RmiClientInterceptor.doInvoke(RmiClientInterceptor.java:352)       
        at org.springframework.remoting.rmi.RmiClientInterceptor.invoke(RmiClientInterceptor.java:259)         
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)                                                                                                           
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)            
        at $Proxy206.getSendToken(Unknown Source)                                                              
        at org.alfresco.repo.deploy.DeploymentReceiverServiceClient.send(DeploymentReceiverServiceClient.java:128)                                                                                                             
        at org.alfresco.repo.deploy.DeploymentServiceImpl$SendQueueWorker$1.execute(DeploymentServiceImpl.java:1908)                                                                                                           
        at org.alfresco.repo.deploy.DeploymentServiceImpl$SendQueueWorker$1.execute(DeploymentServiceImpl.java:1899)                                                                                                           
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:321)                                                                                                         
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:247)                                                                                                         
        at org.alfresco.repo.deploy.DeploymentServiceImpl$SendQueueWorker.copyFileToFSR(DeploymentServiceImpl.java:1897)                                                                                                       
        … 1 more                                                                                             
Caused by: java.lang.NullPointerException
        at org.alfresco.repo.node.AbstractNodeServiceImpl.ignorePolicy(AbstractNodeServiceImpl.java:228)
        at org.alfresco.repo.node.AbstractNodeServiceImpl.invokeOnUpdateProperties(AbstractNodeServiceImpl.java:359)
        at org.alfresco.repo.avm.AVMNodeService.setProperty(AVMNodeService.java:1462)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvocationHandler.invoke(StoreRedirectorProxyFactory.java:215)
        at $Proxy10.setProperty(Unknown Source)
        at org.alfresco.repo.node.MLPropertyInterceptor.invoke(MLPropertyInterceptor.java:249)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:260)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:260)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy9.setProperty(Unknown Source)
        at org.alfresco.repo.content.ContentServiceImpl$WriteStreamListener.contentStreamClosed(ContentServiceImpl.java:634)
        … 65 more

There is a custom aspect defined on the documents, and the configuration files for these are on both servers.

Is anyone able to help?

Thanks,
Sam.

Outcomes