tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Euclides da Silva Junior - DIGR.O" <jose.eucli...@rj.previdenciasocial.gov.br>
Subject Bug between JSP and multipart/form-data
Date Mon, 27 Nov 2000 14:50:44 GMT
-----BEGIN PGP SIGNED MESSAGE-----

Hi,
it seems to happen a foolish bug whenever JSP deals with
multipart/form-data. Since I have developed all my project with JSP,  now it
is a very difficult to change all  into servlets. It seems to be a bug when
JSP performs  getInputStreams method with request object , as you can see
below. A loop performs 19 times with the following command:
    
    int length
... ServletInputStream sis =  request.getInputStream()
    for ....( 19 times)
     {
 	length = sis.readLine(tempbuff,0,tempbuff.length);
     ...
     }

Can somebody help me what is happening?



Error: 500
Location: /examples/jsp/serstar/Form2.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for
JSPD:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0
002fForm_00032_0002ejspForm2_jsp_22.java:144: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:168: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:192: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:216: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:240: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:264: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:288: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:312: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:336: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:360: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:384: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:408: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:432: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:456: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:480: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:504: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:528: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:552: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:576: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:600: Missing term.
                out.write("\" \t\t\t\tvalue=\"");
                                                 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:645: Missing term.
                out.write("\"value=\"");
                                        ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:664: 'try' without 'catch' or
'finally'.
                out.write("\r\n\r\n\r\n\r\n\r\n\r\n   \r\n  \r\n  \r\n}
\r\n//-->\r\n\r\n\r\n");
                ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:670: Type expected.
        } catch (Exception ex) {
          ^
23 errors

	at org.apache.jasper.compiler.Compiler.compile(Compiler.java,
Compiled Code)
	at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
	at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:149)
	at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:161)
	at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
	at org.apache.jasper.runtime.JspServlet.service(JspServlet.java,
Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
	at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
	at java.lang.Thread.run(Unknown Source)


José Euclides Júnior
__________________________________
E-mail: jose.euclides@rj.previdenciasocial.gov.br
            javabrasil@usa.net 
            bl1link@usa.net
http://euclides.8m.com
If i fail, if i succeed, at least i live as i believe.

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.1

iQCVAwUBOiKOtN0YhuJ3BUxtAQG/ygP/YnP5qTNAwi73nd/8Yd3pENPPvDJZ7nLy
yIOHDT5HfLokj2BDEnPvVJjzUMx1fq2VGfqEmJCLpr/VgN+paob8sJIrUf0eAswX
eoLj52zVHPrd/iwD62thZdZn/XVJ2NNOhiV8EYg5/E024/mqW38SKbvWdTUzZVfh
T3YtMAG7pro=
=4Lfg
-----END PGP SIGNATURE-----

Mime
View raw message