Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Can't delete folder

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Can't delete folder


Chronological Thread 
  • From: "Hagimoto, Kumi" <>
  • To: "Hyzer, Chris" <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] Can't delete folder
  • Date: Mon, 23 Jan 2017 20:19:56 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:xeN59RWhohnKNSkYn5fKPdb/xyrV8LGtZVwlr6E/grcLSJyIuqrYbRKOt8tkgFKBZ4jH8fUM07OQ6PG8HzBRqs/a7TgrS99lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUhrwOhBoKevrB4Xck9q41/yo+53Ufg5EmCexbal8IRiyogjdrMYbjI9tJqosxBbEomZDdvhLy29vOV+dhQv36N2q/J5k/SRQuvYh+NBFXK7nYak2TqFWASo/PWwt68LlqRfMTQ2U5nsBSWoWiQZHAxLE7B7hQJj8tDbxu/dn1ymbOc32Sq00WSin4qx2RhLklDsLOjgk+2zRl8d+jr9UoAi5qhJ/3YDafZ2VOvR9cKPTf9waRHZOUclKWiNbHo+8apECA/YdMetaqYT2ulsArQG5BQmpHO7jxD1GiWX53a071uQhFh3G3As4E9kTtXrUsdD1NKYcXeuoy6TGyCjDb/ZX2Tvn6obHaB8hofCJXbJ3bcrRzlIiFwTfjlqOpozlODWV1v8Rs2eB8+pvS/ijhHA6pAFsuzWiwNonhIrRho8N1FzL7zl1zJswKNGlVUJ3fNupEJVfui2GK4d7R80iTH9ntSs1z7ALvJy2cDUExZg/2RLSauCLf5WN7x7+SOmdPTJ1iX1ldb6jmxq/9FWvxvH9W8Wo1VtHrSlIncLRuX0IzRPe69aLReZ480evwjmAyx3f5+RaLk06kafWLYMqzKQqmZoJq0vDGzf7mEXog6+ScUUp4vCm5vjgbLn6uJOQLpJ6hBnjPqg3ncywGvo3PhIJX2iG5eSzz7rj/VD/QLpXlPE2irPZsJfGJcsFuqG5Hw5V0oEl6xqlCDemzcgYnX0ALFJCexKLlZTmO1bLIPzgDPe/hUqjkCtzyvzYJLLtHojBI33enLv8YLpw7kBcxQUvwdxD4p9UBK8OLf38V0L0sdHVDAI1PgKsz+biEtp914ceWWyVAq+eNaPfqVqG5v8qI+mNfoMbuizyK/ck5/7rin85hVgdcLKu3ZsNdn+4EfNmI0OCYXrwmNgBDXkFshAgQ+P3lV2OSSRTaGqqX6Ig+jE7D5qrDYjZRoCqnbyBxDm0HodPamBbEVCDD23od56fVvcIaSKSOdNhkicaWbS7So8h0w2uuxHgy7phMOXU5jMUuYj929do+u2A3S01oHZUHtaQySXFZGFun3hCD2sz16Bus0Fn4laY2u5lm/FeE5pe6+4fASkgMpuJhcxzBNH3XR7GOp+qVVOnCJ3yIiw0T5QRytAPZkFhHP2llB3M2CyxH7YJmvqGCIFiofGU5GT4O8sokyWO76ImlVRzGsY=
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Hi Chris,

Thanks for the steps to check the patch status.  After not getting the same results as you, I realized that I inadvertently undid the patches.  I’ll re-apply them.. I’m sure it’ll work fine then..  Sorry for the troubles!

Thanks,
Kumi

On Jan 21, 2017, at 2:24 PM, Hyzer, Chris <> wrote:

That’s weird.  I can delete a folder in the fully patched demo server.  Can you reproduce it by creating an empty folder and deleting it?  What happens when you do something like this:  (it will make sure you are patched)
 
[mchyzer@i2midev1 hibernate]$ pwd
/opt/tomcats/tomcat_f/webapps/grouper_v2_3/WEB-INF/classes/edu/internet2/middleware/grouper/hibernate
 
[mchyzer@i2midev1 hibernate]$ ls
ByHql.class  ByHqlStatic$1.class  ByHqlStatic$3.class  ByHqlStatic.java      GrouperContext.java  HibUtils.java
ByHql.java   ByHqlStatic$2.class  ByHqlStatic.class    GrouperContext.class  HibUtils.class
 
[mchyzer@i2midev1 hibernate]$ grep executeUpdate ByHql.java | grep void
  public void executeUpdate() throws GrouperDAOException {
[mchyzer@i2midev1 hibernate]$
 
 
 
 
Where is the grouper API installed? [appadmin@i2midev1 patchesAuto]$ java -jar grouperInstaller.jar
Do you want to 'install' a new installation of grouper, 'upgrade' an existing installation,
  'patch' an existing installation, 'admin' utilities, or 'createPatch' for Grouper developers
  (enter: 'install', 'upgrade', 'patch', 'admin', 'createPatch' or blank for the default) [install]: patch
Enter in a Grouper temp directory to download tarballs (note: better if no spaces or special chars) [/opt/grouper/2.3/patchesAuto/tarballs]:
What do you want to patch?  api, ui, ws, pspng, or psp? [API]: ui
Where is the grouper UI installed? /opt/tomcats/tomcat_f/webapps/grouper_v2_3
What do you want to do with patches (install, revert, status, fixIndexFile)? [install]: status
Do you want to fix the patch index file (download all patches and see if they are installed?) (not recommended) (t|f)? [f]:
 
Patch: grouper_v2_3_0_api_patch_39: was applied on: 2016/12/30 23:54:24
 
Patch: grouper_v2_3_0_api_patch_42: was applied on: 2017/01/17 07:19:08
 
-----Original Message-----
From: [] On Behalf Of Kumi Hagimoto
Sent: Friday, January 20, 2017 4:49 PM
To:
Subject: [grouper-users] Can't delete folder
 
Hi,
 
We're getting the following error when trying to delete a folder.  (At the end
of this post.)
Running v 2.3.0 with the latest patch as of yesterday.   The error is very
similar to the one reported here:
 
Thanks,
Kumi
 
 
2017-01-20 13:22:16,994  WARN serviceLogic.UiV2Stem:  Error deleting stem:
'morgan'/'person'/'ldap', Stem[displayName=osu:ref:employ
ee:uhds,name=osu:ref:emp:uhds,uuid=197f128ca5e843628b31543ff1b76ffa,creator=da
5a7162a43444878d8b95d965d11f53]
edu.internet2.middleware.grouper.exception.StemDeleteException: Problem in
HibernateSession: HibernateSession (69709eba): notNew, no
tReadonly, READ_WRITE_NEW, activeTransaction, session (60c4fb6a),
osu:ref:emp:uhds,
Problem in HibernateSession: HibernateSession (18894936): new, notReadonly,
READ_WRITE_NEW, notActiveTransaction, session (60c4fb6a)
        at edu.internet2.middleware.grouper.Stem$1.callback(Stem.java:707)
        at
edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateS
ession(HibernateSession.java:700)
        at edu.internet2.middleware.grouper.Stem.delete(Stem.java:662)
        at
edu.internet2.middleware.grouper.grouperUi.serviceLogic.UiV2Stem.stemDeleteSub
mit(UiV2Stem.java:1642)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j
ava:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at
edu.internet2.middleware.grouper.util.GrouperUtil.invokeMethod(GrouperUtil.jav
a:4112)
        at
edu.internet2.middleware.grouper.util.GrouperUtil.callMethod(GrouperUtil.java:
4063)
        at
edu.internet2.middleware.grouper.j2ee.GrouperUiRestServlet.doGet(GrouperUiRest
Servlet.java:291)
        at
edu.internet2.middleware.grouper.j2ee.GrouperUiRestServlet.doPost(GrouperUiRes
tServlet.java:163)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi
lterChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai
n.java:206)
        at
org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:110)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi
lterChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai
n.java:206)
        at
edu.internet2.middleware.grouper.ui.GrouperUiFilter.doFilter(GrouperUiFilter.j
ava:1023)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi
lterChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai
n.java:206)
        at
edu.yale.its.tp.cas.client.filter.CASFilter.doFilter(CASFilter.java:209)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi
lterChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai
n.java:206)
        at
uk.ac.bris.is.grouper.ui.PreCASFilter.doFilter(PreCASFilter.java:128)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi
lterChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai
n.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java
:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java
:191)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.j
ava:563)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:1
09)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:223)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:311)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:793)
        at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:722)
        at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:9
15)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:
690)
        at java.lang.Thread.run(Thread.java:745)
Caused by: edu.internet2.middleware.grouper.internal.dao.GrouperDAOException:
Problem in HibernateSession: HibernateSession (69709eba): notNew, notReadonly,
READ_WRITE_NEW, activeTransaction, session (60c4fb6a)
        at
edu.internet2.middleware.grouper.hibernate.HibernateSession._internal_hibernat
eSessionCatch(HibernateSession.java:604)
        at
edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateS
ession(HibernateSession.java:710)
        at
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupSetDAO.deleteSelfB
yOwnerStem(Hib3GroupSetDAO.java:172)
        at
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3StemDAO.delete(Hib3Stem
DAO.java:448)
        at edu.internet2.middleware.grouper.Stem$1.callback(Stem.java:693)
        ... 41 more
Caused by: java.lang.NoSuchMethodError:
edu.internet2.middleware.grouper.hibernate.ByHql.executeUpdate()V
        at
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupSetDAO$3.callback(
Hib3GroupSetDAO.java:179)
        at
edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateS
ession(HibernateSession.java:700)
        ... 44 more




Archive powered by MHonArc 2.6.19.

Top of Page