Quantcast

The server encountered an internal error () that prevented it from fulfilling this request.

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

The server encountered an internal error () that prevented it from fulfilling this request.

brianwolf
Hi,

*I don't know if this is the correct list to ask this, but this is an error
from a servlet "loaded" under tomcat (if thats the right phrase)*

*
*

*Thanks!*

*
*

*
*

*
*

*
*

*description* *The server encountered an internal error () that prevented it
from fulfilling this request.*

*exception*

org.apache.jasper.JasperException: /search.jsp(151,22) Attribute value
 language + "/include/header.html" is quoted with " which must be
escaped when used within the value
        org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
        org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
        org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198)
        org.apache.jasper.compiler.Parser.parseQuoted(Parser.java:299)
        org.apache.jasper.compiler.Parser.parseAttributeValue(Parser.java:249)
        org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:211)
        org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:154)
        org.apache.jasper.compiler.Parser.parseInclude(Parser.java:867)
        org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1134)
        org.apache.jasper.compiler.Parser.parseElements(Parser.java:1461)
        org.apache.jasper.compiler.Parser.parse(Parser.java:137)
        org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
        org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
        org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:170)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
        org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: The server encountered an internal error () that prevented it from fulfilling this request.

Peter Crowther
2009/10/31 Brian Wolf <[hidden email]>

> *I don't know if this is the correct list to ask this, but this is an error
> from a servlet "loaded" under tomcat (if thats the right phrase)*
>

The error is due to the servlet, not due to Tomcat:


> org.apache.jasper.JasperException: /search.jsp(151,22) Attribute value
>  language + "/include/header.html" is quoted with " which must be
> escaped when used within the value
>

I'm not a JSP expert (there are some on this list, however).  But... whoever
developed /search.jsp in your application should be looking for an error
around the part of the JSP containing the text "/include/header.html".

I suspect you might get a more detailed response from someone else on the
list; this is merely an early, fast response!

- Peter
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: The server encountered an internal error () that prevented it from fulfilling this request.

Konstantin Kolinko
In reply to this post by brianwolf
2009/11/1 Brian Wolf <[hidden email]>:

>
> *description* *The server encountered an internal error () that prevented it
> from fulfilling this request.*
>
> *exception*
>
> org.apache.jasper.JasperException: /search.jsp(151,22) Attribute value
>  language + "/include/header.html" is quoted with " which must be
> escaped when used within the value
>...

Look at line 151 in your /search.jsp file and replace
<jsp:include page=”<%=language + "/include/header.html"%>" />
that you seem to have there with
<jsp:include page=”<%=language + \"/include/header.html\"%>" />

See "Quoting in attributes" in chapter JSP.1.6 Quoting and Escape Conventions
of the JSP specification.



Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: The server encountered an internal error () that prevented it from fulfilling this request.

brianwolf
*Konstantin thanks for your help, it now works, only one  little caveat
below, for the record as others  need this information if they are trying to
configure the Nutch 0.9 module from Apache, as I am. I would only caution
that for some reason the first quotation mark in your statement needed to
be replaced, as I noted below. Its seems maybe you used two editors or
something  constructing the statement. If you copy it into wordpad and
magnify it you will see it.*




I am going to place this item on the Nutch list, as I have not seen a
response to it

On Sat, Oct 31, 2009 at 5:07 PM, Konstantin Kolinko
<[hidden email]>wrote:

> 2009/11/1 Brian Wolf <[hidden email]>:
> >
> > *description* *The server encountered an internal error () that prevented
> it
> > from fulfilling this request.*
> >
> > *exception*
> >
> > org.apache.jasper.JasperException: /search.jsp(151,22) Attribute value
> >  language + "/include/header.html" is quoted with " which must be
> > escaped when used within the value
> >...
>
> Look at line 151 in your /search.jsp file and replace
> <jsp:include page=”<%=language + "/include/header.html"%>" />
> that you seem to have there with
> <jsp:include page=”<%=language + \"/include/header.html\"%>" />
>

not that!  use this -->

<jsp:include page="<%=language + \"/include/header.html\"%>" />






> See "Quoting in attributes" in chapter JSP.1.6 Quoting and Escape
> Conventions
> of the JSP specification.
>
>
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Loading...