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

Site Info > Manage Tools throws ClassCastException on Oracle with LTI tools

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 20.0
    • Fix Version/s: 20.0
    • Component/s: Site Info
    • Labels:
      None
    • Test Plan:
      Hide

      On a system running Oracle with LTI tools installed, visit Site Info > Manage Tools. Confirm the page loads.

      Show
      On a system running Oracle with LTI tools installed, visit Site Info > Manage Tools. Confirm the page loads.

      Description

      Our dev evironment (on Oracle) is throwing the following when going to the Manage Tools page:

      org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: java.lang.reflect.InvocationTargetException
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:856)
      caused by: org.sakaiproject.tool.api.ToolException: java.lang.reflect.InvocationTargetException
      at org.sakaiproject.site.tool.SiteAction.toolModeDispatch(SiteAction.java:14963)
      caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      caused by: java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.Integer
      at org.sakaiproject.site.tool.SiteAction.getLtiToolGroup(SiteAction.java:6605)
      at org.sakaiproject.site.tool.SiteAction.getTools(SiteAction.java:6290)
      at org.sakaiproject.site.tool.SiteAction.buildContextForTemplate(SiteAction.java:1774)
      at org.sakaiproject.site.tool.SiteAction.buildMainPanelContext(SiteAction.java:1373)
      at org.sakaiproject.site.tool.SiteAction.buildShortcutPanelContext(SiteAction.java:1298)

      This makes it impossible to use Manage Tools. It appears to be because Oracle will return a BigDecimal where MySQL returns an Integer.

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                plukasew Paul Lukasewych
                Reporter:
                plukasew Paul Lukasewych
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration