cancel
Showing results for 
Search instead for 
Did you mean: 

AVM deployment with multivalued properties

zanzazen
Champ in-the-making
Champ in-the-making
I'm using two Alfresco installations: authoring and production (Community 3.2 release).
Authoring environment is used for content creation/preview purposes. Content stored on the authoring side has custom aspects and/or content types.
Production environment is used by the live site. When publishing content from authoring AVM repository to the production one (using avm deployment target) with custom multivalued properties the following error is observed:

….
Caused by: org.alfresco.service.cmr.avm.AVMException: 08130017 Failed to copy filename:/ROOT/dynamic/Picture.jpg
   at org.alfresco.repo.deploy.DeploymentServiceImpl$SendQueueWorker.copyFileToFSR(DeploymentServiceImpl.java:1849)
   at org.alfresco.repo.deploy.DeploymentServiceImpl$SendQueueWorker.run(DeploymentServiceImpl.java:1765)
Caused by: org.alfresco.error.AlfrescoRuntimeException: 08130010 Property type not recognised:
   type: null
   at org.alfresco.repo.domain.PropertyValue.makeValueType(PropertyValue.java:729)
   at org.alfresco.repo.domain.PropertyValue.<init>(PropertyValue.java:691)
   at org.alfresco.deployment.impl.asr.AVMDeploymentTarget$3.execute(AVMDeploymentTarget.java:664)
…..

The whole scenario works fine if properties are single-valued. Is it a bug in the system?

Any help is deeply appreciated.
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
Looks like an issue for JIRA.    Please give as much detail as possible.

One thought, have you got your property definition on your production environment as well as your authoring environment?

mrogers
Star Contributor
Star Contributor
Thank you for your detailed bug report.    The fix is on HEAD now.

htd
Champ in-the-making
Champ in-the-making
I am also using both authoring and production servers(Enterprise 3.1 release).

When I try to deply my changes from authoring server to production site, I am getting following error.

My env is Win Server 2003 SP2, MYSQL 2005 with tomcat server.

I look forward to hear some ideas and possible fix on this issue asap.

———————————————————————————————————————————————————————————————-
15:57:27,633  ERROR [avm.actions.AVMDeployWebsiteAction] Deployment Error
org.alfresco.service.cmr.avm.AVMException: Deployment to xx.xx.xx.xx failed.org.springframework.remoting.RemoteConnectFailureException: Could not connect to remote service [rmi://xx.xx.xx.xx :50500/avm]; nested exception is java.rmi.UnmarshalException: Error unmarshaling return; nested exception is:
   java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.microsoft.sqlserver.jdbc.StreamError
   at org.alfresco.repo.deploy.DeploymentServiceImpl.deployDifference(DeploymentServiceImpl.java:367)
   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:304)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
   at org.alfresco.repo.transaction.CheckTransactionAdvice.invoke(CheckTransactionAdvice.java:52)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.alfresco.repo.transaction.RetryingTransactionAdvice$1.execute(RetryingTransactionAdvice.java:70)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:322)
   at org.alfresco.repo.transaction.RetryingTransactionAdvice.invoke(RetryingTransactionAdvice.java:73)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at $Proxy73.deployDifference(Unknown Source)
   at org.alfresco.repo.avm.actions.AVMDeployWebsiteAction.executeImpl(AVMDeployWebsiteAction.java:421)
   at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:127)
   at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:688)
   at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:625)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1$1.execute(AsynchronousActionExecutionQueueImpl.java:369)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:322)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:229)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:378)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:489)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:381)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
   at java.lang.Thread.run(Thread.java:619)
Caused by: org.springframework.remoting.RemoteConnectFailureException: Could not connect to remote service [rmi://xx.xx.xx.xx :50500/avm]; nested exception is java.rmi.UnmarshalException: Error unmarshaling return; nested exception is:
   java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.microsoft.sqlserver.jdbc.StreamError
   at org.springframework.remoting.rmi.RmiClientInterceptorUtils.convertRmiAccessException(RmiClientInterceptorUtils.java:181)
   at org.springframework.remoting.rmi.RmiClientInterceptor.doInvoke(RmiClientInterceptor.java:342)
   at org.springframework.remoting.rmi.RmiClientInterceptor.refreshAndRetry(RmiClientInterceptor.java:325)
   at org.springframework.remoting.rmi.RmiClientInterceptor.handleRemoteConnectFailure(RmiClientInterceptor.java:301)
   at org.springframework.remoting.rmi.RmiClientInterceptor.invoke(RmiClientInterceptor.java:261)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at $Proxy83.setNodeProperties(Unknown Source)
   at org.alfresco.repo.remote.AVMRemoteImpl.setNodeProperties(AVMRemoteImpl.java:434)
   at org.alfresco.repo.deploy.DeploymentServiceImpl.copyMetadata(DeploymentServiceImpl.java:647)
   at org.alfresco.repo.deploy.DeploymentServiceImpl.deployDirectoryPush(DeploymentServiceImpl.java:399)
   at org.alfresco.repo.deploy.DeploymentServiceImpl.access$200(DeploymentServiceImpl.java:92)
   at org.alfresco.repo.deploy.DeploymentServiceImpl$4.execute(DeploymentServiceImpl.java:323)
   at org.alfresco.repo.deploy.DeploymentServiceImpl$4.execute(DeploymentServiceImpl.java:321)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:322)
   at org.alfresco.repo.deploy.DeploymentServiceImpl.deployDifference(DeploymentServiceImpl.java:329)
   … 28 more
Caused by: java.rmi.UnmarshalException: Error unmarshaling return; nested exception is:
   java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.microsoft.sqlserver.jdbc.StreamError
   at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:227)
   at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
   at org.springframework.remoting.rmi.RmiInvocationWrapper_Stub.invoke(Unknown Source)
   at org.springframework.remoting.rmi.RmiClientInterceptor.doInvoke(RmiClientInterceptor.java:393)
   at org.springframework.remoting.rmi.RmiClientInterceptor.doInvoke(RmiClientInterceptor.java:339)
   … 42 more
Caused by: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.microsoft.sqlserver.jdbc.StreamError
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)
   at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
   at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:225)
   … 46 more
Caused by: java.io.NotSerializableException: com.microsoft.sqlserver.jdbc.StreamError
   at java.io.ObjectOutputStream.writeObject0(Unknown Source)
   at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
   at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
   at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
   at java.io.ObjectOutputStream.writeObject0(Unknown Source)
   at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
   at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
   at org.hibernate.exception.NestableRuntimeException.writeObject(NestableRuntimeException.java:210)
   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 java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
   at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
   at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
   at java.io.ObjectOutputStream.writeObject0(Unknown Source)
   at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
   at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
   at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
   at java.io.ObjectOutputStream.writeObject0(Unknown Source)
   at java.io.ObjectOutputStream.writeObject(Unknown Source)
   at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
   at sun.rmi.transport.Transport$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.rmi.transport.Transport.serviceCall(Unknown Source)
   at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
   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)