Skip to Content
1
Former Member
Feb 16, 2018 at 05:34 PM

[AbstractItemCopyContext] error setting partOf attribute media : java.lang.NullPointerException

676 Views

I'm having trouble syncing a specific carousel component in my homepage every time I create a new item on CMS and upload the image. When I try to sync, everything goes from Staged to Online, except that the online version of the item isn't associated with the image. So, I get a blank carousel image.

In my logs, I get the following error below:

 ERROR [SyncWorker<00003X7E 14 of 32>] [AbstractItemCopyContext] error setting partOf attribute media : java.lang.NullPointerException
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 | de.hybris.platform.catalog.SynchronizationPersistenceException: java.lang.NullPointerException
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.synchronization.ServiceLayerSynchronizationPersistenceAdapter.doUpdate(ServiceLayerSynchronizationPersistenceAdapter.java:274)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.synchronization.ServiceLayerSynchronizationPersistenceAdapter.update(ServiceLayerSynchronizationPersistenceAdapter.java:248)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.jalo.synchronization.LegacySynchronizationPersistenceAdapter.update(LegacySynchronizationPersistenceAdapter.java:1)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.jalo.synchronization.ItemCopyCreator.setReferenceAttribute(ItemCopyCreator.java:807)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.jalo.synchronization.ItemCopyCreator.setReferenceAttributesWaitingOnDelay(ItemCopyCreator.java:739)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.jalo.synchronization.ItemCopyCreator.setOtherReferences(ItemCopyCreator.java:702)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.jalo.synchronization.ItemCopyCreator.doCopy(ItemCopyCreator.java:444)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.jalo.synchronization.ItemCopyCreator.access$3(ItemCopyCreator.java:429)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.jalo.synchronization.ItemCopyCreator$2.execute(ItemCopyCreator.java:404)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.tx.Transaction.execute(Transaction.java:1188)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.tx.Transaction.execute(Transaction.java:1153)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.jalo.synchronization.ItemCopyCreator.doCopyInTx(ItemCopyCreator.java:397)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.jalo.synchronization.ItemCopyCreator.copy(ItemCopyCreator.java:248)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.jalo.synchronization.GenericCatalogCopyContext.copy(GenericCatalogCopyContext.java:2264)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncCopyContext.copy(CatalogVersionSyncCopyContext.java:534)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.jalo.synchronization.GenericCatalogCopyContext.copy(GenericCatalogCopyContext.java:2189)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncWorker.copyItem(CatalogVersionSyncWorker.java:190)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncWorker.doSynchronization(CatalogVersionSyncWorker.java:161)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncWorker$1.run(CatalogVersionSyncWorker.java:123)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncMaster.runExclusiveIfNecessary(CatalogVersionSyncMaster.java:305)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncWorker.run(CatalogVersionSyncWorker.java:96)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at java.lang.Thread.run(Thread.java:745)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |         at de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncWorkerThread.run(CatalogVersionSyncWorkerThread.java:78)
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 | Caused by: java.lang.NullPointerException
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |
 INFO   | jvm 1    | main    | 2018/02/16 14:06:15.801 |