cancel
Showing results for 
Search instead for 
Did you mean: 

Custom types - deployment through FSTR

kishor_gandham
Champ in-the-making
Champ in-the-making
Hi All,

Apologies if I am posting this question in the wrong forum…

I have created a new type by extending cm:content. I am able to create new content of this custom type via Alfresco share. The new type captures some additional meta data for content (ex: department name etc.. for images, videos etc…).

Now I want to export the content from Alfresco repository to a file system. I have been able to configure Alfresco FSTR (file system transfer receiver). However, when I run the replication job to transfer the content, it is failing with NullPointerException. Upon further checks, I realize that this problem doesnt exist when I try to replicate cm:content type assets and comes up only when I try to replicate sub types of cm:content.

I am not sure if this is a limitation of alfresco FSTR or if I missed any configuration.

I am using Alfresco 4.0.d community edition.

Any help in resolving this is appreciated.

Thanks,
Kishor
4 REPLIES 4

jpfi
Champ in-the-making
Champ in-the-making
Hi,
you should paste your stack traces here…
cheers, jan

kishor_gandham
Champ in-the-making
Champ in-the-making
Hi,

Following is the log on the receiver:

Thanks,
Kishor


15 Aug, 2012 10:18:54 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-9090"]
15 Aug, 2012 10:18:54 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
15 Aug, 2012 10:18:54 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.16
15 Aug, 2012 10:18:55 AM org.apache.catalina.startup.ContextConfig webConfig
INFO: No global web.xml found
15 Aug, 2012 10:18:56 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
15 Aug, 2012 10:19:12 AM org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [485] milliseconds.
15 Aug, 2012 10:19:12 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-9090"]
2012-08-15 10:21:23,257  INFO  [repo.transfer.LoggingTransferProgressMonitorImpl] ["http-bio-9090"-exec-2] Transfer Log (workspace://SpaceStore/e7323b74-fb70-4bd1-a9af-e5c160007002): Started transfer
2012-08-15 10:21:23,265  INFO  [repo.transfer.LoggingTransferProgressMonitorImpl] ["http-bio-9090"-exec-2] Transfer Log (workspace://SpaceStore/e7323b74-fb70-4bd1-a9af-e5c160007002): Status update: PRE_COMMIT
2012-08-15 10:21:23,360  INFO  [repo.transfer.LoggingTransferProgressMonitorImpl] ["http-bio-9090"-exec-4] Transfer Log (workspace://SpaceStore/e7323b74-fb70-4bd1-a9af-e5c160007002): Received manifest file. Size = 36989
2012-08-15 10:21:23,384  INFO  [repo.transfer.LoggingTransferProgressMonitorImpl] ["http-bio-9090"-exec-4] Transfer Log (workspace://SpaceStore/e7323b74-fb70-4bd1-a9af-e5c160007002): Progress update: 0 out of 8
2012-08-15 10:21:23,465  INFO  [repo.transfer.LoggingTransferProgressMonitorImpl] ["http-bio-9090"-exec-4] Transfer Log (workspace://SpaceStore/e7323b74-fb70-4bd1-a9af-e5c160007002): Progress update: current position = 8
2012-08-15 10:21:23,562  INFO  [repo.transfer.LoggingTransferProgressMonitorImpl] ["http-bio-9090"-exec-8] Transfer Log (workspace://SpaceStore/e7323b74-fb70-4bd1-a9af-e5c160007002): Status update: COMMIT_REQUESTED
2012-08-15 10:21:23,574  INFO  [repo.transfer.LoggingTransferProgressMonitorImpl] [Transfer Commit Thread] Transfer Log (workspace://SpaceStore/e7323b74-fb70-4bd1-a9af-e5c160007002): Status update: COMMITTING
2012-08-15 10:21:23,645  INFO  [repo.transfer.LoggingTransferProgressMonitorImpl] [Transfer Commit Thread] Transfer Log (workspace://SpaceStore/e7323b74-fb70-4bd1-a9af-e5c160007002): Progress update: 8 out of 15
2012-08-15 10:21:23,673  INFO  [repo.transfer.LoggingTransferProgressMonitorImpl] [Transfer Commit Thread] Transfer Log (workspace://SpaceStore/e7323b74-fb70-4bd1-a9af-e5c160007002): Error while processing incoming node workspace://SpacesStore/6a202fc6-7871-421f-bf14-f0f16b359700
java.lang.NullPointerException: Source must not be null
   at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:631)
   at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:607)
   at org.alfresco.repo.transfer.fsr.ManifestProcessorImpl.processContext(ManifestProcessorImpl.java:615)
   at org.alfresco.repo.transfer.fsr.ManifestProcessorImpl.processNode(ManifestProcessorImpl.java:517)
   at org.alfresco.repo.transfer.AbstractManifestProcessorBase.processTransferManifestNode(AbstractManifestProcessorBase.java:82)
   at org.alfresco.repo.transfer.manifest.XMLTransferManifestReader.endElement(XMLTransferManifestReader.java:387)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:604)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1759)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2915)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:819)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:748)
   at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)
   at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525)
   at javax.xml.parsers.SAXParser.parse(SAXParser.java:392)
   at javax.xml.parsers.SAXParser.parse(SAXParser.java:328)
   at org.alfresco.repo.transfer.fsr.FileTransferReceiver.commit(FileTransferReceiver.java:177)
   at org.alfresco.repo.transfer.fsr.FileTransferReceiver$1.run(FileTransferReceiver.java:247)
   at java.lang.Thread.run(Thread.java:679)
Exception in thread "Transfer Commit Thread" org.alfresco.repo.transfer.TransferFatalException: 07150000 transfer_service.receiver.error_committing_transfer
   at org.alfresco.repo.transfer.AbstractManifestProcessorBase.handleException(AbstractManifestProcessorBase.java:224)
   at org.alfresco.repo.transfer.AbstractManifestProcessorBase.processTransferManifestNode(AbstractManifestProcessorBase.java:86)
   at org.alfresco.repo.transfer.manifest.XMLTransferManifestReader.endElement(XMLTransferManifestReader.java:387)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:604)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1759)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2915)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:819)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:748)
   at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)
   at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525)
   at javax.xml.parsers.SAXParser.parse(SAXParser.java:392)
   at javax.xml.parsers.SAXParser.parse(SAXParser.java:328)
   at org.alfresco.repo.transfer.fsr.FileTransferReceiver.commit(FileTransferReceiver.java:177)
   at org.alfresco.repo.transfer.fsr.FileTransferReceiver$1.run(FileTransferReceiver.java:247)
   at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.NullPointerException: Source must not be null
   at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:631)
   at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:607)
   at org.alfresco.repo.transfer.fsr.ManifestProcessorImpl.processContext(ManifestProcessorImpl.java:615)
   at org.alfresco.repo.transfer.fsr.ManifestProcessorImpl.processNode(ManifestProcessorImpl.java:517)
   at org.alfresco.repo.transfer.AbstractManifestProcessorBase.processTransferManifestNode(AbstractManifestProcessorBase.java:82)
   … 16 more

kishor_gandham
Champ in-the-making
Champ in-the-making
Following is the log on alfresco server side:


10:21:58,206 ERROR [org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl] Failed to execute asynchronous action: Action[ id=0293551d-d699-486c-a619-8c0c96821293, node=workspace://SpacesStore/0293551d-d699-486c-a619-8c0c96821293 ]
org.alfresco.service.cmr.replication.ReplicationServiceException: 07150016 Error executing transfer - null
        at org.alfresco.repo.replication.ReplicationActionExecutor.executeImpl(ReplicationActionExecutor.java:339)
        at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:196)
        at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:780)
        at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:700)
        at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1$1.execute(AsynchronousActionExecutionQueueImpl.java:403)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:259)
        at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:412)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:519)
        at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:415)
        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:662)
Caused by: java.lang.NullPointerException
        at org.alfresco.repo.transfer.TransferServiceImpl2.transferImpl(TransferServiceImpl2.java:695)
        at org.alfresco.repo.transfer.TransferServiceImpl2.transfer(TransferServiceImpl2.java:542)
        at org.alfresco.repo.transfer.TransferServiceImpl2.transfer(TransferServiceImpl2.java:517)
        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:309)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:147)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.transaction.RetryingTransactionInterceptor$1.execute(RetryingTransactionInterceptor.java:69)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
        at org.alfresco.repo.transaction.RetryingTransactionInterceptor.invoke(RetryingTransactionInterceptor.java:59)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy120.transfer(Unknown Source)
        at org.alfresco.repo.replication.ReplicationActionExecutor.executeImpl(ReplicationActionExecutor.java:307)
        … 12 more

kishor_gandham
Champ in-the-making
Champ in-the-making
It looks like this is a known issue with Alfresco 4.0 community edition. Following is the alfresco jira link for this issue:
https://issues.alfresco.com/jira/browse/ALF-15590?page=com.atlassian.jira.plugin.system.issuetabpane...