Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Exception when groups have the same name

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Exception when groups have the same name


Chronological Thread 
  • From: Shilen Patel <>
  • To: Gagné Sébastien <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] Exception when groups have the same name
  • Date: Mon, 12 Nov 2012 19:07:43 +0000
  • Accept-language: en-US

Yes, we can have a similar error message for that case.  I'll add a fix and let you know.

Thanks!

-- Shilen

From: Gagné Sébastien <>
Date: Mon, 12 Nov 2012 11:07:53 -0500
To: <>
Subject: [grouper-users] Exception when groups have the same name

Hi,

Testing the Grouper Admin UI, I found that if I try to create a group with the same name as one in the current stem I get a proper error message :

 

But if I try to modify/rename a group to one that has the same name in the same stem, I get an Exception in the logs with the generic system error message (Error was logged and admin was notified, please contact technical support) :

Is it possible to have a more explicit error message in that case ? Like the one we get at creation

 

Thanks

 

In the logs I get the following stack trace :

 

2012-11-12 11:00:49,514: [http-8080-4] ERROR GrouperCapableAction.execute(313) - < gagns E507D2FCC4CA16C34BAB7B8CB84F3C89-0015 a651330cabb04830838d36bc3c904dc5 gagns ldap > - edu.internet2.middleware.grouper.exception.GroupModifyAlreadyExistsException: Group with name test:allo already exists.,

Exception in update: edu.internet2.middleware.grouper.Group, edu.internet2.middleware.grouper.hibernate.ByObject@1b672a0,

Problem in HibernateSession: HibernateSession: isNew: false, isReadonly: false, grouperTransactionType: READ_WRITE_NEW,

Exception in update: edu.internet2.middleware.grouper.Group, ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName: null, tx type: null,

Problem in HibernateSession: HibernateSession: isNew: false, isReadonly: false, grouperTransactionType: READ_WRITE_NEW

        at edu.internet2.middleware.grouper.Group.onPreUpdate(Group.java:5775)

        at edu.internet2.middleware.grouper.hibernate.ByObject.update(ByObject.java:497)

        at edu.internet2.middleware.grouper.hibernate.ByObjectStatic$2.callback(ByObjectStatic.java:211)

        at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:571)

        at edu.internet2.middleware.grouper.hibernate.ByObjectStatic.update(ByObjectStatic.java:196)

        at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupDAO.update(Hib3GroupDAO.java:1348)

        at edu.internet2.middleware.grouper.Group$12.callback(Group.java:4547)

        at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:571)

        at edu.internet2.middleware.grouper.Group.store(Group.java:4460)

        at edu.internet2.middleware.grouper.ui.actions.SaveGroupAction.grouperExecute(SaveGroupAction.java:252)

        at edu.internet2.middleware.grouper.ui.actions.GrouperCapableAction$1.callback(GrouperCapableAction.java:232)

        at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3TransactionDAO$1.callback(Hib3TransactionDAO.java:66)

        at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:571)

        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:229)

        at edu.internet2.middleware.grouper.ui.actions.GrouperCapableAction.execute(GrouperCapableAction.java:294)

        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:439)

        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)

        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at edu.internet2.middleware.grouper.ui.LoginCheckFilter$1.callback(LoginCheckFilter.java:188)

        at edu.internet2.middleware.grouper.GrouperSession.callbackGrouperSession(GrouperSession.java:801)

        at edu.internet2.middleware.grouper.ui.LoginCheckFilter.doFilter(LoginCheckFilter.java:183)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at edu.internet2.middleware.grouper.ui.LoginCheckFilter$1.callback(LoginCheckFilter.java:188)

        at edu.internet2.middleware.grouper.GrouperSession.callbackGrouperSession(GrouperSession.java:801)

        at edu.internet2.middleware.grouper.ui.LoginCheckFilter.doFilter(LoginCheckFilter.java:183)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at edu.yale.its.tp.cas.client.filter.CASFilter.doFilter(CASFilter.java:209)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at uk.ac.bris.is.grouper.ui.PreCASFilter.doFilter(PreCASFilter.java:128)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at edu.internet2.middleware.grouper.ui.ErrorFilter.doFilter(ErrorFilter.java:147)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at edu.internet2.middleware.grouper.ui.GrouperUiFilter.doFilter(GrouperUiFilter.java:846)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.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.java:470)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)

        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

        at java.lang.Thread.run(Thread.java:662)

 

 

 

Sébastien Gagné,     | Analyste en informatique

514-343-6111 x33844  | Université de Montréal,

                     | Pavillon Roger-Gaudry, local X-100-11

 




Archive powered by MHonArc 2.6.16.

Top of Page