Add Watermark is not working in AEM 6.4 | Community
Skip to main content
Nov 8, 2018 4:01 AM UTC
Solved

Add Watermark is not working in AEM 6.4

Hi Experts,

We are applying the watermarking as per below Link:

Watermarking

But getting the below error:

com.adobe.granite.workflow.WorkflowException: Process execution resulted in an error

at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:204)

at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:261)

at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502)

at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:293)

at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60)

at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:229)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Caused by: com.adobe.granite.workflow.WorkflowException: Failed to execute process

at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:108)

at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:194)

... 8 more

Caused by: com.day.cq.workflow.WorkflowException: com.day.cq.dam.commons.watermark.WatermarkingException: Unable to create layer from asset image

at com.day.cq.dam.core.process.WaterMarkProcess.execute(WaterMarkProcess.java:162)

at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:93)

... 9 more

Caused by: com.day.cq.dam.commons.watermark.WatermarkingException: Unable to create layer from asset image

at com.day.cq.dam.core.process.WaterMarkProcess.execute(WaterMarkProcess.java:142)

... 10 more

Can you help us and guide us like what may be the cause.

Thanks

Samer

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Nov 8, 2018 10:15 PM UTC

Workaround is using the Java ImageIO (Java Platform SE 7 )  API.

Write a custom Watermark step and pass the Asset Inputstream to these methods. It will apply a watermark to the workflow payload.

11 replies

smacdonald2008
Level 10
Nov 8, 2018 8:39 PM UTC

I will test this one my end. I also reached out to the team with this issue.

Translate