HTTP Status 500 – Internal Server Error


Type Exception Report

Message Unable to compile class for JSP:

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

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

An error occurred at line: [179] in the jsp file: [/jsp/nidp_latest.jsp]
Syntax error, insert ";" to complete LocalVariableDeclarationStatement
176:     // HAV Parameters (HAVDebugJSP=true visar alla viktiga parametrar på anviningstjänsten. samt Skickar inte vidare till strLogoutUrlInfo.)
177:     boolean HAVDebugJSP = false;
178:     boolean HAVDebugJSPHeaders = false;
179:     String strLogoutUrlInfo ="https://login.havochvatten.se/nidp/jsp/logoutSuccess.jsp?target="https://www.havochvatten.se/personnummer-saknas;
180:     String strGlobalMessageType = null;
181:     String strUserMatch = null;
182:     String strUserName = (handler.getUserName());


An error occurred at line: [180] in the jsp file: [/jsp/nidp_latest.jsp]
Syntax error, insert ":: IdentifierOrNew" to complete ReferenceExpression
177:     boolean HAVDebugJSP = false;
178:     boolean HAVDebugJSPHeaders = false;
179:     String strLogoutUrlInfo ="https://login.havochvatten.se/nidp/jsp/logoutSuccess.jsp?target="https://www.havochvatten.se/personnummer-saknas;
180:     String strGlobalMessageType = null;
181:     String strUserMatch = null;
182:     String strUserName = (handler.getUserName());
183:     boolean strIsSaml2 = ((request.getAttribute("javax.servlet.forward.request_uri")).toString().contains("saml2"));


An error occurred at line: [180] in the jsp file: [/jsp/nidp_latest.jsp]
Syntax error, insert "AssignmentOperator Expression" to complete Assignment
177:     boolean HAVDebugJSP = false;
178:     boolean HAVDebugJSPHeaders = false;
179:     String strLogoutUrlInfo ="https://login.havochvatten.se/nidp/jsp/logoutSuccess.jsp?target="https://www.havochvatten.se/personnummer-saknas;
180:     String strGlobalMessageType = null;
181:     String strUserMatch = null;
182:     String strUserName = (handler.getUserName());
183:     boolean strIsSaml2 = ((request.getAttribute("javax.servlet.forward.request_uri")).toString().contains("saml2"));


An error occurred at line: [180] in the jsp file: [/jsp/nidp_latest.jsp]
Syntax error, insert ";" to complete Statement
177:     boolean HAVDebugJSP = false;
178:     boolean HAVDebugJSPHeaders = false;
179:     String strLogoutUrlInfo ="https://login.havochvatten.se/nidp/jsp/logoutSuccess.jsp?target="https://www.havochvatten.se/personnummer-saknas;
180:     String strGlobalMessageType = null;
181:     String strUserMatch = null;
182:     String strUserName = (handler.getUserName());
183:     boolean strIsSaml2 = ((request.getAttribute("javax.servlet.forward.request_uri")).toString().contains("saml2"));


An error occurred at line: [180] in the jsp file: [/jsp/nidp_latest.jsp]
String cannot be resolved to a variable
177:     boolean HAVDebugJSP = false;
178:     boolean HAVDebugJSPHeaders = false;
179:     String strLogoutUrlInfo ="https://login.havochvatten.se/nidp/jsp/logoutSuccess.jsp?target="https://www.havochvatten.se/personnummer-saknas;
180:     String strGlobalMessageType = null;
181:     String strUserMatch = null;
182:     String strUserName = (handler.getUserName());
183:     boolean strIsSaml2 = ((request.getAttribute("javax.servlet.forward.request_uri")).toString().contains("saml2"));


An error occurred at line: [180] in the jsp file: [/jsp/nidp_latest.jsp]
strGlobalMessageType cannot be resolved to a variable
177:     boolean HAVDebugJSP = false;
178:     boolean HAVDebugJSPHeaders = false;
179:     String strLogoutUrlInfo ="https://login.havochvatten.se/nidp/jsp/logoutSuccess.jsp?target="https://www.havochvatten.se/personnummer-saknas;
180:     String strGlobalMessageType = null;
181:     String strUserMatch = null;
182:     String strUserName = (handler.getUserName());
183:     boolean strIsSaml2 = ((request.getAttribute("javax.servlet.forward.request_uri")).toString().contains("saml2"));


An error occurred at line: [275] in the jsp file: [/jsp/nidp_latest.jsp]
strGlobalMessageType cannot be resolved to a variable
272:     }
273:     else if (handler.isPendingFederation())
274:     {
275:     strGlobalMessageType = "isPendingFederation";
276:         if (!handler.isPendingAuthRequest())
277:         {
278:             if (null != handler.getLoginURL())


An error occurred at line: [279] in the jsp file: [/jsp/nidp_latest.jsp]
strGlobalMessageType cannot be resolved to a variable
276:         if (!handler.isPendingAuthRequest())
277:         {
278:             if (null != handler.getLoginURL())
279:             strGlobalMessageType = "isNotPendingAuthRequest";
280:             {
281:                 if (null != handler.getProvisionURL())
282:                 {


An error occurred at line: [284] in the jsp file: [/jsp/nidp_latest.jsp]
strGlobalMessageType cannot be resolved to a variable
281:                 if (null != handler.getProvisionURL())
282:                 {
283:                     strGlobalMessageText = handler.getResource(JSPResDesc.AUTH_OR_PROVISION_LONG_DESCRIPTION);
284:                     strGlobalMessageType = "isNotPendingAuthRequest-empty-getProvisionURL";
285:                 }
286:                 else
287:                 {


An error occurred at line: [289] in the jsp file: [/jsp/nidp_latest.jsp]
strGlobalMessageType cannot be resolved to a variable
286:                 else
287:                 {
288:                     strGlobalMessageText = handler.getResource(JSPResDesc.AUTH_ONLY_LONG_DESCRIPTION);
289:                     strGlobalMessageType = "isNotPendingAuthRequest-has-getProvisionURL";
290:                 }
291:             }
292:         }


An error occurred at line: [297] in the jsp file: [/jsp/nidp_latest.jsp]
strGlobalMessageType cannot be resolved to a variable
294:     else if (handler.isPendingAuthRequest())
295:     {
296:         strGlobalMessageText = handler.getResource(JSPResDesc.IDP_LOGIN_LONG_DESCRIPTION);
297:         strGlobalMessageType = "isPendingAuthRequest";        
298:         if (handler.getMessage(false) instanceof NIDPConsentMessage)
299:         {
300:            strGlobalMessageText = handler.getResource(JSPResDesc.FEDERATION_CONSENT_LONG_DESCRIPTION);


An error occurred at line: [307] in the jsp file: [/jsp/nidp_latest.jsp]
strGlobalMessageType cannot be resolved to a variable
304:     else if (!handler.isAuthenticatedSession())
305:     {
306:         strGlobalMessageText = handler.getResource(JSPResDesc.LOGIN_TO_USE_APPS);
307:         strGlobalMessageType = "isNotAuthenticatedSession";
308:     }
309:     else
310:     {


An error occurred at line: [312] in the jsp file: [/jsp/nidp_latest.jsp]
strGlobalMessageType cannot be resolved to a variable
309:     else
310:     {
311:         strGlobalMessageText = handler.getResource(JSPResDesc.LOGIN_FOR_MULTI_FACTOR);
312:         strGlobalMessageType = "isAuthenticatedSessionStepUp";       
313:     }
314: 
315:     // If the client is the Mobile Application, do not show the hamburger


An error occurred at line: [323] in the jsp file: [/jsp/nidp_latest.jsp]
strGlobalMessageType cannot be resolved to a variable
320:         showCards = false;
321: 	}
322: 
323:     if (HAVDebugJSP) {out.println("<small>strGlobalMessageType="+strGlobalMessageType+"</small>");};
324:     if (HAVDebugJSP) {System.err.println(">*nidp_latest: ********* strGlobalMessageType: " + strGlobalMessageType);};
325: 
326: 


An error occurred at line: [324] in the jsp file: [/jsp/nidp_latest.jsp]
strGlobalMessageType cannot be resolved to a variable
321: 	}
322: 
323:     if (HAVDebugJSP) {out.println("<small>strGlobalMessageType="+strGlobalMessageType+"</small>");};
324:     if (HAVDebugJSP) {System.err.println(">*nidp_latest: ********* strGlobalMessageType: " + strGlobalMessageType);};
325: 
326: 
327: %>


An error occurred at line: [686] in the jsp file: [/jsp/nidp_latest.jsp]
strGlobalMessageType cannot be resolved to a variable
683: 
684: 
685:     // Kommer från SC IDP utan att hitta en Matchning i katalogen. // eller avbrutit vid IDP &&strIsSaml2 !=true
686:     if ((null == strRequestTarget)&&(strGlobalMessageType == "isNotAuthenticatedSession")||(null == strRequestTarget)&&(strGlobalMessageType == "isPendingAuthRequest"))
687:     //         ^ = Kommer från SC IDP utan att hitta en Matchning i katalogen            ||        ^ = eller avbrutit vid IDP   
688:     {
689:         strUserMatch   = "false";


An error occurred at line: [686] in the jsp file: [/jsp/nidp_latest.jsp]
strGlobalMessageType cannot be resolved to a variable
683: 
684: 
685:     // Kommer från SC IDP utan att hitta en Matchning i katalogen. // eller avbrutit vid IDP &&strIsSaml2 !=true
686:     if ((null == strRequestTarget)&&(strGlobalMessageType == "isNotAuthenticatedSession")||(null == strRequestTarget)&&(strGlobalMessageType == "isPendingAuthRequest"))
687:     //         ^ = Kommer från SC IDP utan att hitta en Matchning i katalogen            ||        ^ = eller avbrutit vid IDP   
688:     {
689:         strUserMatch   = "false";


An error occurred at line: [698] in the jsp file: [/jsp/nidp_latest.jsp]
strGlobalMessageType cannot be resolved to a variable
695:     }
696: 
697:     // Ingen påbörjad Auth och Target finns
698:     if ((null != strRequestTarget)&&(strGlobalMessageType == "isNotAuthenticatedSession"))
699:     {
700:         strHtmlheading = strServicename;
701:         strHtmlIntro1  = "";


Stacktrace:
	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:213)
	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:509)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:397)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:367)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:605)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:399)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:327)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:518)
	org.apache.jsp.jsp.nidp_jsp._jspService(nidp_jsp.java:134)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:466)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:327)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:518)
	org.apache.jsp.jsp.main_jsp._jspService(main_jsp.java:196)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:466)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:327)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:66)
	com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
	com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
	com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
	com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
	com.novell.nidp.servlets.filters.jsp.NIDPJspFilter.doFilter(y:2011)
	com.novell.nidp.servlets.filters.xss.XSSDetectionFilter.doFilter(y:2752)
	com.novell.nidp.servlets.filters.SessionAssuranceFilter.doFilter(y:2506)
	org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:126)
	com.novell.nidp.servlets.filters.jsp.SameOriginFramingFilter.doFilter(y:1722)
	com.novell.nidp.servlets.filters.RequestResponseHook.doFilter(y:747)
	org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)

Note The full stack trace of the root cause is available in the server logs.


Apache Tomcat