adding "or opl.organization.id is null" solved the problem. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214469#4214469 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214469