[Building Sakai] samigo test print error

NeilCrazy daiyuechuan at hotmail.com
Sun Nov 24 22:06:50 PST 2013


Hi, 

We found a problem when we try to print out our test or export it.

Sakai 2.9.2


Error:


org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: javax.servlet.ServletException: org.springframework.orm.hibernate3.HibernateObjectRetrievalFailureException: No row with the given identifier exists: [org.sakaiproject.tool.assessment.data.dao.assessment.ItemData#74468]; nested exception is org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.sakaiproject.tool.assessment.data.dao.assessment.ItemData#74468]
at org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:73)
caused by: org.sakaiproject.tool.api.ToolException: javax.servlet.ServletException: org.springframework.orm.hibernate3.HibernateObjectRetrievalFailureException: No row with the given identifier exists: [org.sakaiproject.tool.assessment.data.dao.assessment.ItemData#74468]; nested exception is org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.sakaiproject.tool.assessment.data.dao.assessment.ItemData#74468]
at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1483)
caused by: javax.servlet.ServletException: org.springframework.orm.hibernate3.HibernateObjectRetrievalFailureException: No row with the given identifier exists: [org.sakaiproject.tool.assessment.data.dao.assessment.ItemData#74468]; nested exception is org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.sakaiproject.tool.assessment.data.dao.assessment.ItemData#74468]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
caused by: java.lang.RuntimeException: org.springframework.orm.hibernate3.HibernateObjectRetrievalFailureException: No row with the given identifier exists: [org.sakaiproject.tool.assessment.data.dao.assessment.ItemData#74468]; nested exception is org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.sakaiproject.tool.assessment.data.dao.assessment.ItemData#74468]
at org.sakaiproject.tool.assessment.services.assessment.AssessmentService.updateRandomPoolQuestions(AssessmentService.java:428)
caused by: org.springframework.orm.hibernate3.HibernateObjectRetrievalFailureException: No row with the given identifier exists: [org.sakaiproject.tool.assessment.data.dao.assessment.ItemData#74468]; nested exception is org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.sakaiproject.tool.assessment.data.dao.assessment.ItemData#74468]
at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
caused by: org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.sakaiproject.tool.assessment.data.dao.assessment.ItemData#74468]
at org.hibernate.impl.SessionFactoryImpl$1.handleEntityNotFound(SessionFactoryImpl.java:386)
at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:145)
at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:179)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:103)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:879)
at org.hibernate.impl.SessionImpl.load(SessionImpl.java:796)
at org.hibernate.impl.SessionImpl.load(SessionImpl.java:789)
at org.springframework.orm.hibernate3.HibernateTemplate$3.doInHibernate(HibernateTemplate.java:569)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
at org.springframework.orm.hibernate3.HibernateTemplate.load(HibernateTemplate.java:563)
at org.springframework.orm.hibernate3.HibernateTemplate.load(HibernateTemplate.java:557)
at org.sakaiproject.tool.assessment.facade.ItemFacadeQueries.deleteItem(ItemFacadeQueries.java:170)
at sun.reflect.GeneratedMethodAccessor11467.invoke(null:-1)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy78.deleteItem(null:-1)
at org.sakaiproject.tool.assessment.services.ItemService.deleteItem(ItemService.java:99)
at org.sakaiproject.tool.assessment.services.assessment.AssessmentService.updateRandomPoolQuestions(AssessmentService.java:428)
at org.sakaiproject.tool.assessment.services.assessment.AssessmentService.updateAllRandomPoolQuestions(AssessmentService.java:524)
at org.sakaiproject.tool.assessment.ui.listener.delivery.BeginDeliveryActionListener.updateQuestionPoolQuestions(BeginDeliveryActionListener.java:425)
at org.sakaiproject.tool.assessment.ui.listener.delivery.BeginDeliveryActionListener.getPublishedAssessmentBasedOnAction(BeginDeliveryActionListener.java:363)
at org.sakaiproject.tool.assessment.ui.listener.delivery.BeginDeliveryActionListener.processAction(BeginDeliveryActionListener.java:109)
at org.sakaiproject.tool.assessment.ui.bean.print.PDFAssessmentBean.prepPDF(PDFAssessmentBean.java:256)
at org.sakaiproject.tool.assessment.ui.listener.author.ActionSelectListener.processValueChange(ActionSelectListener.java:91)
at javax.faces.event.ValueChangeEvent.processListener(ValueChangeEvent.java:123)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:669)
at javax.faces.component.UIInput.broadcast(UIInput.java:506)
at javax.faces.component.UIData.broadcast(UIData.java:677)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:269)
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:363)
at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:98)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:634)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
at org.sakaiproject.jsf.util.SamigoJsfTool.dispatch(SamigoJsfTool.java:301)
at org.sakaiproject.jsf.util.JsfTool.doPost(JsfTool.java:256)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:511)
at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1483)
at org.sakaiproject.portal.charon.handlers.ToolHandler.doTool(ToolHandler.java:213)
at org.sakaiproject.portal.charon.handlers.ToolHandler.doGet(ToolHandler.java:96)
at org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:73)
at org.sakaiproject.portal.charon.SkinnableCharonPortal.doPost(SkinnableCharonPortal.java:1273)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:695)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)


Is there anyone seen this before?

Thanks!


Yuechuan






发自 Windows 邮件





发件人: sakai-dev-request at collab.sakaiproject.org
发送时间: ‎2013‎年‎11‎月‎24‎日, ‎星期日 ‎4‎:‎00
收件人: sakai-dev at collab.sakaiproject.org





Send sakai-dev mailing list submissions to
        sakai-dev at collab.sakaiproject.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
or, via email, send a message with subject or body 'help' to
        sakai-dev-request at collab.sakaiproject.org

You can reach the person managing the list at
        sakai-dev-owner at collab.sakaiproject.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of sakai-dev digest..."


Today's Topics:

   1. Re: Sakai CLE 2.9.3: gatewaySiteListDisplayCount  not working
      (Steve Swinsburg)
   2. Re: Lessons Builder import (Qu, Yuanhua)


----------------------------------------------------------------------

Message: 1
Date: Sat, 23 Nov 2013 07:16:56 +1100
From: Steve Swinsburg <steve.swinsburg at gmail.com>
Subject: Re: [Building Sakai] Sakai CLE 2.9.3:
        gatewaySiteListDisplayCount     not working
To: "Wilson, Kimberly" <wilsonk at mail.amc.edu>
Cc: sakai-dev <sakai-dev at collab.sakaiproject.org>
Message-ID: <489B7F6B-0736-4088-BB54-45511D4ADAB8 at gmail.com>
Content-Type: text/plain; charset="utf-8"

This property is specifically for logged out users. It's possible to configure multiple sites that a user can see when logged out, ie gateway sites. What you have done is overridden the preferences tool settings that allow a user to configure this and mixed the logged in and logged out settings together. If that's what you are after then ok, but I would probably replace the else{} logic with a new property that defines what you want otherwise future code maintenance might be tricky.

Cheers
Steve

Sent from my iPad

> On 23 Nov 2013, at 2:38, "Wilson, Kimberly" <wilsonk at mail.amc.edu> wrote:
> 
> Hi Steve:
>  
> Since I saw this in sakai.properties (line 87), I thought that was where to set it:
>  
> # Tab display.  The number of tabs to display before adding the "More" dropdown list.
> # Default=4
> #gatewaySiteListDisplayCount=4
>  
> I think I figured out how to make it work, I?ve tested a lot, but not really sure if this will break something else, what do you think?:
>  
> In this file, I changed the code from this:
> (starting on line 110):
> if (!loggedIn)
> {
>             tabsToDisplay = serverConfigurationService.getInt(
>                         "gatewaySiteListDisplayCount", tabsToDisplay);
> }
> else
> {
>             Preferences prefs = preferencesService
>                                     .getPreferences(session.getUserId());
>             ResourceProperties props = prefs.getProperties("sakai:portal:sitenav");
>             try
>             {
>                         tabsToDisplay = (int) props.getLongProperty("tabs");
>             }
>             catch (Exception any)
>             {
>             }
> }
>  
> To this (I removed the else clause):
>  
> if (loggedIn)
> {
>             tabsToDisplay = serverConfigurationService.getInt(
>                         "gatewaySiteListDisplayCount", tabsToDisplay);
> }
>  
>  
> Kim Wilson, MSCIS | Systems Analyst ? IS Academic Systems | Albany Medical Center | 518-264-1055
>  
> <image002.jpg>
>  
> From: Steve Swinsburg [mailto:steve.swinsburg at gmail.com] 
> Sent: Friday, November 22, 2013 5:51 AM
> To: Wilson, Kimberly
> Cc: sakai-dev
> Subject: Re: [Building Sakai] Sakai CLE 2.9.3: gatewaySiteListDisplayCount not working
>  
> Hi Kim
> 
> What are you trying to achieve here? That property is for something else (the number of gateway sites) but it sounds like you want to limit the number of site tabs once a user is logged in?
> 
> Cheers
> Steve
> 
> sent from mobile device
> 
> On 22/11/2013 8:17 AM, "Wilson, Kimberly" <wilsonk at mail.amc.edu> wrote:
> We are implementing a neo skin in Sakai CLE 2.9.3
>  
> We have discovered the gatewaySiteListDisplayCount in sakai.properties is not working.
>  
> We want to limit our users from adding too many site tabs
>  
> I have searched through the Jira and Confluence sites and the closest issue I found is this, but it appears out of date.
>  
> Does anyone know if there is a fix or patch available to make this work?
>  
> Sakai Workgroup problems: gatewaySiteListDisplayCount & site title display
> https://jira.sakaiproject.org/browse/SAK-10938
>  
> and maybe this is relevant: 
>  
> Sakai default config is missing a huge number of config options
> https://jira.sakaiproject.org/browse/SAK-21124
>  
> I also found these issue that other users apparently submitted to this email list in July:
>  
> http://sakai-project-mail-list-archives.1343168.n2.nabble.com/gatewaySiteListDisplayCount-Problem-td7590557.html
>  
> http://sakai-project-mail-list-archives.1343168.n2.nabble.com/Building-Sakai-My-Worksite-translation-location-td7591052.html
>  
> Thanks!
>  
> Kim Wilson, MSCIS | Systems Analyst ? IS Academic Systems | Albany Medical Center | 518-264-1055
>  
> <image004.jpg>
>  
> ----------------------------------------- CONFIDENTIALITY NOTICE: This email and any attachments may contain confidential information that is protected by law and is for the sole use of the individuals or entities to which it is addressed. If you are not the intended recipient, please notify the sender by replying to this email and destroying all copies of the communication and attachments. Further use, disclosure, copying, distribution of, or reliance upon the contents of this email and attachments is strictly prohibited. To contact Albany Medical Center, or for a copy of our privacy practices, please visit us on the Internet at www.amc.edu.
> 
> _______________________________________________
> 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"
> ----------------------------------------- CONFIDENTIALITY NOTICE: This email and any attachments may contain confidential information that is protected by law and is for the sole use of the individuals or entities to which it is addressed. If you are not the intended recipient, please notify the sender by replying to this email and destroying all copies of the communication and attachments. Further use, disclosure, copying, distribution of, or reliance upon the contents of this email and attachments is strictly prohibited. To contact Albany Medical Center, or for a copy of our privacy practices, please visit us on the Internet at www.amc.edu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20131123/8ba47e73/attachment-0001.html 

------------------------------

Message: 2
Date: Sat, 23 Nov 2013 02:18:52 +0000
From: "Qu, Yuanhua" <yq12 at txstate.edu>
Subject: Re: [Building Sakai] Lessons Builder import
To: Charles Hedrick <hedrick at rutgers.edu>
Cc: "sakai-dev at collab.sakaiproject.org"
        <sakai-dev at collab.sakaiproject.org>
Message-ID: <CEB56248.14EBB%yq12 at txstate.edu>
Content-Type: text/plain; charset="windows-1252"

I applied the patch in LSNBLDR-315.  It does fix the embedded youtube  to be exported and imported.   Thanks a lot.

Thanks for your explanation and we now understood CC limitation at this time and its initial purpose,  we will use "Import from site"  to import lessons from other sites within sakai.  But to avoid confusion to our users, we decided to hide the "Import CC" and "Export CC" at this time.

I'm sure extending  the CC code to support all of the Sakai functionality will be a big plus, sounds lots of work though.  Appreciate if you could just put this in your consideration,  and hopefully there will be time in the future to get it possible.

Our supports and instructional designers like this tool a lot and we will make this tool available for our users together with our 2.9.3 upgrade in Jan. 2014.

Thanks.

-Qu


From: Charles Hedrick <hedrick at rutgers.edu<mailto:hedrick at rutgers.edu>>
Date: Tuesday, November 19, 2013 3:01 PM
To: "Qu, Yuanhua" <yq12 at txstate.edu<mailto:yq12 at txstate.edu>>
Cc: "sakai-dev at collab.sakaiproject.org<mailto:sakai-dev at collab.sakaiproject.org>" <sakai-dev at collab.sakaiproject.org<mailto:sakai-dev at collab.sakaiproject.org>>
Subject: Re: [Building Sakai] Lessons Builder import

I?m now showing the URL as the name, except in a few cases where I can?t tell the name. Then it shows ?embedded video.? There was also a bug such that links such as Youtube URLs exported as a file with the text of the link, rather than actual links. That?s fixed. These fixes have been retrofitted to 1.4, and are present in the 1.4.x source (though not well tested). This is jira LSNBLDR-315.

But that won?t solve the problem of having embedded videos such as Youtube turn into links.There?s a basic problem here. The CC format does not define a way to put content inline on a page. The basic CC model is a file system, much like resources. What we think of as a Lessons page is simply a folder listing in the CC model.

The priority in developing CC export and import has been to support the standard as well as possible. I?ve tested with several other CMSs, to make sure we can exchange content. It wasn?t a goal, at least initially, to transfer content between two Sakai systems. For that we have a Sakai archive format.

If this is something a lot of people want to do, I?m willing to consider it. But extending the CC code to support all of the Sakai functionality is at least as large a job as implementing CC in the first place. So it?s not likely to come quickly. Particularly since the IMS folks have released a new version of CC, which will require changes to both export and import. Doing that would be my next priority for CC.

On Nov 13, 2013, at 3:17 PM, Qu, Yuanhua <yq12 at txstate.edu<mailto:yq12 at txstate.edu>> wrote:

I also tested trunk version of lessons against sakai trunk, same issue for import.

-Qu

From: <Qu>, Yuanhua <yq12 at txstate.edu<mailto:yq12 at txstate.edu>>
Date: Wednesday, November 13, 2013 2:15 PM
To: "sakai-dev at collab.sakaiproject.org<mailto:sakai-dev at collab.sakaiproject.org>" <sakai-dev at collab.sakaiproject.org<mailto:sakai-dev at collab.sakaiproject.org>>
Subject: [Building Sakai] Lessons Builder import

We are testing Lessons Builder 1.4.3 for our local sakai upgrade from 2.8 to 2.9.3.  For import feature, we found that in the imported lessons page, the original text all becomes link called "Instructions".  If there was youtube video, it will be displayed in the imported lesson page as an item titled with that youtube url.

I have created a Jira since I didn't find same issue reported.  https://jira.sakaiproject.org/browse/LSNBLDR-313

Have anyone seen this too? Wondering if there is any fix could share?

Thanks.

-Qu
_______________________________________________
sakai-dev mailing list
sakai-dev at collab.sakaiproject.org<mailto: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<mailto:sakai-dev-unsubscribe at collab.sakaiproject.org> with a subject of "unsubscribe"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20131123/69dd9f71/attachment-0001.html 

------------------------------

_______________________________________________
sakai-dev mailing list
sakai-dev at collab.sakaiproject.org
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev


End of sakai-dev Digest, Vol 57, Issue 21
*****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20131125/126f4415/attachment.html 


More information about the sakai-dev mailing list