Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-1328

threadlocal clearing issue with Crypto

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.3.0.patch
    • 2.3.1, 2.3.0.patch
    • API
    • None

    Description

      From: Shilen Patel
      Sent: Friday, June 24, 2016 8:55 AM
      To: Hyzer, Chris
      Subject: cant clear Crypto threadlocal: edu.internet2.middleware.morphString.Crypto

      Hi Chris,

      In https://github.com/Internet2/grouper/blob/9ddff7d047b5e4955bffbeba27e0e397e41062fe/grouper/src/grouper/edu/internet2/middleware/grouper/util/GrouperThreadLocalState.java

      Line 118:

      ThreadLocal threadLocalCrypto = (ThreadLocal)GrouperUtil.callMethod(theClass, "threadLocalCrypto");

      "threadLocalCrypto" isn't a method, right?

      2016-06-24 08:52:06,744: [main] ERROR GrouperThreadLocalState.removeCurrentThreadLocals(124) - - cant clear Crypto threadlocal: edu.internet2.middleware.grouperClientExt.edu.internet2.middleware.morphString.Crypto
      java.lang.RuntimeException: Problem calling method threadLocalCrypto on java.lang.Object,
      Problem calling method threadLocalCrypto on java.lang.Object,
      Problem calling method threadLocalCrypto on edu.internet2.middleware.grouperClientExt.edu.internet2.middleware.morphString.Crypto
      at edu.internet2.middleware.grouper.util.GrouperUtil.callMethod(GrouperUtil.java:4064)
      at edu.internet2.middleware.grouper.util.GrouperUtil.callMethod(GrouperUtil.java:4058)
      at edu.internet2.middleware.grouper.util.GrouperUtil.callMethod(GrouperUtil.java:3966)
      at edu.internet2.middleware.grouper.util.GrouperUtil.callMethod(GrouperUtil.java:3942)
      at edu.internet2.middleware.grouper.util.GrouperUtil.callMethod(GrouperUtil.java:4200)
      at edu.internet2.middleware.grouper.util.GrouperThreadLocalState.removeCurrentThreadLocals(GrouperThreadLocalState.java:118)
      at edu.internet2.middleware.grouper.util.GrouperThreadLocalState.main(GrouperThreadLocalState.java:133)
      Caused by: java.lang.NoSuchMethodException: java.lang.Object.threadLocalCrypto()
      at java.lang.Class.getDeclaredMethod(Class.java:2004)
      at edu.internet2.middleware.grouper.util.GrouperUtil.callMethod(GrouperUtil.java:4043)
      ... 6 more
      2016-06-24 08:52:06,748: [main] ERROR GrouperThreadLocalState.removeCurrentThreadLocals(124) - - cant clear Crypto threadlocal: edu.internet2.middleware.morphString.Crypto
      java.lang.RuntimeException: Problem calling method threadLocalCrypto on java.lang.Object,
      Problem calling method threadLocalCrypto on java.lang.Object,
      Problem calling method threadLocalCrypto on edu.internet2.middleware.morphString.Crypto
      at edu.internet2.middleware.grouper.util.GrouperUtil.callMethod(GrouperUtil.java:4064)
      at edu.internet2.middleware.grouper.util.GrouperUtil.callMethod(GrouperUtil.java:4058)
      at edu.internet2.middleware.grouper.util.GrouperUtil.callMethod(GrouperUtil.java:3966)
      at edu.internet2.middleware.grouper.util.GrouperUtil.callMethod(GrouperUtil.java:3942)
      at edu.internet2.middleware.grouper.util.GrouperUtil.callMethod(GrouperUtil.java:4200)
      at edu.internet2.middleware.grouper.util.GrouperThreadLocalState.removeCurrentThreadLocals(GrouperThreadLocalState.java:118)
      at edu.internet2.middleware.grouper.util.GrouperThreadLocalState.main(GrouperThreadLocalState.java:133)
      Caused by: java.lang.NoSuchMethodException: java.lang.Object.threadLocalCrypto()
      at java.lang.Class.getDeclaredMethod(Class.java:2004)
      at edu.internet2.middleware.grouper.util.GrouperUtil.callMethod(GrouperUtil.java:4043)
      ... 6 more

      Thanks!

      • Shilen

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Smart Checklist