SEVERE: Exception sending context destroyed event to listener instance
of class com.hazelcast.web.WebFilter$ContextListener
java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:
157)
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:
730)
at com.hazelcast.web.WebFilter.getAppContext(WebFilter.java:1212)
at com.hazelcast.web.WebFilter.getAppContext(WebFilter.java:1269)
at com.hazelcast.web.WebFilter.access$000(WebFilter.java:40)
at com.hazelcast.web.WebFilter
$ContextListener.contextDestroyed(WebFilter.java:72)
at
org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:
3836)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:
4366)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:
4282)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
740)
Below is the servlet
---------------------------
package com.datel.app;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class PageServlet extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
// Print the HTML header
out.println("<HTML><HEAD><TITLE>");
out.println("Request info");
out.println("</TITLE></HEAD>");
// Print the HTML body
out.println("<BODY><H1>Request info</H1><PRE>");
out.println("getCharacterEncoding: " +
request.getCharacterEncoding());
out.println("getContentLength: " + request.getContentLength());
out.println("getContentType: " + request.getContentType());
out.println("Getting Session VALUE: " +
request.getSession().getAttribute("VALUE"));
out.println("Setting Session VALUE");
request.getSession().setAttribute("VALUE", "FRANKLIN");
out.println("Getting Session VALUE: " +
request.getSession().getAttribute("VALUE"));
}
}
I'm using NetBeans as my IDE and added all the necessary jar files to
a new web application project. After compiling into the war file (no
changes were made to the codes), I executed clusterWebapp.sh on it and
created the clustered-Project.war file.
However, I could not deploy this on Tomcat; I used the upload war file
function in the Tomcat manager.
1.8.3 or 1.8.4 should have it fixed.
-talip
> --
> You received this message because you are subscribed to the Google Groups "Hazelcast" group.
> To post to this group, send email to haze...@googlegroups.com.
> To unsubscribe from this group, send email to hazelcast+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/hazelcast?hl=en.
>
>
<listener>
<listener-class>com.hazelcast.web.WebFilter$ContextListener</listener-class>
</listener>
4)Deploy now and try.SEVERE: Exception starting filter hazel-filter
java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:
768)
I believe that this is something internal to Hazelcast and I will be
creating a ticket for it.
> > hazelcast+...@googlegroups.com<hazelcast%2Bunsu...@googlegroups.com>
Great!
Thanks,
-talip
To unsubscribe from this group, send email to hazelcast+...@googlegroups.com.