HTTP Status 500 - Unable to compile class for JSP:


type Exception report

message Unable to compile class for JSP:

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 29 in the jsp file: /upoll.jsp
user cannot be resolved
26:   } 
27:   catch (Exception e) {
28:   
29:         contestid = contest.getLatestRelease(user.getUserID());
30:       
31:   
32: 	 if (contestid < 1) {


An error occurred at line: 41 in the jsp file: /upoll.jsp
user cannot be resolved
38: 	
39: 	contest.loadSpecificContest(contestid);
40: 	
41: 	int intVoteCount = contest.hasVoted(contestid, user.getUserID()); 	
42: 
43: 	
44:     if (contest.getStatus() == 6) {


An error occurred at line: 69 in the jsp file: /upoll.jsp
user cannot be resolved
66:    
67:       if (contest.getWritingPromptContest() == 3) { 
68:       
69:       if (contest.isContestChallengeCommitteeMember(user.getUserID()) == false) {	
70:     	out.print("<center><table border=0 width=660 bgcolor=white><td>The voting for this contest is being determined by the contest committee.</td></table></center>");
71: 	return;    
72:     }


An error occurred at line: 78 in the jsp file: /upoll.jsp
user cannot be resolved
75: 
76:    if (contest.getStatus() == 6) {
77:    
78:     if (contest.isContestCommitteeMember(user.getUserID()) == false) {	
79:     	out.print("<center><table border=0 width=660 bgcolor=white><td>The voting for this contest is being determined by the contest committee.</td></table></center>");
80: 	return;    
81:     }


An error occurred at line: 88 in the jsp file: /upoll.jsp
user cannot be resolved
85:    
86:     if (contest.getStatus() == 7) {
87:     
88:      if (contest.isContestCommitteeMember(user.getUserID()) == false) {	
89:     	out.print("<center><table border=0 width=660 bgcolor=white><td>The voting for this contest was determined by the contest committee.</td></table></center>");
90: 	return;    
91:     } else {


An error occurred at line: 100 in the jsp file: /upoll.jsp
user cannot be resolved
97:    
98:    
99:     
100: if (user.getUserID() != 1) {
101:  if (intVoteCount > 0) {
102:  
103:    if (contest.getStatus() == 6) {


An error occurred at line: 108 in the jsp file: /upoll.jsp
user cannot be resolved
105:   
106:    
107:    if (intVoteCount > 2) {
108:     if (contest.isContestCommitteeMember(user.getUserID()) == false) {	
109:     	out.print("<center><table border=0 width=660 bgcolor=white><td>The voting for this contest is being determined by the contest committee. You have voted twice. As a member, you can view the status <a href=upollresults.jsp?id="+ contestid + "here.</td></table></center>");
110: 	return;    
111: 	}


An error occurred at line: 130 in the jsp file: /upoll.jsp
user cannot be resolved
127:  
128:     
129:     if (contest.getWritingPromptContest() == 0) { 
130:    if (user.getUserID() != 1) {
131:    if (contest.getVotingDaysRemain() < 1) {
132:    out.print("<center><table border=0 width=660 bgcolor=white><td>The voting has ended for this contest. <a href=upollresults.jsp?id=" + contestid + ">Click here</a> to view the results.</td></table></center>");
133:    return;


An error occurred at line: 138 in the jsp file: /upoll.jsp
user cannot be resolved
135:    }}
136:    
137:    
138:     if (user.getUserID() != 1) {
139:    if (contest.getStatus() == 4) {
140:    out.print("<center><table border=0 width=660 bgcolor=white><td>The voting has ended for this contest. <a href=upollresults.jsp?id=" + contestid + ">Click here</a> to view the results.</td></table></center>");
141:    return;


An error occurred at line: 155 in the jsp file: /upoll.jsp
user cannot be resolved
152: 
153: boolean blnCanVote = false;
154: 
155:  if (user.getMemberStatus() > 0) {
156:    blnCanVote = true;
157:  }
158:  if (user.getReaderStatus() > 0) {


An error occurred at line: 158 in the jsp file: /upoll.jsp
user cannot be resolved
155:  if (user.getMemberStatus() > 0) {
156:    blnCanVote = true;
157:  }
158:  if (user.getReaderStatus() > 0) {
159:    blnCanVote = true;
160:  }
161:  


An error occurred at line: 169 in the jsp file: /upoll.jsp
user cannot be resolved
166:     IPVotes = 0;
167:     }
168:  if (IPVotes > 0) {
169:    if (user.getUserID() != 1) {
170:            out.print("<br><center><table border=0 width=660 align=center bgcolor=white><td><img src=images/vte.jpg align=right hspace=3 vspace=3>Sorry, you have already voted or someone has voted from this computer. Poll results are not shown until the voting has ended.</td></table>");
171: 	   return;
172: 	   }


An error occurred at line: 176 in the jsp file: /upoll.jsp
user cannot be resolved
173:  }
174:  
175:  
176:  if (user.getUserID() != 1) {
177:    if (blnCanVote == false) {
178:     out.print("<br><center><table border=0 width=500 align=center bgcolor=white><td><img src=images/vtesmall.gif align=right height=125><font color=black>Sorry, but in order to be sure the polling is fair and accurate the vote is reserved for premier members. But you can read the entries below. For information on upgrading <a  href=upgrade.jsp>click here</a>. <P><a href=Javascript:window.history.go(-1);><img src=images/arrowback.gif border=0 width=39 height=20>Back</a></td></table></center>");
179:     blnNotAllowedToVote= true;


An error occurred at line: 205 in the jsp file: /upoll.jsp
user cannot be resolved
202: 	   }
203: 	   
204: 	   
205: 	   if (user.getUserID() != 1) {
206: 	   if (myCookie != null) {
207: 	   if (contest.getStatus() != 6) {
208: 	     out.print("<br><center><table border=0 width=660 bgcolor=white><td><img src=images/vte.jpg align=right hspace=3 vspace=3>Sorry, you have already voted or someone has voted from this computer. Poll results are not shown until the voting has ended.</td></table>");


An error occurred at line: 325 in the jsp file: /upoll.jsp
user cannot be resolved
322: int intRating = 0;
323:  
324: 
325:  intRating = contest.getVoterRating(story.getID(), user.getUserID());
326: %>
327: <%=story.getStarsFormattedString(intRating) %>
328: <%


An error occurred at line: 359 in the jsp file: /upoll.jsp
stats cannot be resolved
356:    <% } else { %>
357:    
358:    <a href=mypage.jsp?userid=<%=story.getAuthorID()%>>
359:   by <% String NameRead = stats.getName(story.getAuthorID());
360: 	out.print(NameRead);%>
361:    </a>
362:    <% } %>


Stacktrace:
	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:494)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:379)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:662)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:364)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.76 logs.


Apache Tomcat/7.0.76