Expand my Community achievements bar.

SOLVED

DAM Update Asset Workflow not working

Avatar

Employee

Hi all,

I have just started working on AEM Assets. I am currently trying to upload an image asset from my local disk to my local AEM instance. I am providing those images some metadata properties such as dc:title and dc:description using Photoshop. However, these properties are not visible to me once I upload the asset to AEM. Also the vice-versa process from AEM to photoshop doesn't seem to work. Also renditions and thumbnails are not being generated for my asset once I upload those to AEM and the dam:assetState is always stuck at "unProcessed" everytime I upload any asset to AEM. I have never made any changes to my DAM Update asset workflow as I have just recently started working with assets and workflows. Please help me with this.

 

Thank you.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@chanakya, thanks for sharing feedback. I am not sure if this issue is happening on your local environment or in some remote server. If it is local then you could try to recreate your AEM instance.

View solution in original post

6 Replies

Avatar

Community Advisor

Hi @chanakya, could you please share following details:

  • AEM version that you are using,
  • what type (jpg, png etc) of asset you are trying to upload, if that is not a problem could you please share the problematic asset as well
  • could you please check error.log and share the output related to workflow

Avatar

Employee

Hi @lukasz-m ,

 

  • My AEM version is 6.5.10.0
  • I have tried to upload various and different kinds of images(png,jpg) but everything leads to the same issue.
  • This is something I just encountered after checking the error logs: *WARN* [sling-oak-observation-3] org.apache.sling.event.impl.jobs.queues.QueueJobCache Unable to read job from /var/eventing/jobs/assigned/88cfbf79-98a9-4c05-a8b0-e67a678e40d7/com.adobe.granite.workflow.transient.job.var.workflow.models.dam.update_asset/2022/1/10/18/27/88cfbf79-98a9-4c05-a8b0-e67a678e40d7_10
    java.lang.RuntimeException: Unable to deserialize property 'transient.workflowDataMetaData'
    at org.apache.sling.event.impl.support.ResourceHelper.cloneValueMap(ResourceHelper.java:220) [org.apache.sling.event:4.2.12]
    at org.apache.sling.event.impl.jobs.Utility.readJob(Utility.java:181) [org.apache.sling.event:4.2.12]
    at org.apache.sling.event.impl.jobs.JobTopicTraverser.traverse(JobTopicTraverser.java:149) [org.apache.sling.event:4.2.12]
    at org.apache.sling.event.impl.jobs.JobTopicTraverser.traverse(JobTopicTraverser.java:86) [org.apache.sling.event:4.2.12]
    at org.apache.sling.event.impl.jobs.queues.QueueJobCache.loadJobs(QueueJobCache.java:277) [org.apache.sling.event:4.2.12]
    at org.apache.sling.event.impl.jobs.queues.QueueJobCache.loadJobs(QueueJobCache.java:223) [org.apache.sling.event:4.2.12]
    at org.apache.sling.event.impl.jobs.queues.QueueJobCache.fillCache(QueueJobCache.java:134) [org.apache.sling.event:4.2.12]
    at org.apache.sling.event.impl.jobs.queues.QueueJobCache.<init>(QueueJobCache.java:94) [org.apache.sling.event:4.2.12]
    at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.createQueue(JobQueueImpl.java:133) [org.apache.sling.event:4.2.12]
    at org.apache.sling.event.impl.jobs.queues.QueueManager.start(QueueManager.java:235) [org.apache.sling.event:4.2.12]
    at org.apache.sling.event.impl.jobs.queues.QueueManager.handleEvent(QueueManager.java:410) [org.apache.sling.event:4.2.12]
    at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:415) [org.apache.felix.eventadmin:1.5.0]
    at org.apache.felix.eventadmin.impl.tasks.HandlerTask.runWithoutBlacklistTiming(HandlerTask.java:82) [org.apache.felix.eventadmin:1.5.0]
    at org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:104) [org.apache.felix.eventadmin:1.5.0]
    at org.apache.felix.eventadmin.impl.handler.EventAdminImpl.sendEvent(EventAdminImpl.java:147) [org.apache.felix.eventadmin:1.5.0]
    at org.apache.felix.eventadmin.impl.security.EventAdminSecurityDecorator.sendEvent(EventAdminSecurityDecorator.java:96) [org.apache.felix.eventadmin:1.5.0]
    at org.apache.sling.event.impl.jobs.notifications.NewJobSender.onChange(NewJobSender.java:118) [org.apache.sling.event:4.2.12]
    at org.apache.sling.resourceresolver.impl.observation.BasicObservationReporter.reportChanges(BasicObservationReporter.java:211) [org.apache.sling.resourceresolver:1.7.2.B0001]
    at org.apache.sling.jcr.resource.internal.JcrResourceListener.onEvent(JcrResourceListener.java:155) [org.apache.sling.jcr.resource:3.0.18]
    at org.apache.jackrabbit.commons.observation.ListenerTracker$1.onEvent(ListenerTracker.java:190) [org.apache.jackrabbit.jackrabbit-jcr-commons:2.20.2]
    at org.apache.jackrabbit.oak.jcr.observation.ChangeProcessor.contentChanged(ChangeProcessor.java:513) [org.apache.jackrabbit.oak-jcr:1.22.8]
    at org.apache.jackrabbit.oak.plugins.observation.FilteringDispatcher.contentChanged(FilteringDispatcher.java:52) [org.apache.jackrabbit.oak-core:1.22.8]
    at org.apache.jackrabbit.oak.spi.commit.BackgroundObserver$1$1.call(BackgroundObserver.java:127) [org.apache.jackrabbit.oak-store-spi:1.22.8]
    at org.apache.jackrabbit.oak.spi.commit.BackgroundObserver$1$1.call(BackgroundObserver.java:121) [org.apache.jackrabbit.oak-store-spi:1.22.8]
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)
    Caused by: java.io.InvalidClassException: filter status: REJECTED
    at java.base/java.io.ObjectInputStream.filterCheck(ObjectInputStream.java:1354)
    at java.base/java.io.ObjectInputStream.checkArray(ObjectInputStream.java:1384)
    at java.base/java.util.HashMap.readObject(HashMap.java:1450)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at java.base/java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1175)
    at java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2325)
    at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2196)
    at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679)
    at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:493)
    at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:451)
    at org.apache.sling.event.impl.support.ResourceHelper.cloneValueMap(ResourceHelper.java:214) [org.apache.sling.event:4.2.12]
    ... 27 common frames omitted

Avatar

Community Advisor

Could you please try following steps:

  1. Terminate all DAM workflow instance, you can do this from:
    1. /libs/cq/workflow/content/console.html or
    2. /libs/cq/workflow/admin/console/content/instances.html
  2. Open crx/de, navigate to /var/eventing/jobs/assigned and find com.adobe.granite.workflow.transient.job.var.workflow.models.dam.update_asset folder and remove it with all child nodes.
  3. Restart AEM.

Avatar

Employee

Hi @lukasz-m ,

 

Thanks for the response, tried the above mentioned steps but it leads to the same error.

1.My workflow instances list was empty so didn't have to do anything

2.Deleted com.adobe.granite.workflow.transient.job.var.workflow.models.dam.update_asset folder with all child nodes.

3.Restarted my AEM instance.

 

Still the same error pops in my error.log

Avatar

Correct answer by
Community Advisor

@chanakya, thanks for sharing feedback. I am not sure if this issue is happening on your local environment or in some remote server. If it is local then you could try to recreate your AEM instance.

Avatar

Employee

@lukasz-m creating a new AEM instance does work fine but I needed a way around to make the workflow work on my current AEM instance. Thanks for all the help and suggestions. Much appreciated!