Hello,
I use grouper in version 2.3.
I want move an existing group from
UDL:ACT:PROJ:test_ss_dossier:GT-REFIDENTNUM from stem
UDL:ACT:PROJ:test_ss_dossier to another stem UDL:ACT:PROJ,
To do this, i use the group save webservice :
POST /grouper-ws/servicesRest/v2_2_000/groups
{
"WsRestGroupSaveRequest":
{
"wsGroupToSaves":
[
{
"wsGroup":
{
"description":"GT-REFIDENTNUM",
"displayExtension":"GT-REFIDENTNUM",
"extension":"extension",
"name":"UDL:ACT:PROJ"
},
"wsGroupLookup":
{
"groupName":"UDL:ACT:PROJ:test_ss_dossier:GT-REFIDENTNUM"
}
}
]
}
}
but i get an error 500 with this response :
{
"WsGroupSaveResults": {
"responseMetadata": {
"millis": "238",
"serverVersion": "2.3.0"
},
"resultMetadata": {
"resultCode": "PROBLEM_SAVING_GROUPS",
"resultMessage": "There were 0 successes and 1
failures of saving groups.",
"success": "F"
},
"results": [
{
"resultMetadata": {
"resultCode": "EXCEPTION",
"resultMessage":
"java.lang.RuntimeException:
edu.internet2.middleware.grouper.exception.GroupModifyException:
Can't move a group. Existing parentStem:
'UDL:ACT:PROJ:test_ss_dossier', new stem: 'UDL:ACT',\nProblem in
HibernateSession: HibernateSession (9a5e2ab): new, notReadonly,
READ_WRITE_NEW, notActiveTransaction, session (69c44d7f)\n\tat
edu.internet2.middleware.grouper.ws.coresoap.WsGroupToSave.save(WsGroupToSave.java:417)\n\tat
edu.internet2.middleware.grouper.ws.GrouperServiceLogic$4$1.callback(GrouperServiceLogic.java:2439)\n\tat
edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:700)\n\tat
edu.internet2.middleware.grouper.ws.GrouperServiceLogic$4.callback(GrouperServiceLogic.java:2375)\n\tat
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3TransactionDAO$1.callback(Hib3TransactionDAO.java:66)\n\tat
edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:700)\n\tat
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3TransactionDAO.transactionCallback(Hib3TransactionDAO.java:56)\n\tat
edu.internet2.middleware.grouper.hibernate.GrouperTransaction.callbackGrouperTransaction(GrouperTransaction.java:87)\n\tat
edu.internet2.middleware.grouper.ws.GrouperServiceLogic.groupSave(GrouperServiceLogic.java:2350)\n\tat
edu.internet2.middleware.grouper.ws.coresoap.GrouperService.groupSave(GrouperService.java:1045)\n\tat
edu.internet2.middleware.grouper.ws.rest.GrouperServiceRest.groupSave(GrouperServiceRest.java:1197)\n\tat
edu.internet2.middleware.grouper.ws.rest.method.GrouperWsRestPut$1.service(GrouperWsRestPut.java:91)\n\tat
edu.internet2.middleware.grouper.ws.rest.method.GrouperRestHttpMethod$3.service(GrouperRestHttpMethod.java:104)\n\tat
edu.internet2.middleware.grouper.ws.rest.GrouperRestServlet.service(GrouperRestServlet.java:199)\n\tat
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)\n\tat
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)\n\tat
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\n\tat
edu.internet2.middleware.grouper.ws.GrouperServiceJ2ee.doFilter(GrouperServiceJ2ee.java:670)\n\tat
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\n\tat
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\n\tat
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)\n\tat
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)\n\tat
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:612)\n\tat
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)\n\tat
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)\n\tat
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)\n\tat
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)\n\tat
org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:190)\n\tat
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)\n\tat
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)\n\tat
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\n\tat
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n\tat
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n\tat
java.lang.Thread.run(Thread.java:745)\nCaused by:
edu.internet2.middleware.grouper.exception.GroupModifyException:
Can't move a group. Existing parentStem:
'UDL:ACT:PROJ:test_ss_dossier', new stem: 'UDL:ACT'\n\tat
edu.internet2.middleware.grouper.GroupSave$1$1.callback(GroupSave.java:494)\n\tat
edu.internet2.middleware.grouper.GrouperSession.callbackGrouperSession(GrouperSession.java:974)\n\tat
edu.internet2.middleware.grouper.GroupSave$1.callback(GroupSave.java:415)\n\tat
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3TransactionDAO$1.callback(Hib3TransactionDAO.java:66)\n\tat
edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:700)\n\tat
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3TransactionDAO.transactionCallback(Hib3TransactionDAO.java:56)\n\tat
edu.internet2.middleware.grouper.hibernate.GrouperTransaction.callbackGrouperTransaction(GrouperTransaction.java:87)\n\tat
edu.internet2.middleware.grouper.hibernate.GrouperTransaction.callbackGrouperTransaction(GrouperTransaction.java:106)\n\tat
edu.internet2.middleware.grouper.GroupSave.save(GroupSave.java:406)\n\tat
edu.internet2.middleware.grouper.ws.coresoap.WsGroupToSave.save(WsGroupToSave.java:202)\n\t...
33 more",
"success": "F"
},
"wsGroup": {
"extension": "GT-REFIDENTNUM",
"name":
"UDL:ACT:PROJ:test_ss_dossier:GT-REFIDENTNUM"
}
}
]
}
}
Can you help me in order to resolve the error?
Thanks!
Mathieu
--
Mathieu HETRU
Responsable du bureau missions transversales
Université de Lille - Campus Cité Scientifique
Direction des Systèmes d'Information
Service Intégration / Exploitation
Cellule missions transversales
Bureau 47 - Bâtiment A3
Domaine universitaire de la Cité Scientifique
Avenue Carl Von Limé
BP 90179 59653 Villeneuve d'Ascq
Tél. :+33 (0)3 62 26 83 81 (numéro interne : 68381)
|
www.univ-lille.fr
|