Hi Mark,

if I am just doing request.getSession() on the request that I receive, how
can it be an application error?
I do no store any request or session..



2014-02-27 15:55 GMT+01:00 Mark Thomas <ma...@apache.org>:

> On 27/02/2014 14:35, Lorenzo Fini wrote:
> > Hi,
> > I get this error:
> >
> > java.lang.NullPointerException
> >
> org.apache.catalina.session.ManagerBase.generateSessionId(ManagerBase.java:807)
> >
> org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:653)
> >
> org.apache.catalina.connector.Request.doGetSession(Request.java:2956)
> >       org.apache.catalina.connector.Request.getSession(Request.java:2320)
> >
> org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:899)
> >
> org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:911)
> >
> com.myfilter.AuthenticationFilter.doFilter(AuthenticationFilter.java:47)
> >
> > at the line 47 of AuthenticationFilter the only action I do is
> > ((HttpServletRequest) request).getSession()
> >
> >
> > I use Tomcat 7.0.50 on a 64 bit machine with the basic configuration.
> > This only happens sometimes, and is hard to reproduce.
> > I have a filter that uses the session to check if the user is logged,
> > after undeploying and deploying, sometimes the webapp shows the
> > exception.
> > I've traced it down to ManagerBase.java - generateSessionId() method.
>
> No, there is no bug there.
>
> To repeat what you have already been told:
>
> This is either an application bug or a bug in
> com.abovo.gc.plata.filter.AuthenticationFilter that is retaining and
> using a reference to a request object from a previous request rather
> than using the request object for the current request.
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to