org.apache.jasper.JasperException: Exception in JSP: /jsp/notfound-404.jsp:23 20: <h3>No such object, datastream, or dissemination.</h3> 21: </center> 22: <% 23: if (exception.getMessage() != null) { 24: out.print(exception.getMessage()); 25: } 26: %> Stacktrace:

Sakai JIRA | Renaud Waldura | 8 years ago
  1. 0

    Accessing any invalid URL generates an error. E.g. http://localhost:8080/fedora/xxx yields the page: HTTP Status 404 - -------------------------------------------------------------------------------- type Status report message description The requested resource () is not available. -------------------------------------------------------------------------------- Apache Tomcat/5.5.27 And the following error appears in the log: ERROR 2009-02-04 10:29:44.966 [http-80-Processor2] ([jsp]) Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at org.apache.jsp.jsp.notfound_002d404_jsp._jspService(notfound_002d404_jsp.java:76) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:364) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:285) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) Feb 4, 2009 10:29:44 AM org.apache.catalina.core.StandardHostValve custom SEVERE: Exception Processing ErrorPage[errorCode=404, location=/jsp/notfound-404.jsp] org.apache.jasper.JasperException: Exception in JSP: /jsp/notfound-404.jsp:23 20: <h3>No such object, datastream, or dissemination.</h3> 21: </center> 22: <% 23: if (exception.getMessage() != null) { 24: out.print(exception.getMessage()); 25: } 26: %> Stacktrace: at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:364) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:285) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) The fix is simple and works: Index: src/war/fedora/jsp/notfound-404.jsp =================================================================== --- src/war/fedora/jsp/notfound-404.jsp (revision 7890) +++ src/war/fedora/jsp/notfound-404.jsp (working copy) @@ -20,7 +20,7 @@ <h3>No such object, datastream, or dissemination.</h3> </center> <% -if (exception.getMessage() != null) { +if (exception != null && exception.getMessage() != null) { out.print(exception.getMessage()); } %>

    Sakai JIRA | 8 years ago | Renaud Waldura
    org.apache.jasper.JasperException: Exception in JSP: /jsp/notfound-404.jsp:23 20: <h3>No such object, datastream, or dissemination.</h3> 21: </center> 22: <% 23: if (exception.getMessage() != null) { 24: out.print(exception.getMessage()); 25: } 26: %> Stacktrace:
  2. 0

    Accessing any invalid URL generates an error. E.g. http://localhost:8080/fedora/xxx yields the page: HTTP Status 404 - -------------------------------------------------------------------------------- type Status report message description The requested resource () is not available. -------------------------------------------------------------------------------- Apache Tomcat/5.5.27 And the following error appears in the log: ERROR 2009-02-04 10:29:44.966 [http-80-Processor2] ([jsp]) Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at org.apache.jsp.jsp.notfound_002d404_jsp._jspService(notfound_002d404_jsp.java:76) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:364) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:285) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) Feb 4, 2009 10:29:44 AM org.apache.catalina.core.StandardHostValve custom SEVERE: Exception Processing ErrorPage[errorCode=404, location=/jsp/notfound-404.jsp] org.apache.jasper.JasperException: Exception in JSP: /jsp/notfound-404.jsp:23 20: <h3>No such object, datastream, or dissemination.</h3> 21: </center> 22: <% 23: if (exception.getMessage() != null) { 24: out.print(exception.getMessage()); 25: } 26: %> Stacktrace: at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:364) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:285) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) The fix is simple and works: Index: src/war/fedora/jsp/notfound-404.jsp =================================================================== --- src/war/fedora/jsp/notfound-404.jsp (revision 7890) +++ src/war/fedora/jsp/notfound-404.jsp (working copy) @@ -20,7 +20,7 @@ <h3>No such object, datastream, or dissemination.</h3> </center> <% -if (exception.getMessage() != null) { +if (exception != null && exception.getMessage() != null) { out.print(exception.getMessage()); } %>

    Sakai JIRA | 8 years ago | Renaud Waldura
    org.apache.jasper.JasperException: Exception in JSP: /jsp/notfound-404.jsp:23 20: <h3>No such object, datastream, or dissemination.</h3> 21: </center> 22: <% 23: if (exception.getMessage() != null) { 24: out.print(exception.getMessage()); 25: } 26: %> Stacktrace:
  3. 0

    [TOMAHAWK-579] java.lang.IllegalStateException: getOutputStream() has already been called for this response error using the RI 1.2_01 and Tomahawk 1.1.3 - ASF JIRA

    apache.org | 11 months ago
    org.apache.jasper.JasperException: Exception in JSP: /resources/pages/fileNotFound.jsp:10 7: <!-- Btw this declares html as the default namespace --> 8: 9: <jsp:directive.page contentType="text/html;charset=utf-8"/> 10: <f:subview id="FNFErrorSubview"> 11: <html> 12: 13: <head><meta name="WickedWare" content="Mnemonica Application - Due Date Calendar System"/> Stacktrace:
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Eclipse + WTP Help

    Google Groups | 1 decade ago | coolgirl
    org.apache.jasper.JasperException: /time.jsp(4,0) Page directive: illegal to have multiple occurrences of contentType with different values (old: text/html; charset=ISO-8859-1, new: text/html)
  6. 0

    [HARMONY-5431] Confluence fails with some complaint about Spring Application context - ASF JIRA

    apache.org | 12 months ago
    org.apache.jasper.JasperException: Spring Application context has not been set

  1. Andreas Häber 1 times, last 4 weeks 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

    Exception in JSP: /jsp/notfound-404.jsp:23 20: <h3>No such object, datastream, or dissemination.</h3> 21: </center> 22: <% 23: if (exception.getMessage() != null) { 24: out.print(exception.getMessage()); 25: } 26: %> Stacktrace:

    at org.apache.jasper.servlet.JspServletWrapper.handleJspException()
  2. GWT dev
    JspServlet.service
    1. org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
    2. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
    3. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
    4. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    4 frames
  3. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    1 frame
  4. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
    4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
    5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
    6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
    7. org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:364)
    8. org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:285)
    9. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    10. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    11. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    12. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
    12 frames
  5. Grizzly HTTP
    LeaderFollowerWorkerThread.runIt
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
    2. org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    3. org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    4. org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    4 frames
  6. Tomcat Util
    ThreadPool$ControlRunnable.run
    1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
    1 frame
  7. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:595)
    1 frame