Question : JSP HTTP Error Code:   500  + JSPG0049E + java

HTTP Error Code:   500
Error Message:
JSPG0049E: /reports/exception.jsp failed to compile :  
JSPG0225E: An error occurred at line: 7 in the statically included file: /cincludes/wb_header.inc
JSPG0093E: Generated servlet error from file: /reports/exception.jsp
/opt/was61/WebSphere/AppServer/profiles/AppSrv01/temp/PX959Node01/WBIDCRPT-APP-SERVER/WBIDCRPT/approot/reports/_exception.java : 328 : sesId cannot be resolved

Root Cause:
com.ibm.ws.jsp.JspCoreException: JSPG0049E: /reports/exception.jsp failed to compile :
JSPG0225E: An error occurred at line: 7 in the statically included file: /cincludes/wb_header.inc
JSPG0093E: Generated servlet error from file: /reports/exception.jsp
/opt/was61/WebSphere/AppServer/profiles/AppSrv01/temp/PX959Node01/WBIDCRPT-APP-SERVER/WBIDCRPT/approot/reports/_exception.java : 328 : sesId cannot be resolved
        at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.translateJsp(AbstractJSPExtensionServletWrapper.java:456)

        at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper._checkForTranslation(AbstractJSPExtensionServletWrapper.java:421)

 
        at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.checkForTranslation(AbstractJSPExtensionServletWrapper.java:284)

        at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:139)

        at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:321)
 
        at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:518)
 

        at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:616)
 
        at com.ibm._jsp._query_5F_screen._jspService(_query_5F_screen.java:1496)
 
        at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
 
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1143)
 
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1084)

        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)

        at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)

        at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:832)
 
        at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)

        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:587)

        at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:481)

        at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)

        at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:226)
 
        at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:321)

Answer : JSP HTTP Error Code:   500  + JSPG0049E + java

see example:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<script type="text/javascript">
function showmsg(str) {
	alert(str);
}
function performClick(node) {
	var evt = document.createEvent("MouseEvents");
	evt.initEvent("click", true, false);
	node.dispatchEvent(evt);
}
window.onload = function() {
	performClick(document.getElementById("cel1"));
}
</script>
</head>

<body>
<table width="500" border="1" cellspacing="0" cellpadding="0">
  <tr>
    <td id="cel1" width="244" onclick="showmsg('test')">clique aqui</td>
    <td width="256" align="left" ><span style="margin-left:2px"> aaaaaaa </span></td>
  </tr>
</table>
<script> 
  document.getElementById("cel1").click()
</script>
</body>
</html>
Random Solutions  
 
programming4us programming4us