[Building Sakai] SCORM problem ?

Phuc Bui phucbui2006 at yahoo.com.vn
Thu May 28 02:53:44 PDT 2009


Dear,
When I login as instructor, I can upload file successfully.
But when I login as student (limit the upload function), I still see the upload link, then I use it and the error happens.
Why cannot it hide the Upload link when I do not have this permission. (while other functions such as Configure is hide when I'm not allowed to use)
Student view (limited Upload function):
http://i400.photobucket.com/albums/pp88/bmphuc/student_role.jpg
SCORM error display (after click Upload file)
http://i400.photobucket.com/albums/pp88/bmphuc/unable_to_upload.jpg

Here is the error in console
-------------------------------------------
        at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents
(AbstractRequestCycleProcessor.java:91)
        at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.j
ava:1175)
        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
        at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
        at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:
355)
        at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.ja
va:145)
        ......
ERROR: Failed to retrieve resource from content hosting  (2009-05-28 16:38:16,36
3 http-8080-Processor23_org.sakaiproject.scorm.service.sakai.impl.SakaiResourceS
ervice)
java.lang.NullPointerException
        at org.sakaiproject.content.impl.BaseContentService.convertLockIfDropbox
(BaseContentService.java:1348)
        at org.sakaiproject.content.impl.BaseContentService.unlock(BaseContentSe
rvice.java:1611)
        at org.sakaiproject.content.impl.BaseContentService.getResource(BaseCont
entService.java:4081)
        at org.sakaiproject.scorm.service.sakai.impl.SakaiResourceService.getArc
hiveStream(SakaiResourceService.java:108)
        at org.sakaiproject.scorm.service.impl.ScormContentServiceImpl.validate(
ScormContentServiceImpl.java:167)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
....
ERROR: Failed to upload file (2009-05-28 16:38:16,609 http-8080-Processor23_org.
sakaiproject.scorm.ui.upload.pages.UploadPage$FileUploadForm)
java.lang.NullPointerException
        at org.sakaiproject.scorm.service.impl.ScormContentServiceImpl.createFil
e(ScormContentServiceImpl.java:297)
        at org.sakaiproject.scorm.service.impl.ScormContentServiceImpl.validate(
ScormContentServiceImpl.java:167)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyIn
itProxyFactory.java:416)
        at org.apache.wicket.proxy.$Proxy89.validate(Unknown Source)
        at org.sakaiproject.scorm.ui.upload.pages.UploadPage$FileUploadForm.onSu
bmit(UploadPage.java:75)
        at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1355
)
        at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:810
)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
..........................................

Thanks,
Phuc Bui

-----Original Message-----
From: Mike Ozornin [mailto:mike.ozornin at gmail.com] 
Sent: Wednesday, May 27, 2009 10:08 AM
To: Phuc Bui
Cc: sakai-dev at collab.sakaiproject.org
Subject: Re: [Building Sakai] SCORM problem ?

Hello,

What kind of problems do you have? Have validation of SCORM package
passed succesfully?
Would you please attach error message and error log?

On Wed, May 27, 2009 at 7:48 AM, Phuc Bui <phucbui2006 at yahoo.com.vn> wrote:
> Dear all,
>
> I have installed SCORM player and set permission for student just only
> scorm.launch, but on the SCORM player screen, it also displays Upload,
> Validate.
>
> When I select to upload, it says Unable to upload and throw some errors.
>
> Would you please instruct me how to hide these functions if users do not
> have permission to use it ?
>
>
>
> Thanks
>
> Phuc Bui
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org
> with a subject of "unsubscribe"
>



More information about the sakai-dev mailing list