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

grouper export to gsh causes problem in attribute assign due to method signature change

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.2.2.patch
    • None
    • API, UI
    • None

    Description

      From: Redman, Chad Eric
      Sent: Wednesday, February 24, 2016 10:15 AM
      To: grouper-users
      Cc: Hyzer, Chris
      Subject: RE: Grouper export to gsh

      I haven’t figured the exact cause yet, but something in API patch 9 breaks the saving of legacy attributes in the Admin UI. The error in the UI is the unfriendly "There was a serious error connecting to the database. If you continue to encounter errors, please contact technical support." The error in the grouper_error.log is "java.lang.NoSuchMethodError: edu.internet2.middleware.grouper.attr.value.AttributeAssignValue.assignValue(Ljava/lang/String." This is technically true (the signature in patch 9 is Object instead of String), and is one of the changes in patch 9. but I don’t see why that would be a problem. I can run the same calls in gsh, simulating the Group.internal_setAttribute call that contains the problematic command, but gsh is fine with calling AttributeAssignValue.assignValue and passing a string.

      This happens with the stock demo 2.2.2 application, and the problem goes away when the files from grouper_v2_2_2_api_patch_9/new are manually removed from the webapp's classes directory. So far, I've tested in on Windows 7 and Java 1.7.0_95.

      Our team is working on catching up our working version, so using the Lite UI to edit attributes is new to us. Is using the Admin UI to edit attributes still supported?

      Thanks,
      Chad

      GROUPER_ERROR log:

      2016-02-24 09:13:31,134: [http-8080-1] ERROR GrouperCapableAction.execute(342) - < GrouperSystem BD78BF75E4606F657917B61C8B003BC4-0008 2a022dd4a3c5404d9d89a7beb8231f50 GrouperSystem g:isa > - edu.internet2.middleware.grouper.internal.dao.GrouperDAOException: Problem in HibernateSession: HibernateSession (6e3fcda2): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (791ba7ba)
      at edu.internet2.middleware.grouper.hibernate.HibernateSession._internal_hibernateSessionCatch(HibernateSession.java:591)
      at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:697)
      at edu.internet2.middleware.grouper.Group.internal_setAttribute(Group.java:4822)
      at edu.internet2.middleware.grouper.Group.setAttribute(Group.java:4789)
      at edu.internet2.middleware.grouper.Group.setAttribute(Group.java:4758)
      at edu.internet2.middleware.grouper.ui.actions.SaveGroupAttributesAction.grouperExecute(SaveGroupAttributesAction.java:169)
      at edu.internet2.middleware.grouper.ui.actions.GrouperCapableAction$1.callback(GrouperCapableAction.java:252)
      at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3TransactionDAO$1.callback(Hib3TransactionDAO.java:66)
      at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:687)
      at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3TransactionDAO.transactionCallback(Hib3TransactionDAO.java:56)
      at edu.internet2.middleware.grouper.hibernate.GrouperTransaction.callbackGrouperTransaction(GrouperTransaction.java:87)
      at edu.internet2.middleware.grouper.hibernate.GrouperTransaction.callbackGrouperTransaction(GrouperTransaction.java:106)
      at edu.internet2.middleware.grouper.ui.actions.GrouperCapableAction.grouperTransactionExecute(GrouperCapableAction.java:246)
      at edu.internet2.middleware.grouper.ui.actions.GrouperCapableAction.execute(GrouperCapableAction.java:323)
      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:439)
      ...

      Caused by: java.lang.NoSuchMethodError: edu.internet2.middleware.grouper.attr.value.AttributeAssignValue.assignValue(Ljava/lang/String;)V
      at edu.internet2.middleware.grouper.Group$14.callback(Group.java:4910)
      at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:687)
      ... 45 more

      2016-02-24 09:13:31,134: [http-8080-1] ERROR NavExceptionHelper.getMessage(107) - < GrouperSystem BD78BF75E4606F657917B61C8B003BC4-0008 2a022dd4a3c5404d9d89a7beb8231f50 GrouperSystem g:isa > - Missing nav key: There was a serious error connecting to the database

      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: