Error: 500

/** * Sets a required member of a given cookie's value and returns it. * the member to set will be the first in cookieVal * members already in the cookieVal are appended * the member to set will be skippe dif it already exists */ function setMemberCV(cookieValue, memberName, memberValue) { var s_debug = false; var DLMTR = "|"; var ccVal = memberName + "="; var newCookieVal = ccVal + memberValue; if (cookieValue == null) return newCookieVal; var members = cookieValue.split(DLMTR); if (s_debug) alert("members.length = " + members.length); // append old avlues except memberName for(i = 0; i < s_debug =" false;" dlmtr = "|" ccval =" memberName" memberelem =" '';" memberval =" '';" cookievalue ="="" members =" cookieValue.split(DLMTR);" length = " + members.length); for (i = 0; i < members.length; i++) { if (s_debug) alert(" memberelem =" members[i];" ccvallength="'+ccVal.length+" meberelemlength="'+memberElem.length);" memberval =" memberElem.substr(ccVal.length,memberElem.length);">'+memberVal+'<'); // '>' return memberVal; } /** * Changes language */ function changeLanguage(lang) { var S_LIC_NAME = "LocaleInformation"; var S_UPL_NAME = "USERPORTALLANGUAGE"; var S_USL_NAME = "USERSHOPLANGUAGE"; SUPPORTED_PORTAL_LANGUAGES = new Array("fr", "de","en"); var S_MAX_AGE = 365 * 24 * 60 * 60 * 3; var s_debug = false; var act_time = new Date(); var s_max_age = new Date(act_time.getTime() + S_MAX_AGE); var s_liValue = getCookie(S_LIC_NAME); if (s_debug) { alert("language =" + lang); alert(S_LIC_NAME + " _1 = " + s_liValue); } // get usershop language var shopLanguage = getMemberValueCV(s_liValue,S_USL_NAME); if (s_debug) alert("shopLanguage =" + shopLanguage); var setShopLanguageToo = 0; for (var ai=0;ai < shoplanguage ="="" setshoplanguagetoo =" 1;" s_newvalue =" '';" setshoplanguagetoo ="="" s_newvalue =" setMemberCV(s_liValue," s_newvalue =" setMemberCV(s_newValue," s_newvalue =" setMemberCV(s_liValue," lang ="="">Error: 500

Location: /liveJSP/index.jsp

Internal Servlet Error:
javax.servlet.ServletException
 at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java, Compiled Code)
 at java.lang.Exception.(Exception.java, Compiled Code)
 at javax.servlet.ServletException.(ServletException.java, Compiled Code)
 at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java, Compiled Code)
 at _0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1.java, Compiled Code)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
 at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java, Compiled Code)
 at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java, Compiled Code)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)
 at org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.java, Compiled Code)
 at vgn.jsp._0002fvgn_0002fjsp_0002fcontroller_0002ejspcontroller_jsp_0._jspService(_0002fvgn_0002fjsp_0002fcontroller_0002ejspcontroller_jsp_0.java, Compiled Code)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
 at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java, Compiled Code)
 at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java, Compiled Code)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code)
 at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java, Compiled Code)
 at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code)
 at java.lang.Thread.run(Thread.java, Compiled Code)
Root cause:
java.lang.NullPointerException
 at _0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1.java, Compiled Code)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
 at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java, Compiled Code)
 at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java, Compiled Code)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)
 at org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.java, Compiled Code)
 at vgn.jsp._0002fvgn_0002fjsp_0002fcontroller_0002ejspcontroller_jsp_0._jspService(_0002fvgn_0002fjsp_0002fcontroller_0002ejspcontroller_jsp_0.java, Compiled Code)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
 at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java, Compiled Code)
 at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java, Compiled Code)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code)
 at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java, Compiled Code)
 at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code)
 at java.lang.Thread.run(Thread.java, Compiled Code)