Skip to Content.
Sympa Menu

grouper-users - RE: FIND_BY_STEM_NAME error in 1.4.2

Subject: Grouper Users - Open Discussion List

List archive

RE: FIND_BY_STEM_NAME error in 1.4.2


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Paul Gazda <>, Grouper Users Mailing List <>
  • Subject: RE: FIND_BY_STEM_NAME error in 1.4.2
  • Date: Wed, 17 Jun 2009 00:26:15 -0400
  • Accept-language: en-US
  • Acceptlanguage: en-US

https://bugs.internet2.edu/jira/browse/GRP-294

 

 

I ran the query on my test db and could not reproduce…  what is different about yours?  Is it supposed to return groups?  What kind of groups are they simple, has groups as members, composite?  Is there more info in the logs?

 

If nothing pops to mind, think you can either setup a simple test case and let me know what you do to reproduce

 

Well, looking at the code, I have no idea why there was a null pointer since the result should not ever be null, but I added in a check for it anyways, maybe it will help.  If you want to try the latest in the 1.4 branch (and put the new grouper.jar in your web services project, or rebuild), go for it

 

cvs -d:pserver::/home/cvs/i2mi login

cvs -d:pserver::/home/cvs/i2mi export –r GROUPER_1_4_BRANCH grouper

 

Thanks,

Chris

 

############### no groups ################

C:\grouper>java -jar grouperClient.jar --operation=findGroupsWs --queryFilterType=FIND_BY_STEM_NAME --stemNameScope=ALL_IN_SUBTREE --stemName=test:test3

 

############### no groups viewable #############

C:\ grouper >java -jar grouperClient.jar --operation=findGroupsWs --queryFilterType=FIND_BY_STEM_NAME --stemNameScope=ALL_IN_SUBTREE --stemName=test:test2

 

############### 1 group viewable ################

C:\ grouper >java -jar grouperClient.jar --operation=findGroupsWs --queryFilterType=FIND_BY_STEM_NAME --stemNameScope=ALL_IN_SUBTREE --stemName=test:test2

Index 0: name: test:test2:test, displayName: test:test2:test

 

 

From: Paul Gazda [mailto:]
Sent: Tuesday, June 16, 2009 10:41 AM
To: Grouper Users Mailing List
Subject: [grouper-users] FIND_BY_STEM_NAME error in 1.4.2

 

I am unable to run a query in 1.4.2 that ran successfully in 1.4.1. Below is the query and stack trace.

 

java -jar grouperClient.jar --operation=findGroupsWs --queryFilterType=FIND_BY_STEM_NAME --stemName=ENTERPRISE --stemNameScope=ALL_IN_SUBTREE

Error with grouper client, check the logs: Bad response from web service: resultCode: EXCEPTION, clientVersion: v1_4_002, wsQueryFilter: WsQueryFilter[queryFilterType=FIND_BY_STEM_NAME,stemName=ENTERPRISE,stemNameScope=ALL_IN_SUBTREE]

, includeGroupDetail: false, actAsSubject: null, paramNames:

, params: null, java.lang.NullPointerException

        at edu.internet2.middleware.grouper.filter.GrouperQuery.getGroups(GrouperQuery.java:120)

        at edu.internet2.middleware.grouper.ws.GrouperServiceLogic.findGroups(GrouperServiceLogic.java:663)

        at edu.internet2.middleware.grouper.ws.soap.GrouperService.findGroups(GrouperService.java:199)

        at edu.internet2.middleware.grouper.ws.rest.GrouperServiceRest.findGroups(GrouperServiceRest.java:84)

        at edu.internet2.middleware.grouper.ws.rest.method.GrouperWsRestGet$1.service(GrouperWsRestGet.java:63)

        at edu.internet2.middleware.grouper.ws.rest.method.GrouperRestHttpMethod$1.service(GrouperRestHttpMethod.java:42)

        at edu.internet2.middleware.grouper.ws.rest.GrouperRestServlet.service(GrouperRestServlet.java:169)

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

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

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

        at edu.internet2.middleware.grouper.ws.GrouperServiceJ2ee.doFilter(GrouperServiceJ2ee.java:576)

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

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

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)

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

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

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

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

        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)

        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)

        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)

        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)

        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)

        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

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

 

Paul Gazda

 




Archive powered by MHonArc 2.6.16.

Top of Page