JigsawHttpServletRequest.getCookies NullPointerException

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(JigsawHttpServletRequ
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.

Received on Tuesday, 4 August 1998 03:25:06 UTC