Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE in FeedbackContributionQuestionDetails.getTeamSubmissionArray #9538

Open
damithc opened this issue Mar 5, 2019 · 5 comments
Open

NPE in FeedbackContributionQuestionDetails.getTeamSubmissionArray #9538

damithc opened this issue Mar 5, 2019 · 5 comments
Labels
a-FaultTolerance Resilience to user errors and environment problems c.Bug Bug/defect report committers only Difficult; better left for committers or more senior developers p.Medium Marginal impact; would like to do if time permits

Comments

@damithc
Copy link
Contributor

damithc commented Mar 5, 2019

v6.16.2

I've been getting this error from the live server. There was a handful of it, reported in two day so far.

Error Message: teammates.common.util.Logger severe: Unexpected exception caught by ControllerServlet :
java.lang.NullPointerException
at teammates.common.datatransfer.questions.FeedbackContributionQuestionDetails.getTeamSubmissionArray(FeedbackContributionQuestionDetails.java:517)
at teammates.common.datatransfer.questions.FeedbackContributionQuestionDetails.getQuestionResultStatisticsCsv(FeedbackContributionQuestionDetails.java:342)
at teammates.logic.core.FeedbackSessionsLogic.getFeedbackSessionResultsForQuestionInCsvFormat(FeedbackSessionsLogic.java:822)
at teammates.logic.core.FeedbackSessionsLogic.getFeedbackSessionResultsSummaryInSectionAsCsv(FeedbackSessionsLogic.java:800)
at teammates.logic.core.FeedbackSessionsLogic.getFeedbackSessionResultsSummaryAsCsv(FeedbackSessionsLogic.java:745)
at teammates.logic.api.Logic.getFeedbackSessionResultSummaryAsCsv(Logic.java:1243)
at teammates.ui.controller.InstructorFeedbackResultsDownloadAction.execute(InstructorFeedbackResultsDownloadAction.java:58)
at teammates.ui.controller.Action.executeAndPostProcess(Action.java:478)
at teammates.ui.controller.ControllerServlet.doPost(ControllerServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)

@damithc damithc added a-FaultTolerance Resilience to user errors and environment problems s.ToInvestigate The issue sounds complete but needs validation by a core team member labels Mar 5, 2019
@damithc
Copy link
Contributor Author

damithc commented Mar 5, 2019

actually, a user is unable to download results due to this problem. An urgent fix is needed.

@damithc damithc added the p.Urgent Would like to handle in the very next release label Mar 5, 2019
@damithc
Copy link
Contributor Author

damithc commented Mar 5, 2019

Note that the course in concern has some unusual team names:

5 and alive
5 and alive
5 and alive
5 and alive
99 Problems But Stats A'int One
99 Problems But Stats A'int One
99 Problems But Stats A'int One
99 Problems But Stats A'int One
Above Average
Above Average
Above Average
Above Average
Algebros
Algebros
Algebros
Algebros
BleedBlue
BleedBlue
BleedBlue
BleedBlue
CamFam
CamFam
CamFam
CamFam
Coding Crazies
Coding Crazies
Coding Crazies
Coding Crazies
Confounding Variables
Confounding Variables
Confounding Variables
Confounding Variables
Correlation is Causation
Correlation is Causation
Correlation is Causation
Correlation is Causation
Dream Team
Dream Team
Dream Team
Dream Team
Duke Stat Kidz
Duke Stat Kidz
Duke Stat Kidz
Duke Stat Kidz
Exclusive Sheep
Exclusive Sheep
Exclusive Sheep
FantasticFour
FantasticFour
FantasticFour
FantasticFour
Fantstic-4
Fantstic-4
Fantstic-4
Fantstic-4
Girls Who Code
Girls Who Code
Girls Who Code
Girls Who Code
Juniors
Juniors
Juniors
Juniors
MEAN Girls
MEAN Girls
MEAN Girls
MEAN Girls
MegaCalculator
MegaCalculator
MegaCalculator
MegaCalculator
Outliers
Outliers
Outliers
Outliers
R-mageddon
R-mageddon
R-mageddon
R-mageddon
Red Team
Red Team
Red Team
Red Team
Spaghetti Carbonara
Spaghetti Carbonara
Spaghetti Carbonara
Spaghetti Carbonara
Standard Deviants
Standard Deviants
Standard Deviants
Standard Deviants
Stat Seniors
Stat Seniors
Stat Seniors
Stat Seniors
aRmy
aRmy
aRmy
aRmy
Stat-tastic
Stat-tastic
Stat-tastic
Stat-tastic
Team Mean
Team Mean
Team Mean
Team Mean
Team Super Stat
Team Super Stat
Team Super Stat
Team Super Stat
Team dos
Team dos
Team dos
Team dos
TeamEnigma
TeamEnigma
TeamEnigma
TeamEnigma
The Outliers
The Outliers
The Outliers
The Outliers
The Whiskers
The Whiskers
The Whiskers
The Whiskers
TrueMean
TrueMean
TrueMean
TrueMean
Washed Up
Washed Up
Washed Up
Washed Up
We dont like 8:30's
We dont like 8:30's
We dont like 8:30's
We dont like 8:30's
Zoe 101
Zoe 101
Zoe 101
Zoe 101
Instructors
Instructors
Instructors

@xpdavid
Copy link
Contributor

xpdavid commented Mar 5, 2019

Fixed the issue with @damithc by changing teamName Instructors to something else. The error can be reproduced by enrolling students with teamName Instructors.

Instructors is internally used in the application as a team for instructors.
image

Ideally, teamName can be anything so disallowing Instructors is not a good choice. Need to investigate some other approaches.

@xpdavid xpdavid added p.Medium Marginal impact; would like to do if time permits committers only Difficult; better left for committers or more senior developers c.Bug Bug/defect report and removed p.Urgent Would like to handle in the very next release s.ToInvestigate The issue sounds complete but needs validation by a core team member labels Mar 5, 2019
@Ali96kz
Copy link
Contributor

Ali96kz commented May 1, 2020

@damithc What about making teammates.common.util.Const#USER_TEAM_FOR_INSTRUCTOR more unique? Something like INSTRUCTORS_TEAMMATES_VAR

@xpdavid
Copy link
Contributor

xpdavid commented May 1, 2020

It works but not the optimal. (e.g. what if a team is called INSTRUCTORS_TEAMMATES_VAR?). I think the issue is more challenging than you think as this requires data migration if we want to make changes. If you are new to teammates, please find some firstTimer task to tackle :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-FaultTolerance Resilience to user errors and environment problems c.Bug Bug/defect report committers only Difficult; better left for committers or more senior developers p.Medium Marginal impact; would like to do if time permits
Projects
None yet
Development

No branches or pull requests

3 participants