Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-10779

Update Mybatis to latest version

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • L3 - Default
    • 7.13.0, 7.13.0-alpha1
    • 7.11.0
    • engine
    • None

    Description

      7.11.0 uses MyBatis v3.4.4
      in JDK 9+ this generates Illigal Reflective access warnings in the Logs.

      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.apache.ibatis.reflection.Reflector (file:/Users/pearces/.m2/repository/org/mybatis/mybatis/3.4.4/mybatis-3.4.4.jar) to method java.lang.Object.finalize()
      WARNING: Please consider reporting this to the maintainers of org.apache.ibatis.reflection.Reflector
      WARNING: All illegal access operations will be denied in a future release
      

      This was fixed in the 3.5.0 release - https://github.com/mybatis/mybatis-3/issues/1156
      However when manually excluding 3.4.4 and using the latest 3.5.2

      I not longer get the error at startup, but during use I get a slightly different error

      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.apache.ibatis.ognl.OgnlRuntime (file:/Users/pearces/.m2/repository/org/mybatis/mybatis/3.5.2/mybatis-3.5.2.jar) to method java.util.Arrays$ArrayList.size()
      WARNING: Please consider reporting this to the maintainers of org.apache.ibatis.ognl.OgnlRuntime
      WARNING: All illegal access operations will be denied in a future release
      

      this one is mentioned in the github issue https://github.com/mybatis/mybatis-3/issues/1586
      and suggest you remove the parenthesis for the size() and other commands

      I could reproduce the same error by writing someMapParam.keys.size(), someMapParam.keySet.size() or someMapParam.keySet().size() in an OGNL expression [1].
      To avoid the warning, you just need to remove the parentheses after size (e.g. someMapParam.keys.size).

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                nikola.koevski Nikola Koevski
                Stexxen Steven
                Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce