Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] populateDebugPrefs.do and NPE

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] populateDebugPrefs.do and NPE


Chronological Thread 
  • From: "GW Brown, Information Systems and Computing" <>
  • To: Monica Crawford <>
  • Cc:
  • Subject: Re: [grouper-users] populateDebugPrefs.do and NPE
  • Date: Fri, 15 Sep 2006 14:50:17 +0100



--On 13 September 2006 18:13 -0500 Monica Crawford <> wrote:

I should have clarified. I get the below stack when going to the URL
localhost:7001/grouper/populateDebugPrefs.do. I should at least get to
the URL even if I can't set the preferences to an exploded war file.


I'm wondering if the source of the NPE ( x =
request.getRealPath(request.getServletPath()) ) is also related to the
lack of lists I see. I'll work on it some more tomorrow.
It does look like request.getRealPath(request.getServletPath()) ) is returning null - more likely than File.separator. That method is deprecated - but it ought to throw a proper exception if it isn't implemented. I'll try and sens you updated files next week -which will read from a properties file.

Thanks Gary!
Monica



GW Brown, Information Systems and Computing wrote:
Hi Monica,

Currently, the debug prefs only work if you have an expanded WAR. It may
also only work on Windows systems. The preferences are saved to file so
that they can be read in later, saving re-typing paths. Unfortunately, I
didn't make the file location configurable - something I will do in due
course.

For the time being you can update LowLevelGrouperCapableAction and
SaveDebugPrefsAction. Look for a String variable 'prefsFile' and change
to something that will work on your system.

Gary

--On 11 September 2006 10:39 -0500 Monica Crawford
<>
wrote:



Hi,



I'm trying to activate the debug screen in the UI and receive the stack
below. Let me know if there are additional things to configure to get
the debug preferences working. Thanks in advance.


java.lang.NullPointerException

at
edu.internet2.middleware.grouper.ui.actions.LowLevelGrouperCapableActio
n. readDebugPrefs(LowLevelGrouperCapableAction.java:293)

at
edu.internet2.middleware.grouper.ui.actions.PopulateDebugPrefsAction.gr
ou perExecute(PopulateDebugPrefsAction.java:114)

at
edu.internet2.middleware.grouper.ui.actions.GrouperCapableAction.execut
e( GrouperCapableAction.java:224)

at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestP
ro cessor.java:421)

at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
:2 26)

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:743)

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

at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(S
tu bSecurityHelper.java:225)

at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurity
He lper.java:127)

at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:
28 3)

at
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java
:4 2)

at
edu.internet2.middleware.grouper.ui.LoginCheckFilter.doFilter(LoginChec
kF ilter.java:167)

at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java
:4 2)

at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.
ru n(WebAppServletContext.java:3212)

at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedS
ub ject.java:321)

at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:12
1)

at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppSer
vl etContext.java:1983)

at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletCon
te xt.java:1890)

at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.jav
a: 1344)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)





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


--
Monica Crawford
University of Wisconsin-Madison
Division of Information Technology
1210 West Dayton Street, Rm 3159
Madison, Wisconsin 53706
608.890.0782



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




Archive powered by MHonArc 2.6.16.

Top of Page