Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Grouper UI troubles

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Grouper UI troubles


Chronological Thread 
  • From: "GW Brown, Information Systems and Computing" <>
  • To: Karsten Huneycutt <>,
  • Subject: Re: [grouper-users] Grouper UI troubles
  • Date: Wed, 26 Oct 2005 18:44:23 +0100

Hi Karsten,

The error is probably occurring in edu.internet2.middleware.grouper.ui.actions.PrepareStemsAction. One possibility is that the UI cannot determine the root node. Have you set default.browse.stem? If you have, the stem defined must exist - the full name is looked up.

I would normally debug the webapp - I start Tomcat with JPDA and connect remotely using Eclipse, and catch NullPointerExceptions in any of the grouper.ui packages.

If your database is HSQLDB, or you have a script which will recreate your database, you can send it to me and I can try and debug it.

You can also try adding debug statements in PrepareStemsAction. I will aim to put better error handling in this class for 0.9

I'll have a look at logging and see what happens for me.

Gary

--On 26 October 2005 11:39 -0400 Karsten Huneycutt
<>
wrote:

Hello --

I'm trying to install the Grouper UI here at Duke on top of an existing
Grouper 0.6 installation, and I'm running into trouble. Here's the
exception I'm getting:

---- BEGIN ----

An error has occurred which prevented the page from displaying. If the
problem persists please contact your system administrator with the
details below:


javax.servlet.jsp.JspException: ServletException in '/WEB-INF/jsp/
content.jsp': ServletException in '/WEB-INF/jsp/MyGroups.jsp':
ServletException in '/WEB-INF/jsp/browseStems.jsp': null 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.template_jsp._jspx_meth_tiles_insert_4
(template_jsp.java:418) at org.apache.jsp.template_jsp._jspService
(template_jsp.java:137) at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:210) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java: 241) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.catalina.core.ApplicationDispatcher.invoke
(ApplicationDispatcher.java:684) at
org.apache.catalina.core.ApplicationDispatcher.doForward
(ApplicationDispatcher.java:432) at
org.apache.catalina.core.ApplicationDispatcher.forward
(ApplicationDispatcher.java:356) at
org.apache.struts.action.RequestProcessor.doForward
(RequestProcessor.java:1056) at
org.apache.struts.tiles.TilesRequestProcessor.doForward
(TilesRequestProcessor.java:270) at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition
(TilesRequestProcessor.java:250) at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig
(TilesRequestProcessor.java:304) at
org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:231) 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:740) at
javax.servlet.http.HttpServlet.service (HttpServlet.java:853) at
org.apache.catalina.core.ApplicationDispatcher.invoke
(ApplicationDispatcher.java:684) at
org.apache.catalina.core.ApplicationDispatcher.doForward
(ApplicationDispatcher.java:432) at
org.apache.catalina.core.ApplicationDispatcher.forward
(ApplicationDispatcher.java:356) at
org.apache.struts.action.RequestProcessor.doForward
(RequestProcessor.java:1056) at
org.apache.struts.tiles.TilesRequestProcessor.doForward
(TilesRequestProcessor.java:270) at
org.apache.struts.action.RequestProcessor.processForwardConfig
(RequestProcessor.java:388) at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig
(TilesRequestProcessor.java:313) at
org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:231) 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:740) at
javax.servlet.http.HttpServlet.service (HttpServlet.java:853) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:247) at
org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:193) at
edu.internet2.middleware.grouper.ui.LoginCheckFilter.doFilter
(LoginCheckFilter.java:190) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:213) at
org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:193) at
org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:256) at
org.apache.catalina.core.StandardPipeline
$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at
org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191) at
org.apache.catalina.core.StandardPipeline
$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at
org.apache.catalina.authenticator.AuthenticatorBase.invoke
(AuthenticatorBase.java:494) at
org.apache.catalina.core.StandardPipeline
$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at
org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
org.apache.catalina.core.StandardContext.invoke
(StandardContext.java:2416) at
org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:180) at
org.apache.catalina.core.StandardPipeline
$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at
org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:171) at
org.apache.catalina.core.StandardPipeline
$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline
$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at
org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:174) at
org.apache.catalina.core.StandardPipeline
$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at
org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java: 223)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at
org.apache.tomcat.util.net.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:565) at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:534)

---- END ----

This exception happens immediately after the LoginFilter returns
(successfully!).

First, of course we wrote Duke-specific Subject and Source
implementations. These work in our other standalone programs, so I'm
pretty sure it's not a problem with that. I've integrated our NetID
web authentication system into the UI via our Tomcat authentication
Valve, and I've verified (using "System.err.println
(request.getRemoteUser())" strategically placed in MyGroups.jsp, along
with setting swallowOutput to false in the context) that the UI code is
getting the appropriate NetID. The Duke Source uses our Duke Unique ID
as the SubjectID, and getSubjectByIdentifier expects a Duke NetID. I've
set my classpath to include all the JAR files in webapps/
grouper/WEB-INF/lib and webapps/grouper/WEB-INF/classes, and I've
verified using groupmgr and grouperq that the configuration files and
libraries are correct, sufficient and functional.

For reference, I'm using tomcat 4.1.27 on Solaris 9 with Java 1.4.2_04.

Oddly, I'm not seeing any output from Subject/Source interactions in my
log file, even though I have the following lines in log4j.properties:

log4j.logger.edu.internet2.middleware.subject = DEBUG, rfile
log4j.logger.edu.internet2.middleware.subject.provider = DEBUG, rfile
log4j.logger.edu.duke.oit.idms.groupreg.grouper.GroupManager = DEBUG,
rfile
log4j.logger.edu.duke.oit.idms.groupreg.grouper.DukeSubject = DEBUG,
rfile
log4j.logger.edu.duke.oit.idms.groupreg.grouper.DukeSubjectAdapter =
DEBUG, rfile

But, I'm not getting the exception I'd expect were there difficulties
with the subject interaction...

Any pointers on where to look next?

Thanks!

KH

--
Karsten Huneycutt





----------------------
GW Brown, Information Systems and Computing




Archive powered by MHonArc 2.6.16.

Top of Page