- From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
- Date: Tue, 04 Aug 1998 09:32:12 +0200
- To: Dorab at Digicraft <dc@brandx.net>
- cc: www-jigsaw@w3.org
Yes, that's a known bug, the getCookies() method of JigsawHttpServletRequest throw a NullPointerException when there is no cookie in the request. It has been fixed, and the next release is comming soon. Regards, Benoit. Dorab at Digicraft writes: > I modified SnoopServlet.java by adding the following... > > try { > if (req.getCookies() != null ) { > print(out, "COOKIES", "Cookies exist"); > } else { > print(out, "COOKIES", "No cookies"); > } > } catch (Throwable th) { > print(out, "EXCEPTION", "was one"); > th.printStackTrace(out); > } > > When I visit the servlet, I get the following... > > EXCEPTION: was one > java.lang.NullPointerException > at > org.w3c.jigsaw.servlet.JigsawHttpServletRequest.getCookies(JigsawHttpServletR > equ > est.java) > at SnoopServlet.doGet(SnoopServlet.java:52) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:480) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:583) > at org.w3c.jigsaw.servlet.ServletWrapper.service(ServletWrapper.java) > at > org.w3c.jigsaw.servlet.ServletWrapperFrame.perform(ServletWrapperFrame.java) > at > org.w3c.tools.resources.FramedResource.performFrames(FramedResource.java) > at org.w3c.tools.resources.FramedResource.perform(FramedResource.java > ) > at org.w3c.jigsaw.http.httpd.perform(httpd.java) > at org.w3c.jigsaw.http.Client.processRequest(Client.java) > at org.w3c.jigsaw.http.Client.startConnection(Client.java) > at org.w3c.jigsaw.http.socket.SocketClient.run(SocketClient.java) > at org.w3c.util.CachedThread.run(ThreadCache.java) > > If it makes a difference, this is under Mac OS 8.1, MRJSDK 2.0.1, JSDK2.0, > Jigsaw 2.0beta2. > > Thanks for any help. > > > - Benoît Mahé ------------------------------------------------------- World Wide Web Consortium (W3C) Architecture domain - Jigsaw Team http://www.w3.org/People/Mahe - bmahe@w3.org - +33.4.92.38.79.89 ---------------------------------------------------------------------
Received on Tuesday, 4 August 1998 03:31:53 UTC