grouper-dev - Re: [grouper-dev] Exception in Grouper-UI clicking "Manage Groups"
Subject: Grouper Developers Forum
List archive
- From: "GW Brown, Information Systems and Computing" <>
- To: Petra Schmitz <>,
- Subject: Re: [grouper-dev] Exception in Grouper-UI clicking "Manage Groups"
- Date: Tue, 04 Mar 2008 11:55:15 +0000
Hi Petra,
Would you try replacing the following method in GrouperHelper.java:
public static Set getGroupsForPrivileges(GrouperSession s, String[] privs,
int start, int pageSize, StringBuffer resultCount) throws MemberNotFoundException{
Set groupSet = new LinkedHashSet();
Set allSet = new LinkedHashSet();
Member member = MemberFinder.findBySubject(s,s.getSubject());
for (int i = 0; i < privs.length; i++) {
allSet.addAll(getGroupsOrStemsWhereMemberHasPriv(member,privs[i].toLowerCase()));
}
int end = start + pageSize;
if (end > allSet.size())
end = allSet.size();
if (resultCount != null) {
resultCount.setLength(0);
resultCount.append("" + allSet.size());
}
Iterator it = allSet.iterator();
Group group = null;
while(it.hasNext()){
try {
group = (Group) it.next();
groupSet.add(group);
}catch(ClassCastException e) {}
}
return groupSet;
}
I think the issue is that the code only expects groups to be returned, but some Stems are returned also - which isn't that surprising given the getGroupsOrStemsWhereMemberHasPriv method, but I must have changed something elsewhere which has led to a change in behaviour. If you can confirm this is the problem, I'll investigate further.
Gary
--On 04 March 2008 12:38 +0100 Petra Schmitz <> wrote:
Hello,
we are using Grouper 1.2.1 with Apache Tomcat Version 5.5.23 and Java
Version 1.5.0_11.
If we have used the button "Hide stem hierarchy and show your groups
only", we always get the following exception if we try to use the item
"Manage Groups".
javax.servlet.jsp.JspException: ServletException in
'/WEB-INF/jsp/body.jsp': ServletException in '/WEB-INF/jsp/content.jsp':
ServletException in '/WEB-INF/jsp/ManageGroups.jsp': ServletException in
'/WEB-INF/jsp/browseStems.jsp': edu.internet2.middleware.grouper.Stem at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag
.java:921) at
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460) at
org.apache.jsp.WEB_002dINF.jsp.template_jsp._jspx_meth_tiles_005finsert_0
05f2(template_jsp.java:435) at
org.apache.jsp.WEB_002dINF.jsp.template_jsp._jspService(template_jsp.java
:171) at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav
a:328) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat
ionFilterChain.java:269) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte
rChain.java:188) at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatch
er.java:691) at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Application
Dispatcher.java:469) at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispa
tcher.java:403) at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatc
her.java:301) at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java
:1056) at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProce
ssor.java:261) at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(Tile
sRequestProcessor.java:237) at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesR
equestProcessor.java:300) at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:2
31) at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat
ionFilterChain.java:269) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte
rChain.java:188) at
edu.internet2.middleware.grouper.ui.LoginCheckFilter.doFilter(LoginCheckF
ilter.java:168) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat
ionFilterChain.java:215) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte
rChain.java:188) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve
.java:201) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve
.java:174) at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorB
ase.java:433) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
127) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
117) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j
ava:108) at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:15
1) at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:7
03) at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.j
ava:895) at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.
java:685) at java.lang.Thread.run(Thread.java:595)
We can only solve this problem by clearing the cookies for this host.
Any ideas?
Best regards
Petra Schmitz
--
Petra Schmitz
Rechen- und Kommunikationszentrum - RWTH Aachen
Seffenter Weg 23, 52074 Aachen (Germany)
tel: +49 241 80 29243
----------------------
GW Brown, Information Systems and Computing
- Exception in Grouper-UI clicking "Manage Groups", Petra Schmitz, 03/04/2008
- Re: [grouper-dev] Exception in Grouper-UI clicking "Manage Groups", GW Brown, Information Systems and Computing, 03/04/2008
- Re: [grouper-dev] Exception in Grouper-UI clicking "Manage Groups", Petra Schmitz, 03/04/2008
- Re: [grouper-dev] Exception in Grouper-UI clicking "Manage Groups", GW Brown, Information Systems and Computing, 03/04/2008
Archive powered by MHonArc 2.6.16.