Re: ServletRequestCleanService throws RuntimeException
DavidSeanTaylor <[email protected]> Mon, 17 Apr 2017 17:18:53 -0700
| Newsgroups | gmane.comp.jakarta.jetspeed.user |
|---|---|
| Message-ID | <[email protected]> |
Looks like the JSSubject code is indirectly assuming its always running = in a servlet request. Yes, you can safely ignore the error, but I think = we can improve on this internally=20 > On Apr 17, 2017, at 7:34 AM, Louis Vetsch <[email protected]> wrote: >=20 > Hi, >=20 > In migrating our Jetspeed-2, 2.2.0 custom portal to 2.3.1, we are = noticing > a RuntimeException being thrown > from org.apache.jetspeed.util.ServletRequestCleanupService. We have a = class > that runs at portal server startup that processes template pages for = our > portal application, which > calls org.apache.jetspeed.security.JSSubject.doAsPrivileged() to do = this > processing. There doesn't seem to be any side effects other than the > exception in the Jetspeed.log file upon server startup. >=20 > The call stack of the exception is: >=20 > ERROR > = [org.apache.jetspeed.util.ServletRequestCleanupService.addCleanupCallback(= ):63] > Registring cleanup callback before ServletRequestCleanupService = invoked > from filter chain. > java.lang.RuntimeException > at > = org.apache.jetspeed.util.ServletRequestCleanupService.addCleanupCallback(S= ervletRequestCleanupService.java:58) > at > = org.apache.jetspeed.util.ServletRequestThreadLocalCleanupCallback.<init>(S= ervletRequestThreadLocalCleanupCallback.java:33) > at = org.apache.jetspeed.security.JSSubject.setSubject(JSSubject.java:50) > at = org.apache.jetspeed.security.JSSubject.doAsPrivileged(JSSubject.java:185) > ... >=20 >=20 > Can we safely ignore this exception or is there something we need to = do > prior to calling our class during startup? >=20 > Thanks in advance.