-
1. Re: How to resolve UserGroupCallback dependecy? Getting error message Unsatisfied dependencies for type [UserGroupCallback] with qualifiers [@Default] at injection point [[field] @Inject private org.jbpm.services.task.commands.TaskContext.userGroupCallbac
swiderski.maciej Feb 13, 2014 1:41 AM (in response to suraj.bahl.50)you have marked DefaultUserGroupCallbackImpl as an Alternative. Not sure you need that to be alternative as you know it's going to be used that one and only that one. So try removing the alternative and producer is no needed anymore as well because DefaultUserGroupCallbackImpl is actual cdi bean itself.
HTH
-
2. Re: How to resolve UserGroupCallback dependecy? Getting error message Unsatisfied dependencies for type [UserGroupCallback] with qualifiers [@Default] at injection point [[field] @Inject private org.jbpm.services.task.commands.TaskContext.userGroupCallbac
suraj.bahl.50 Feb 13, 2014 7:00 AM (in response to swiderski.maciej)Hi Maciej,
Thanks for your help, I am able to resove the usergroupcallback dependency but now getting below error:
Unsatisfied dependencies for type [UserGroupCallback] with qualifiers [@Default] at injection point [[field] @Inject private org.jbpm.services.task.identity.AbstractUserGroupCallbackDecorator.userGroupCallback
Though i have already added decorator beans in beans.xml, can you please advise on this one:
<decorators>
<class>org.jbpm.services.task.identity.UserGroupTaskQueryServiceDecorator</class>
<class>org.jbpm.services.task.identity.UserGroupTaskInstanceServiceDecorator</class>
<class>org.jbpm.services.task.identity.UserGroupLifeCycleManagerDecorator</class>
<class>org.jbpm.services.task.subtask.SubTaskDecorator</class>
</decorators>
Regards,
Suraj
-
3. Re: How to resolve UserGroupCallback dependecy? Getting error message Unsatisfied dependencies for type [UserGroupCallback] with qualifiers [@Default] at injection point [[field] @Inject private org.jbpm.services.task.commands.TaskContext.userGroupCallbac
suraj.bahl.50 Feb 13, 2014 11:38 AM (in response to suraj.bahl.50)Hi Maciej,
I further looked into the issue and found the rootcause why my code was not able to resolve the "UserGroupCallBack" dependecy, as i had built my project on jBPM6.0 version which looks for "org.kie.internal.task.api.UserGroupCallback" implementation but MyUserGroupCallback was implementing different interface "org.kie.api.task.UserGroupCallback" (code taken from a sample which is built on jBPM6.0.1)...
Now i am cofused which version i should use 6.0 or 6.0.1 and is there a reason why it is changed in 6.0.1 version?
Regards,
Suraj
-
4. Re: How to resolve UserGroupCallback dependecy? Getting error message Unsatisfied dependencies for type [UserGroupCallback] with qualifiers [@Default] at injection point [[field] @Inject private org.jbpm.services.task.commands.TaskContext.userGroupCallbac
suraj.bahl.50 Feb 13, 2014 5:16 PM (in response to suraj.bahl.50)Hi Maciej,
Need some more help from you.
- I am able to finally run the web application sample however when i return blank list from getGroupsForUser in UserGroupCallBack then i get a hibernate exception "Unexpected end of sub of tree" while getting task assigned to an owner (getTasksAssignedAsPotentialOwner). if i put something in the list then it work fines, is it necessary to retrurn non-empty list?
- In server console i see lot of errors related to H2 DDL commands like "Unsuccessful: alter table Attachment drop constraint FK1C.....FB5"...."Table "ATTACHMENT" not found; SQL statement"
- I also see a warning - "Could not commit session: org.drools.persistence.SessionNotFoundException: Could not find session data for id 1"
regards,
Suraj
-
5. Re: How to resolve UserGroupCallback dependecy? Getting error message Unsatisfied dependencies for type [UserGroupCallback] with qualifiers [@Default] at injection point [[field] @Inject private org.jbpm.services.task.commands.TaskContext.userGroupCallbac
swiderski.maciej Feb 14, 2014 1:40 AM (in response to suraj.bahl.50)Suraj Bahl wrote:
Hi Maciej,
Need some more help from you.
- I am able to finally run the web application sample however when i return blank list from getGroupsForUser in UserGroupCallBack then i get a hibernate exception "Unexpected end of sub of tree" while getting task assigned to an owner (getTasksAssignedAsPotentialOwner). if i put something in the list then it work fines, is it necessary to retrurn non-empty list?
if you have tasks assigned to groups then your callback must return list of groups user belong to, otherwise query will not return hits as given user is not allowed to get access to these tasks
Suraj Bahl wrote:
- In server console i see lot of errors related to H2 DDL commands like "Unsuccessful: alter table Attachment drop constraint FK1C.....FB5"...."Table "ATTACHMENT" not found; SQL statement"
this is ok, hibernate reports such errors when using in memory db as it recreates it every time it starts, as far as I know it's harmless
Suraj Bahl wrote:
- I also see a warning - "Could not commit session: org.drools.persistence.SessionNotFoundException: Could not find session data for id 1"
this because of combination of in memory data base and singleton runtime manager strategy (used by default) as when you restart the server all data from db are gone but runtime manager remembers session id and tries to reload it. Again it's harmless.
HTH
-
6. Re: How to resolve UserGroupCallback dependecy? Getting error message Unsatisfied dependencies for type [UserGroupCallback] with qualifiers [@Default] at injection point [[field] @Inject private org.jbpm.services.task.commands.TaskContext.userGroupCallbac
suraj.bahl.50 Feb 14, 2014 3:50 AM (in response to swiderski.maciej)Thanks alot Maciej for all your help