Forum LAMS for Tech-Heads - General Forum: Null Pointer Exception in Multiple Choice Tool


 
You may request notification for Null Pointer Exception in Multiple Choice Tool.
Search: 

1: Null Pointer Exception in Multiple Choice Tool
02/06/08 09:03 AM
[ Reply | Forward ]
I an getting a Null Pointer Exception in the multiple choice tool.

java.lang.NullPointerException: Unknown runtime exception! Hide detail
java.lang.NullPointerException at org.lamsfoundation.lams.tool.mc.web.LearningUtil.addToAttemptMaps(LearningUtil.java:923) at org.lamsfoundation.lams.tool.mc.web.LearningUtil.getAttemptMapsForUser(LearningUtil.java:869) at org.lamsfoundation.lams.tool.mc.web.McLearningAction.prepareViewAnswersData(McLearningAction.java:1282) at org.lamsfoundation.lams.tool.mc.web.McLearningAction.viewAnswers(McLearningAction.java:1352) at org.lamsfoundation.lams.tool.mc.web.McLearningStarterAction.execute(McLearningStarterAction.java:405) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at

in this case I see the learner has already completed the entire activity.

Posted by Dave Bauer

2: Re: Null Pointer Exception in Multiple Choice Tool
In response to 1 02/06/08 09:57 AM
[ Reply | Forward ]
Here is some debug info from before the error message.



.lamsfoundation.lams.tool.mc.pojos.McQueContent@bdd4d8[uid=1396], org.lamsfounda
tion.lams.tool.mc.pojos.McQueContent@e0d42a[uid=1397], org.lamsfoundation.lams.t
ool.mc.pojos.McQueContent@8916fa[uid=1398], org.lamsfoundation.lams.tool.mc.pojo
s.McQueContent@438ef4[uid=1399]]
09:35:21,492 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - mcQueContent:org.lamsfoundation.lams.tool.mc.pojos.McQueContent@19
586c8[uid=1385]
09:35:21,492 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - feedback:
09:35:21,492 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - mcQueContent:org.lamsfoundation.lams.tool.mc.pojos.McQueContent@1c
3d514[uid=1386]
09:35:21,492 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - feedback:
09:35:21,493 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - mcQueContent:org.lamsfoundation.lams.tool.mc.pojos.McQueContent@1d
a4e65[uid=1387]
09:35:21,493 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - feedback:
09:35:21,493 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - mcQueContent:org.lamsfoundation.lams.tool.mc.pojos.McQueContent@15
10241[uid=1388]
09:35:21,493 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - feedback:
09:35:21,493 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - mcQueContent:org.lamsfoundation.lams.tool.mc.pojos.McQueContent@16
b2d5e[uid=1389]
09:35:21,493 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - feedback:
09:35:21,493 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - mcQueContent:org.lamsfoundation.lams.tool.mc.pojos.McQueContent@16
f8b90[uid=1390]
09:35:21,494 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - feedback:
09:35:21,494 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - mcQueContent:org.lamsfoundation.lams.tool.mc.pojos.McQueContent@33
b96c[uid=1391]
09:35:21,494 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - feedback:
09:35:21,494 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - mcQueContent:org.lamsfoundation.lams.tool.mc.pojos.McQueContent@1d
26ddd[uid=1392]
09:35:21,494 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - feedback:
09:35:21,494 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - mcQueContent:org.lamsfoundation.lams.tool.mc.pojos.McQueContent@2a
ff78[uid=1393]
09:35:21,500 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - feedback:
09:35:21,500 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - mcQueContent:org.lamsfoundation.lams.tool.mc.pojos.McQueContent@ea
423e[uid=1394]
09:35:21,500 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - feedback:
09:35:21,500 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - mcQueContent:org.lamsfoundation.lams.tool.mc.pojos.McQueContent@1a
3272e[uid=1395]


09:35:21,500 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - mcQueContent:org.lamsfoundation.lams.tool.mc.pojos.McQueContent@bd
d4d8[uid=1396]
09:35:21,500 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - feedback:
09:35:21,500 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - mcQueContent:org.lamsfoundation.lams.tool.mc.pojos.McQueContent@e0
d42a[uid=1397]
09:35:21,500 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - feedback:
09:35:21,500 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - mcQueContent:org.lamsfoundation.lams.tool.mc.pojos.McQueContent@89
16fa[uid=1398]
09:35:21,500 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - feedback:
09:35:21,500 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - mcQueContent:org.lamsfoundation.lams.tool.mc.pojos.McQueContent@43
8ef4[uid=1399]
09:35:21,500 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - feedback:
09:35:21,506 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Au
thoringUtil - refreshed Map:{1=, 2=, 3=, 4=, 5=, 6=, 7=, 8=, 9=, 10=, 11=, 12=, 
13=, 14=, 15=}
09:35:21,506 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Mc
LearningAction - learnerProgressOn:false
09:35:21,506 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Mc
LearningAction - learnerProgress off, using user from session
09:35:21,506 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - getUser:: 124
09:35:21,519 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.McUtil
s - retrieving toolUser: org.lamsfoundation.lams.usermanagement.dto.UserDTO@16b2
515[userID=24,firstName=Kenneth,lastName=Discepolo,login=shfrcur_59451,localeLan
guage=en,localeCountry=AU,direction=LTR,email=kdiscepolo@springhillfire.com,flas
hTheme=org.lamsfoundation.lams.themes.dto.CSSThemeBriefDTO@14f8a87,htmlTheme=org
.lamsfoundation.lams.themes.dto.CSSThemeBriefDTO@10fd2df,timeZone=sun.util.calen
dar.ZoneInfo[id="Australia/Sydney",offset=36000000,dstSavings=3600000,useDayligh
t=true,transitions=142,lastRule=java.util.SimpleTimeZone[id=Australia/Sydney,off
set=36000000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,startMo
nth=9,startDay=-1,startDayOfWeek=1,startTime=7200000,startTimeMode=1,endMode=2,e
ndMonth=2,endDay=-1,endDayOfWeek=1,endTime=7200000,endTimeMode=1]]]
09:35:21,519 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.McUtil
s - userId: 24
09:35:21,532 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - retrieving mcSession: org.lamsfoundation.lams.tool.mc.pojos.McSessi
on@23b026[uid=44]
09:35:21,540 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - retrieving mcQueUsr: org.lamsfoundation.lams.tool.mc.pojos.McQueUsr
@6370fa[uid=51,queUsrId=24,username=shfrcur_59451,fullname=Kenneth Discepolo,res
ponseFinalised=false,viewSummaryRequested=false,mcSessionId=44,lastAttemptOrder=
2,lastAttemptTotalMark=16]
09:35:21,541 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Mc
LearningAction - final mcQueUsr: org.lamsfoundation.lams.tool.mc.pojos.McQueUsr@
6370fa[uid=51,queUsrId=24,username=shfrcur_59451,fullname=Kenneth Discepolo,resp
onseFinalised=false,viewSummaryRequested=false,mcSessionId=44,lastAttemptOrder=2
,lastAttemptTotalMark=16]
09:35:21,541 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - doing question with display order: 1

09:35:21,579 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - doing question with display order: 2
09:35:21,582 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - mcQueContent uid: 1386
09:35:21,587 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - doing question with display order: 3
09:35:21,590 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - mcQueContent uid: 1387
09:35:21,596 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - doing question with display order: 4
09:35:21,603 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - mcQueContent uid: 1388
09:35:21,607 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - doing question with display order: 5
09:35:21,610 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - mcQueContent uid: 1389
09:35:21,614 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - doing question with display order: 6
09:35:21,617 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - mcQueContent uid: 1390
09:35:21,621 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - doing question with display order: 7
09:35:21,625 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - mcQueContent uid: 1391
09:35:21,634 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - doing question with display order: 8
09:35:21,648 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - mcQueContent uid: 1392
09:35:21,652 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - doing question with display order: 9
09:35:21,656 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - mcQueContent uid: 1393
09:35:21,660 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - doing question with display order: 10
09:35:21,663 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - mcQueContent uid: 1394
09:35:21,668 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - doing question with display order: 11
09:35:21,671 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - mcQueContent uid: 1395
09:35:21,676 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - doing question with display order: 12
09:35:21,689 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - mcQueContent uid: 1396
09:35:21,697 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - doing question with display order: 13
09:35:21,700 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - mcQueContent uid: 1397
09:35:21,704 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - doing question with display order: 14
09:35:21,707 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - mcQueContent uid: 1398
09:35:21,717 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - doing question with display order: 15
09:35:21,721 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.tool.mc.web.Le
arningUtil - mcQueContent uid: 1399

Posted by Dave Bauer

3: Re: Null Pointer Exception in Multiple Choice Tool
In response to 1 02/06/08 10:01 AM
[ Reply | Forward ]
I have recenetly applied the fix to speed up multiple choice.

It appears that people who completed the activity before the patch was applied are seeing this error if they open the lesson.

Posted by Dave Bauer

4: Re: Re: Null Pointer Exception in Multiple Choice Tool
In response to 3 02/06/08 08:00 PM
[ Reply | Forward ]
Dave,

I've tried loading up an environment with LAMS 2.0.4 and the multiple choice patch we gave you and I can't reproduce this problem. This included completing the activity before applying the patch and the logging in as the user and reviewing the answers.

But looking at the method listed in the error message, there is a bug in the code. I will be emailing you directly with a code update and we'll see if that fixes the problem.

Fiona

Posted by Fiona Malikoff

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum