org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 39 in the jsp file: /decorators/admin.jsp Type mismatch: cannot convert from Object to ReindexMessageManager 36: HttpSession httpSession = request.getSession(false); //dont create the session if there isnt one 37: User remoteUser = httpSession != null ? (User) httpSession.getAttribute(DefaultAuthenticator.LOGGED_IN_KEY) : null; 38: 39: ReindexMessageManager reindexMessageManager = ComponentManager.getComponentInstanceOfType(ReindexMessageManager.class); 40: final String message = reindexMessageManager.getMessage(remoteUser); 41: if (!StringUtils.isBlank(message)) 42: { Stacktrace:

Atlassian JIRA | Bogdan Dziedzic [Atlassian] | 7 years ago
  1. 0

    [JRA-19241] JSP compliation error in Jboss 4.2.1 - Atlassian JIRA

    atlassian.com | 11 months ago
    org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 39 in the jsp file: /decorators/admin.jsp Type mismatch: cannot convert from Object to ReindexMessageManager 36: HttpSession httpSession = request.getSession(false); //dont create the session if there isnt one 37: User remoteUser = httpSession != null ? (User) httpSession.getAttribute(DefaultAuthenticator.LOGGED_IN_KEY) : null; 38: 39: ReindexMessageManager reindexMessageManager = ComponentManager.getComponentInstanceOfType(ReindexMessageManager.class); 40: final String message = reindexMessageManager.getMessage(remoteUser); 41: if (!StringUtils.isBlank(message)) 42: { Stacktrace:
  2. 0

    If you deploy JIRA in Jboss 4.2.1 and older, 1.5+ JVM and navigate to the view projects page, you get the following stacktrace: {noformat} 2009-09-24 08:25:34,613 http-127.0.0.1-8080-16 ERROR test 30333x38x1 1pevvl4 /secure/project/ViewProjects.jspa [web].[localhost].[/jira].[action]] Servlet.service() for servlet action threw exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 39 in the jsp file: /decorators/admin.jsp Type mismatch: cannot convert from Object to ReindexMessageManager 36: HttpSession httpSession = request.getSession(false); //dont create the session if there isnt one 37: User remoteUser = httpSession != null ? (User) httpSession.getAttribute(DefaultAuthenticator.LOGGED_IN_KEY) : null; 38: 39: ReindexMessageManager reindexMessageManager = ComponentManager.getComponentInstanceOfType(ReindexMessageManager.class); 40: final String message = reindexMessageManager.getMessage(remoteUser); 41: if (!StringUtils.isBlank(message)) 42: { Stacktrace: at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) {noformat} This problem is being caused by the fact that JIRA 4.0 is not compatible with the JAVA 1.4 compiler and a bug in Jboss 4.2.0 reported in [JBAS-4605|https://jira.jboss.org/jira/browse/JBAS-4605].

    Atlassian JIRA | 7 years ago | Bogdan Dziedzic [Atlassian]
    org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 39 in the jsp file: /decorators/admin.jsp Type mismatch: cannot convert from Object to ReindexMessageManager 36: HttpSession httpSession = request.getSession(false); //dont create the session if there isnt one 37: User remoteUser = httpSession != null ? (User) httpSession.getAttribute(DefaultAuthenticator.LOGGED_IN_KEY) : null; 38: 39: ReindexMessageManager reindexMessageManager = ComponentManager.getComponentInstanceOfType(ReindexMessageManager.class); 40: final String message = reindexMessageManager.getMessage(remoteUser); 41: if (!StringUtils.isBlank(message)) 42: { Stacktrace:
  3. 0

    If you deploy JIRA in Jboss 4.2.1 and older, 1.5+ JVM and navigate to the view projects page, you get the following stacktrace: {noformat} 2009-09-24 08:25:34,613 http-127.0.0.1-8080-16 ERROR test 30333x38x1 1pevvl4 /secure/project/ViewProjects.jspa [web].[localhost].[/jira].[action]] Servlet.service() for servlet action threw exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 39 in the jsp file: /decorators/admin.jsp Type mismatch: cannot convert from Object to ReindexMessageManager 36: HttpSession httpSession = request.getSession(false); //dont create the session if there isnt one 37: User remoteUser = httpSession != null ? (User) httpSession.getAttribute(DefaultAuthenticator.LOGGED_IN_KEY) : null; 38: 39: ReindexMessageManager reindexMessageManager = ComponentManager.getComponentInstanceOfType(ReindexMessageManager.class); 40: final String message = reindexMessageManager.getMessage(remoteUser); 41: if (!StringUtils.isBlank(message)) 42: { Stacktrace: at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) {noformat} This problem is being caused by the fact that JIRA 4.0 is not compatible with the JAVA 1.4 compiler and a bug in Jboss 4.2.0 reported in [JBAS-4605|https://jira.jboss.org/jira/browse/JBAS-4605].

    Atlassian JIRA | 7 years ago | Bogdan Dziedzic [Atlassian]
    org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 39 in the jsp file: /decorators/admin.jsp Type mismatch: cannot convert from Object to ReindexMessageManager 36: HttpSession httpSession = request.getSession(false); //dont create the session if there isnt one 37: User remoteUser = httpSession != null ? (User) httpSession.getAttribute(DefaultAuthenticator.LOGGED_IN_KEY) : null; 38: 39: ReindexMessageManager reindexMessageManager = ComponentManager.getComponentInstanceOfType(ReindexMessageManager.class); 40: final String message = reindexMessageManager.getMessage(remoteUser); 41: if (!StringUtils.isBlank(message)) 42: { Stacktrace:
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    "JBossESB Service List" console fails - org.apache.jasper.JasperException: Unable to compile class for JSP:

    https://bugzilla.redhat.com/bugzilla/ | 9 years ago | Len DiMaggio
    org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 17 in the jsp file: /index.jsp ServicePublisher cannot be resolved 14: 15: <div class="pageSection"> 16: <% 17: List publishers = ServicePublisher.getServicePublishers(); 18: Registry registry = RegistryFactory.getRegistry(); 19: 20: for (int i = 0; i < publishers.size(); i++) { An error occurred at line: 18 in the jsp file: /index.jsp Registry cannot be resolved to a type 15: <div class="pageSection"> 16: <% 17: List publishers = ServicePublisher.getServicePublishers(); 18: Registry registry = RegistryFactory.getRegistry(); 19: 20: for (int i = 0; i < publishers.size(); i++) { 21: ServicePublisher publisher = (ServicePublisher) publishers.get(i); An error occurred at line: 18 in the jsp file: /index.jsp RegistryFactory cannot be resolved 15: <div class="pageSection"> 16: <% 17: List publishers = ServicePublisher.getServicePublishers(); 18: Registry registry = RegistryFactory.getRegistry(); 19: 20: for (int i = 0; i < publishers.size(); i++) { 21: ServicePublisher publisher = (ServicePublisher) publishers.get(i); An error occurred at line: 21 in the jsp file: /index.jsp ServicePublisher cannot be resolved to a type 18: Registry registry = RegistryFactory.getRegistry(); 19: 20: for (int i = 0; i < publishers.size(); i++) { 21: ServicePublisher publisher = (ServicePublisher) publishers.get(i); 22: String serviceCategory = publisher.getCategory(); 23: String serviceName = publisher.getServiceName(); 24: List eprs; An error occurred at line: 21 in the jsp file: /index.jsp ServicePublisher cannot be resolved to a type 18: Registry registry = RegistryFactory.getRegistry(); 19: 20: for (int i = 0; i < publishers.size(); i++) { 21: ServicePublisher publisher = (ServicePublisher) publishers.get(i); 22: String serviceCategory = publisher.getCategory(); 23: String serviceName = publisher.getServiceName(); 24: List eprs; An error occurred at line: 40 in the jsp file: /index.jsp EPR cannot be resolved to a type 37: <%=publisher.getDescription()%> 38: <% 39: for (int ii = 0; ii < eprs.size(); ii++) { 40: EPR epr = (EPR) eprs.get(ii); 41: URI eprURI = URI.create(epr.getAddr().getAddress()); 42: String protocol = eprURI.getScheme(); 43: String relContractURI = "contract.jsp?serviceCat=" + serviceCategory + "&serviceName=" + serviceName + "&protocol=" + protocol; An error occurred at line: 40 in the jsp file: /index.jsp EPR cannot be resolved to a type 37: <%=publisher.getDescription()%> 38: <% 39: for (int ii = 0; ii < eprs.size(); ii++) { 40: EPR epr = (EPR) eprs.get(ii); 41: URI eprURI = URI.create(epr.getAddr().getAddress()); 42: String protocol = eprURI.getScheme(); 43: String relContractURI = "contract.jsp?serviceCat=" + serviceCategory + "&serviceName=" + serviceName + "&protocol=" + protocol; Stacktrace:
  6. 0

    Error compiling JSP on tomcat8 and java8

    Stack Overflow | 2 years ago | user1247412
    org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: [768] in the generated java file: [/opt/tomcat/book_store/work/Catalina/localhost/bookStore/org/apache/jsp/WEB_002dINF/jsp/select_005fparameters_jsp.java] bookData cannot be resolved to a variable Stacktrace:

  1. abrazeneb 4 times, last 5 months ago
  2. Andreas Häber 1 times, last 4 weeks ago
  3. Justin 2 times, last 4 months ago
  4. andyglick 12 times, last 3 months ago
  5. Plato2000 6 times, last 7 months ago
71 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.jasper.JasperException

    Unable to compile class for JSP: An error occurred at line: 39 in the jsp file: /decorators/admin.jsp Type mismatch: cannot convert from Object to ReindexMessageManager 36: HttpSession httpSession = request.getSession(false); //dont create the session if there isnt one 37: User remoteUser = httpSession != null ? (User) httpSession.getAttribute(DefaultAuthenticator.LOGGED_IN_KEY) : null; 38: 39: ReindexMessageManager reindexMessageManager = ComponentManager.getComponentInstanceOfType(ReindexMessageManager.class); 40: final String message = reindexMessageManager.getMessage(remoteUser); 41: if (!StringUtils.isBlank(message)) 42: { Stacktrace:

    at org.apache.jasper.compiler.DefaultErrorHandler.javacError()
  2. GWT dev
    JspServlet.service
    1. org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
    2. org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    3. org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
    4. org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
    5. org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    6. org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    7. org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    8. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
    9. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    10. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    10 frames
  3. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    1 frame
  4. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames