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

Cannot delete some assignments for some reason

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 19.0
    • Fix Version/s: 12.0, 19.0
    • Component/s: Assignments
    • Labels:
      None
    • 12 status:
      Resolved
    • Test Plan:
      Hide

      I don't 100% know if this test plan is correct

      • Create 2 assignments.
      • Click the remove checkbox next to both
      • Click Remove Selected

      Expected : Assignments delete confirmation comes up and assignments can be deleted

      Show
      I don't 100% know if this test plan is correct Create 2 assignments. Click the remove checkbox next to both Click Remove Selected Expected : Assignments delete confirmation comes up and assignments can be deleted

      Description

      It looks like with more than 1 assignment they cannot be deleted, you get a stack trace.

      Here's what I did locally.

      • Create 2 assignments.
      • Click the remove checkbox next to both
      • Click Remove Selected

      Most of the time I'd get a stack trace. Sometimes clicking on one assignment to delete it got it. I don't see what the difference is between these assignments. I'm not sure 100% what's causing this. When I revert the commit on SAK-33566 it works fine.

      Sometimes I see this stack

      org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: java.lang.reflect.InvocationTargetException
          at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:857)
      caused by: org.sakaiproject.tool.api.ToolException: java.lang.reflect.InvocationTargetException
          at org.sakaiproject.cheftool.ToolServlet.doGet(ToolServlet.java:234)
      caused by: java.lang.reflect.InvocationTargetException
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      caused by: java.lang.NullPointerException
          at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:716)
          at org.hibernate.type.ManyToOneType.assemble(ManyToOneType.java:282)
          at org.hibernate.collection.internal.PersistentSet.initializeFromCache(PersistentSet.java:145)
          at org.hibernate.cache.spi.entry.CollectionCacheEntry.assemble(CollectionCacheEntry.java:75)
          at org.hibernate.event.internal.DefaultInitializeCollectionEventListener.initializeCollectionFromCache(DefaultInitializeCollectionEventListener.java:160)
          at org.hibernate.event.internal.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:76)
          at org.hibernate.internal.SessionImpl.initializeCollection(SessionImpl.java:1933)
          at org.hibernate.collection.internal.AbstractPersistentCollection$4.doWork(AbstractPersistentCollection.java:559)
          at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:261)
          at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:555)
          at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:143)
          at org.hibernate.collection.internal.PersistentSet.iterator(PersistentSet.java:180)
          at org.sakaiproject.assignment.tool.AssignmentAction.build_instructor_delete_assignment_context(AssignmentAction.java:3030)
          at org.sakaiproject.assignment.tool.AssignmentAction.buildMainPanelContext(AssignmentAction.java:1195)
      

      Othertimes this stack

      org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: java.lang.reflect.InvocationTargetException
          at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:857)
      caused by: org.sakaiproject.tool.api.ToolException: java.lang.reflect.InvocationTargetException
          at org.sakaiproject.cheftool.ToolServlet.doGet(ToolServlet.java:234)
      caused by: java.lang.reflect.InvocationTargetException
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      caused by: java.lang.NullPointerException
          at org.hibernate.event.internal.DefaultInitializeCollectionEventListener.initializeCollectionFromCache(DefaultInitializeCollectionEventListener.java:161)
          at org.hibernate.event.internal.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:76)
          at org.hibernate.internal.SessionImpl.initializeCollection(SessionImpl.java:1933)
          at org.hibernate.collection.internal.AbstractPersistentCollection$4.doWork(AbstractPersistentCollection.java:559)
          at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:261)
          at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:555)
          at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:143)
          at org.hibernate.collection.internal.PersistentSet.iterator(PersistentSet.java:180)
          at org.sakaiproject.assignment.tool.AssignmentAction.build_instructor_delete_assignment_context(AssignmentAction.java:3030)
          at org.sakaiproject.assignment.tool.AssignmentAction.buildMainPanelContext(AssignmentAction.java:1195)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ern Earle R Nietzel
                  Reporter:
                  jonespm Matthew Jones
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code