Applies to:
NA
Description:
Signals that a method has been invoked at an illegal or inappropriate time. In other words, the Java environment or Java application is not in an appropriate state for the requested operation.
Cause:
a. The most common cause of this exception is a servlet or JSP attempting to write to the output stream after the response has been committed.
b. Another way this can happen is by attempting to redirect from within the middle of a JSP page:
…
hello world
<%
if ("not logged in")
response.sendRedirect("login.jsp");
%>
more stuff
…
c. Another common place where an IllegalStateException is likely to occur is in a JSP that attempts to stream binary data. JSPs are primarily designed to format output as HTML. With HTML, white space characters are ignored. It is not uncommon for JSP compilers to inject their own white space charaters to the beginning and/or end of the output stream. Line breaks in the developer’s code can also be interpreted as white space in the output stream. These white space characters can interfer with the generated servlet’s ability to create and stream the binary outputdata, resulting in the IllegalStateException.
admin JAVA-JSP
Applies to:
NA
Description:
A common problem which occurs when the class loader cannot find beans that the pages reference.That usually results in an error message like “Class xxx cannot be resolved to a type”
Cause:
The class loader could not find beans that the pages referenced.
admin JAVA-JSP
Applies to:
NA
Description:
Occurs while using EL or JSTL in JSP.
Cause:
Configuration mismatch between the version of JSP that you are using, the version of the JSTL that you employ, and how you have declared your web application in the deployment descriptor (web.xml).
admin JAVA-JSP
Applies to:
NA
Description:
A common issue is the problem where the external resources for a page, to include images, style sheets and script files, do not load.
Cause:
his problem is frequently caused by using page-relative URLs to these resources.
Within a static web site, the URL to HTML files is formed from the file path to that page. Within a dynamic web application, this is no longer the case; the URLs are usually formed from mappings within the deployment descriptor (web.xml).
Thus, a URL such as
http://some.server.com/command/doSomething
does not reference any particular folder on the file system. Rather, it is referencing a servlet mapped within the deployment descriptor.
When you forward to a JSP from this servlet, the URL remains the same and the browser has no way of knowing that the URL does not reference a folder. And it certainly has no way of knowing in which folder the JSP resides.
Thus, if you use page-relative URLs in the JSP, the browser tries to use the servlet mapping to resolve the path to the file, and of course, that fails.
admin JAVA-JSP
Applies to:
Description:
Error while trying to convert an application into JSP that is using the shared library libjchli.so.
Cause:
libjchli.so is not loaded
admin JAVA-JSP
Applies to:
Tomcat 3.2.2
Description:
An internal server error while trying to run an application built in JavaBeans and JSP.
Cause:
A clearBuffer() method is called when the buffer has already been flushed.
admin JAVA-JSP
Applies to:
Description:
An included servlet error while trying to use HTML files using POST methods.
Cause:
A bug in the servlet engine.
admin JAVA-JSP
Applies to:
Apache
Tomcat
Description:
Error while trying to POST to a JSP page.
Cause:
Servlet container is not started
admin JAVA-JSP
Applies to:
Mozilla v1.0
Description:
Error while running JSP in Mozilla.
Cause:
admin JAVA-JSP
Applies to:
Websphere Application Server 3.5.3
Description:
Error while trying to include a JSP into another JSP using the include directive.
Cause:
A bug in Tomcat WAS 3.5.3 when including two JSPs with each other.
admin JAVA-JSP