Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Workflow version error

aksh100
Level 1
Level 1

Hello,

A missing version error is being repeatedly logged in error.log. The model itself is not present under in /etc/workflow/models

13.11.2013 12:05:11.486 *ERROR* [0:0:0:0:0:0:0:1 [1384324511478] GET /libs/cq/workflow/content/inbox/list.json HTTP/1.1] com.adobe.granite.workflow.core.jcr.WorkItemAdapterFactory error adapting a class of type [{org.apache.jackrabbit.core.NodeImpl}] to type [{java.lang.Class}] com.adobe.granite.workflow.model.VersionException: Version 1.3 does not exist for /etc/workflow/models/test1/jcr:content/model
    at com.adobe.granite.workflow.core.jcr.WorkflowModelManager.getWorkflowModel(WorkflowModelManager.java:96)

Thanks,

1 Accepted Solution
Will_McGauley
Correct answer by
Employee
Employee

Hi,

This is happening because you have an active workitem for a model that has been deleted.  The easiest way to rectify this is to use the Workflow Maintenance MBean to remove the workflow instances for this model which no longer exists.

go to http://localhost:4502/system/console/jmx/com.adobe.granite.workflow%3Atype%3DMaintenance

 

and use the "purgeActive" and "purgeCompleted" operations and make sure to pass the model ID mentioned in the error above --> "/etc/workflow/models/test1/jcr:content/model"

You can use the dry-run option to preview the changes before executing them.

Will

View solution in original post

1 Reply
Will_McGauley
Correct answer by
Employee
Employee

Hi,

This is happening because you have an active workitem for a model that has been deleted.  The easiest way to rectify this is to use the Workflow Maintenance MBean to remove the workflow instances for this model which no longer exists.

go to http://localhost:4502/system/console/jmx/com.adobe.granite.workflow%3Atype%3DMaintenance

 

and use the "purgeActive" and "purgeCompleted" operations and make sure to pass the model ID mentioned in the error above --> "/etc/workflow/models/test1/jcr:content/model"

You can use the dry-run option to preview the changes before executing them.

Will

View solution in original post