04-22-2021 02:07 AM
Hi,
I am trying to import a xml file with metadata to a pdf file which is in a repo
target file: test.pdf
xml file: test.pdf.metadata.properties.xml
When I am trying to import xml, I get this errors:
java.lang.NullPointerException
at org.alfresco.repo.bulkimport.metadataloaders.AbstractMapBasedMetadataLoader.loadMetadata(AbstractMapBasedMetadataLoader.java:116)
at org.alfresco.repo.bulkimport.impl.DirectoryAnalyserImpl.isMetadataValid(DirectoryAnalyserImpl.java:293)
at org.alfresco.repo.bulkimport.impl.DirectoryAnalyserImpl.analyseDirectory(DirectoryAnalyserImpl.java:241)
at org.alfresco.repo.bulkimport.impl.AbstractFilesystemTracker.getImportableItemsInDirectory(AbstractFilesystemTracker.java:63)
at org.alfresco.repo.bulkimport.impl.StripingFilesystemTracker.getImportableItems(StripingFilesystemTracker.java:147)
at org.alfresco.repo.bulkimport.impl.StripingFilesystemTracker$1.getNextWork(StripingFilesystemTracker.java:203)
at org.alfresco.repo.batch.BatchProcessor$WorkProviderIterator.hasNext(BatchProcessor.java:587)
at org.alfresco.repo.batch.BatchProcessor.process(BatchProcessor.java:392)
at org.alfresco.repo.bulkimport.impl.StripingBulkFilesystemImporter.bulkImportImpl(StripingBulkFilesystemImporter.java:65)
at org.alfresco.repo.bulkimport.impl.AbstractBulkFilesystemImporter$3.execute(AbstractBulkFilesystemImporter.java:391)
at org.alfresco.repo.bulkimport.impl.AbstractBulkFilesystemImporter$3.execute(AbstractBulkFilesystemImporter.java:1)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)
at org.alfresco.repo.bulkimport.impl.AbstractBulkFilesystemImporter.bulkImport(AbstractBulkFilesystemImporter.java:366)
at org.alfresco.repo.bulkimport.impl.AbstractBulkFilesystemImporter$2$1.doWork(AbstractBulkFilesystemImporter.java:347)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:555)
at org.alfresco.repo.bulkimport.impl.AbstractBulkFilesystemImporter$2.run(AbstractBulkFilesystemImporter.java:343)
at java.lang.Thread.run(Thread.java:745)
Any ideas are helpful. Thanks!
04-27-2021 10:16 AM
You may be missing to pass the file and metadata file correctly.
Please review this documentation and try again: https://docs.alfresco.com/content-services/6.1/admin/import-transfer/
Explore our Alfresco products with the links below. Use labels to filter content by product module.