Hi,
I was trying to implement the the assignment 1 part 4 for the 599 course. We have to implement functions like viewProfile(), listFriends(), viewFriendReq(), rejectFriend(), inviteFriend(), thawFriendship(), viewTopKResources(), viewCommentOnResource(), postCommentOnResource(), delCommentOnResource() here.
I have written the definitions for each of them. After trying to run my code I got the following error.
Error-Cant activate any user.
java.lang.ArrayIndexOutOfBoundsException: 6
at edu.usc.bg.workloads.CoreWorkload.activateUser(CoreWorkload.java:2992)
at edu.usc.bg.workloads.CoreWorkload.doTransactionOwnProfile(CoreWorkload.java:1101)
at edu.usc.bg.workloads.CoreWorkload.doTransaction(CoreWorkload.java:996)
at edu.usc.bg.base.ClientThread.run(ClientThread.java:201)
i believe that the index of the userStatusShards array is out of bounds.
Does anybody have an idea what the cause of this error could be?
Thanks!
-Vaishnavi