org.apache.jasper.JasperException: No se puede compilar la clase para JSP: Ha tenido lugar un error en la línea: 26 en el archivo jsp: /xava/editors/descriptionValidValuesEditor.jsp org.openxava.util.Objects cannot be resolved to a type 23: value = ((Number) ovalue).intValue(); 24: } 25: else { // An object of enum type 26: value = ((Integer) org.openxava.util.Objects.execute(ovalue, "ordinal")).intValue(); 27: } 28: } 29: int labelIndex = p != validValuesProperty && validValuesProperty.getMetaModel().isAnnotatedEJB3()?value - 1:value; Stacktrace:

openxava | juanjovega | 3 years ago
  1. 0

    Problema con enum

    openxava | 3 years ago | juanjovega
    org.apache.jasper.JasperException: No se puede compilar la clase para JSP: Ha tenido lugar un error en la línea: 26 en el archivo jsp: /xava/editors/descriptionValidValuesEditor.jsp org.openxava.util.Objects cannot be resolved to a type 23: value = ((Number) ovalue).intValue(); 24: } 25: else { // An object of enum type 26: value = ((Integer) org.openxava.util.Objects.execute(ovalue, "ordinal")).intValue(); 27: } 28: } 29: int labelIndex = p != validValuesProperty && validValuesProperty.getMetaModel().isAnnotatedEJB3()?value - 1:value; Stacktrace:
  2. 0

    java.util.ConcurrentModificationException during JMETER stress test

    GitHub | 3 years ago | sergiocontrino
    org.apache.jasper.JasperException: java.util.ConcurrentModificationException
  3. 0

    I can't insert a basic HTML whitespace without getting an error. Is there any other way?

    Stack Overflow | 6 years ago | Carlos Sanchez
    org.apache.jasper.JasperException: /WEB-INF/views/entrada/list.jspx(94,67) The entity "nbsp" was referenced, but not declared.</strong></p> <pre><code>at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    i made custom tag in jstl and threw Unfamiliar exception help me

    Stack Overflow | 2 years ago | yevgnen
    org.apache.jasper.JasperException: Method "jcrypto" for function "jcrypto" not found in class "com.dabin.confirm.util.PhoneManager"
  6. 0

    JSP import cannot be resolved in Tomcat 5.5.27

    Stack Overflow | 4 years ago | rlay3
    org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 17 in the generated java file The import com.nag.ecrs.domain.model cannot be resolved </code></pre> <p>The import statement looks like this:</p> <pre><code>&lt;%@ page import="com.nag.ecrs.domain.model.ModelHelper"%&gt; </code></pre> <p>According to <a href="http://stackoverflow.com/questions/2412906/failing-import-in-on-the-fly-jsp-compilation">Failing import in on-the-fly JSP compilation</a> , it seems the compiler is tripping up because we have a package named:</p> <pre><code>com.nag.ecrs.domain.model </code></pre> <p>and a class named:</p> <pre><code>com.nag.ecrs.domain.Model </code></pre> <p>We indeed have the class com.nag.ecrs.domain.Model with the upper case 'M'. If I were to remove the import and use the fully qualified class name com.nag.ecrs.domain.model.ModelHelper, it works. However it's not a neat solution. The solution in the above link was to rename the package, which we also don't want to do.</p> <p>This is only affecting me, the page displays fine for my 2 other colleagues in their environments.</p> <p>So my question is, what is causing the JSP compiler to fail when using a package where that package name also exists as class? And how can this be fixed?</p> <p>I've tried:</p> <ul> <li>cleaning/rebuilding web app</li> <li>installing new Tomcat</li> <li>setting the allowLinking context switch in Tomcat to false</li> </ul> <p>Here's the full stack trace:</p> <pre><code>Stacktrace:

  1. Andreas Häber 1 times, last 1 month ago
  2. Justin 2 times, last 4 months ago
  3. abrazeneb 4 times, last 5 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

    No se puede compilar la clase para JSP: Ha tenido lugar un error en la línea: 26 en el archivo jsp: /xava/editors/descriptionValidValuesEditor.jsp org.openxava.util.Objects cannot be resolved to a type 23: value = ((Number) ovalue).intValue(); 24: } 25: else { // An object of enum type 26: value = ((Integer) org.openxava.util.Objects.execute(ovalue, "ordinal")).intValue(); 27: } 28: } 29: int labelIndex = p != validValuesProperty && validValuesProperty.getMetaModel().isAnnotatedEJB3()?value - 1:value; Stacktrace:

    at org.apache.jasper.compiler.DefaultErrorHandler.javacError()
  2. GWT dev
    JspServlet.service
    1. org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
    2. org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
    3. org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:468)
    4. org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
    5. org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
    6. org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
    7. org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657)
    8. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
    9. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    10. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    10 frames
  3. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    1 frame
  4. Glassfish Core
    ApplicationDispatcher.include
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
    4. org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
    5. org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
    5 frames
  5. GWT dev
    PageContextImpl.include
    1. org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
    2. org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:652)
    2 frames
  6. org.openxava.web
    LayoutPainterManager.renderView
    1. org.openxava.web.taglib.EditorTag.doStartTag(EditorTag.java:135)
    2. org.openxava.web.layout.impl.DefaultLayoutPainter.beginPropertyData(DefaultLayoutPainter.java:440)
    3. org.openxava.web.layout.impl.DefaultLayoutPainter.beginProperty(DefaultLayoutPainter.java:348)
    4. org.openxava.web.layout.impl.DefaultLayoutPropertyBeginElement.render(DefaultLayoutPropertyBeginElement.java:68)
    5. org.openxava.web.layout.LayoutPainterManager.renderElements(LayoutPainterManager.java:82)
    6. org.openxava.web.layout.LayoutPainterManager.renderView(LayoutPainterManager.java:41)
    6 frames
  7. org.apache.jsp
    detail_jsp._jspService
    1. org.apache.jsp.xava.detail_jsp._jspService(detail_jsp.java:165)
    1 frame
  8. GWT dev
    HttpJspBase.service
    1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    1 frame
  9. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    1 frame
  10. GWT dev
    JspServlet.service
    1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
    2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    3 frames
  11. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    1 frame
  12. Glassfish Core
    ApplicationDispatcher.include
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
    4. org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
    5. org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
    5 frames
  13. GWT dev
    JspRuntimeLibrary.include
    1. org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
    1 frame
  14. org.apache.jsp
    core_jsp._jspService
    1. org.apache.jsp.xava.core_jsp._jspService(core_jsp.java:301)
    1 frame
  15. GWT dev
    HttpJspBase.service
    1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    1 frame
  16. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    1 frame
  17. GWT dev
    JspServlet.service
    1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
    2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    3 frames
  18. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    1 frame
  19. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    2 frames
  20. Tomcat WS
    WsFilter.doFilter
    1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    1 frame
  21. Glassfish Core
    ApplicationDispatcher.forward
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
    4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
    5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
    6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
    6 frames
  22. org.openxava.web
    Module.request
    1. org.openxava.web.servlets.Servlets.getURIAsString(Servlets.java:120)
    2. org.openxava.web.servlets.Servlets.getURIAsString(Servlets.java:99)
    3. org.openxava.web.dwr.Module.getURIAsString(Module.java:209)
    4. org.openxava.web.dwr.Module.fillResult(Module.java:231)
    5. org.openxava.web.dwr.Module.request(Module.java:95)
    5 frames
  23. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  24. Direct Web Remoting
    DwrServlet.doPost
    1. org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
    2. org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
    3. org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431)
    4. org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)
    5. org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
    6. org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
    7. org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
    7 frames
  25. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    2 frames
  26. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    2 frames
  27. Tomcat WS
    WsFilter.doFilter
    1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    1 frame
  28. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
    9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)
    10 frames
  29. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
    3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
    3 frames
  30. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    3. java.lang.Thread.run(Unknown Source)
    3 frames