grouper-users - [grouper-users] Problem with getMembershipsLite
Subject: Grouper Users - Open Discussion List
List archive
- From: "Per-Olov Gustafsson" <>
- To: <>
- Subject: [grouper-users] Problem with getMembershipsLite
- Date: Tue, 19 Jun 2012 09:29:58 +0200
Hi. Have a problem when using getMembershipsLite() to obtain memberships. The subject exists in an LDAP source but does not have any memberships yet. I can fetch the subject with getSubjectsLite(). Oddly, it seems that searching for the subject in the Grouper admin GUI and looking at the details seems to solve the problem for that subject. But just searching is not sufficient, it requires that you look at the details. We use 2.1.0 at the server and client side. Below the SoapUI request and response. <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://soap.ws.grouper.middleware.internet2.edu/xsd"> <soap:Header/> <soap:Body> <xsd:getMembershipsLite> <!--Optional:--> <xsd:clientVersion>v2_1_0</xsd:clientVersion> <!--Optional:--> <xsd:groupName></xsd:groupName> <!--Optional:--> <xsd:groupUuid></xsd:groupUuid> <!--Optional:--> <xsd:subjectId></xsd:subjectId> <!--Optional:--> <xsd:sourceId>akka</xsd:sourceId> <!--Optional:--> <xsd:subjectIdentifier>EXT10092</xsd:subjectIdentifier> <!--Optional:--> <xsd:wsMemberFilter>All</xsd:wsMemberFilter> <!--Optional:--> <xsd:includeSubjectDetail>F</xsd:includeSubjectDetail> <!--Optional:--> <xsd:actAsSubjectId></xsd:actAsSubjectId> <!--Optional:--> <xsd:actAsSubjectSourceId></xsd:actAsSubjectSourceId> <!--Optional:--> <xsd:actAsSubjectIdentifier></xsd:actAsSubjectIdentifier> <!--Optional:--> <xsd:fieldName></xsd:fieldName> <!--Optional:--> <xsd:subjectAttributeNames></xsd:subjectAttributeNames> <!--Optional:--> <xsd:includeGroupDetail>T</xsd:includeGroupDetail> <!--Optional:--> <xsd:paramName0></xsd:paramName0> <!--Optional:--> <xsd:paramValue0></xsd:paramValue0> <!--Optional:--> <xsd:paramName1></xsd:paramName1> <!--Optional:--> <xsd:paramValue1></xsd:paramValue1> <!--Optional:--> <xsd:sourceIds></xsd:sourceIds> <!--Optional:--> <xsd:scope></xsd:scope> <!--Optional:--> <xsd:stemName>akka</xsd:stemName> <!--Optional:--> <xsd:stemUuid></xsd:stemUuid> <!--Optional:--> <xsd:stemScope>ALL_IN_SUBTREE</xsd:stemScope> <!--Optional:--> <xsd:enabled></xsd:enabled> <!--Optional:--> <xsd:membershipIds></xsd:membershipIds> </xsd:getMembershipsLite> </soap:Body> </soap:Envelope> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"> <soapenv:Body> <ns:getMembershipsLiteResponse xmlns:ns="http://soap.ws.grouper.middleware.internet2.edu/xsd"> <ns:return xsi:type="ns:WsGetMembershipsResults" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ns:responseMetadata xsi:type="ns:WsResponseMeta"> <ns:millis xsi:nil="true"/> <ns:resultWarnings xsi:nil="true"/> <ns:serverVersion>2.1.0</ns:serverVersion> </ns:responseMetadata> <ns:resultMetadata xsi:type="ns:WsResultMeta"> <ns:params xsi:nil="true"/> <ns:resultCode>EXCEPTION</ns:resultCode> <ns:resultCode2 xsi:nil="true"/> <ns:resultMessage>clientVersion: 2.1.0, wsGroupLookups: null, wsMemberFilter: All, includeSubjectDetail: false, actAsSubject: null, fieldName: null, subjectAttributeNames: null , paramNames: , params: null , wsSubjectLookups: Array size: 1: [0]: WsSubjectLookup[subjectId=,subjectIdentifier=EXT10092,subjectSourceId=akka] , sourceIds: null , scope: , wsStemLookup: WsStemLookup[uuid=,stemName=akka], stemScope: ALL_IN_SUBTREE, enabled: , membershipIds: null, java.lang.RuntimeException: Too many results: 132728 at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MembershipDAO.findAllByGroupOwnerOptions(Hib3MembershipDAO.java:661) at edu.internet2.middleware.grouper.MembershipFinder.findMemberships(MembershipFinder.java:385) at edu.internet2.middleware.grouper.MembershipFinder.findMemberships(MembershipFinder.java:362) at edu.internet2.middleware.grouper.ws.GrouperServiceLogic.getMemberships(GrouperServiceLogic.java:1665) at edu.internet2.middleware.grouper.ws.GrouperServiceLogic.getMembershipsLite(GrouperServiceLogic.java:1776) at edu.internet2.middleware.grouper.ws.coresoap.GrouperService.getMembershipsLite(GrouperService.java:2471) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at edu.internet2.middleware.grouper.util.GrouperUtil.callMethodWithMoreParams(GrouperUtil.java:11150) at edu.internet2.middleware.grouper.ws.soap.GrouperService.getMembershipsLite(GrouperService.java:1533) at sun.reflect.GeneratedMethodAccessor1070.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at edu.internet2.middleware.grouper.ws.GrouperServiceAxisServlet.service(GrouperServiceAxisServlet.java:60) 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.ws.GrouperServiceJ2ee.doFilter(GrouperServiceJ2ee.java:638) 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:563) 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:291) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:662)</ns:resultMessage> <ns:success>F</ns:success> </ns:resultMetadata> <ns:subjectAttributeNames xsi:nil="true"/> <ns:wsGroups xsi:nil="true"/> <ns:wsMemberships xsi:nil="true"/> <ns:wsSubjects xsi:nil="true"/> </ns:return> </ns:getMembershipsLiteResponse> </soapenv:Body> </soapenv:Envelope> Regards /Per-Olov Per-Olov Gustafsson IT-avdelningen Uppsala universitet Box 887 SE-751 08 Uppsala 018-471 78 22 0701-67 91 50 |
- [grouper-users] Problem with getMembershipsLite, Per-Olov Gustafsson, 06/19/2012
Archive powered by MHonArc 2.6.16.