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!
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/
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.