Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-37066

No positional parameters in query throws IllegalArgumentException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 12.0
    • Fix Version/s: 12.0
    • Labels:
      None
    • Previous Issue Keys:
      SAM-3188

      Description

      For the master branch on the nightly2 server, clicking on a link to a quiz in Lessons throws an IllegalArgumentException. A partial stack trace is below, and the screenshot displays the exception a user would see after clicking the link to the quiz.

      I've filed this bug with SAM, though it might instead belong to LSNBLDR.

      To reproduce this bug:

      1. Create and publish a quiz in T&Q.
      2. In a Lessons page, add the quiz to the page.
      3. In Lessons click on the link to the quiz.

      Stack trace:

      java.lang.IllegalArgumentException: No positional parameters in query: select p from PublishedAssessmentData p, PublishedMetaData m where p=m.assessment and m.label = :label and m.entry = :entry
      org.hibernate.internal.AbstractQueryImpl.setParameter(AbstractQueryImpl.java:442)
      org.hibernate.internal.AbstractQueryImpl.setString(AbstractQueryImpl.java:567)
      org.sakaiproject.tool.assessment.facade.PublishedAssessmentFacadeQueries.lambda$getPublishedAssessmentIdByMetaLabel$13(PublishedAssessmentFacadeQueries.java:1537)
      org.springframework.orm.hibernate4.HibernateTemplate.doExecute(HibernateTemplate.java:341)
      org.springframework.orm.hibernate4.HibernateTemplate.execute(HibernateTemplate.java:296)
      org.sakaiproject.tool.assessment.facade.PublishedAssessmentFacadeQueries.getPublishedAssessmentIdByMetaLabel(PublishedAssessmentFacadeQueries.java:1539)
      org.sakaiproject.tool.assessment.facade.PublishedAssessmentFacadeQueries.getPublishedAssessmentIdByAlias(PublishedAssessmentFacadeQueries.java:1530)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      java.lang.reflect.Method.invoke(Method.java:498)
      org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
      org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
      org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
      org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
      org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
      com.sun.proxy.$Proxy121.getPublishedAssessmentIdByAlias(Unknown Source)
      org.sakaiproject.tool.assessment.services.assessment.PublishedAssessmentService.getPublishedAssessmentIdByAlias(PublishedAssessmentService.java:353)
      org.sakaiproject.tool.assessment.ui.servlet.delivery.LoginServlet.doPost(LoginServlet.java:132)
      org.sakaiproject.tool.assessment.ui.servlet.delivery.LoginServlet.doGet(LoginServlet.java:87)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:460)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ncaidin Neal Caidin
                  Reporter:
                  hornersa Sean Horner
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code