Details
-
Bug
-
Resolution: Won't Fix
-
Medium
-
None
-
4.0
-
None
-
4
-
Description
Trying to check the Active User Count using com.atlassian.jira.user.util.UserUtilImpl.getActiveUserCount(), one of my customer encounters the following exception :
com.atlassian.util.concurrent.LazyReference$InitializationException: org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115) at com.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:73) at com.atlassian.jira.user.util.UserUtilImpl.getActiveUserCount(UserUtilImpl.java:370)
The calls is done in a Service initied during the start of JIRA (See http://www.minyaa.com/jira/browse/MYAA-465).
What is the way to avoid such error : May I catch the exception and try in loop ?
Regards
Vincent