C
CarloC
Hi,
inside my generic servlet I get this error when I call this method:
'session.getAttribute' command (line 36):
java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:336)
at
org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:
1024)
at
org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:
110)
at workcity.servlet.GenericServlet.checkToken(GenericServlet.java:36)
This is the java code:
HttpSession session = req.getSession();
ArcUtente vo = (ArcUtente) session.getAttribute(token);
req is a HttpServletRequest object !=null and
token is a String object != null.
You can help my?
Carlo
inside my generic servlet I get this error when I call this method:
'session.getAttribute' command (line 36):
java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:336)
at
org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:
1024)
at
org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:
110)
at workcity.servlet.GenericServlet.checkToken(GenericServlet.java:36)
This is the java code:
HttpSession session = req.getSession();
ArcUtente vo = (ArcUtente) session.getAttribute(token);
req is a HttpServletRequest object !=null and
token is a String object != null.
You can help my?
Carlo