Quoting nikita berdikov <[EMAIL PROTECTED]>:

Hi!

I have *.jsp page with a form. It sets several
properties of a bean, that then connects to Oracle DB
and inserts data into table. When i click "Submit", i
have the following error:

HTTP Status 500 -



type Exception report

message

description The server encountered an internal error
() that prevented
it from fulfilling this request.
This part of error message you're showing

[Hide Quoted Text]
root cause

java.io.UTFDataFormatException: Invalid byte 2 of
2-byte UTF-8
sequence.

org.apache.jasper.xmlparser.UTF8Reader.invalidByte(UTF8Reader.java:615)

org.apache.jasper.xmlparser.UTF8Reader.read(UTF8Reader.java:305)


suggests to me that the issue is about the encoding of the JSP file Tomcat's trying to compile, not Oracle or the request encoding; you need to make sure that the way that files' encoded is the way it says it's encoded. So check the XML declaration on the JSP file; if necessary, you might try opening up the JSP file in an encoding-aware editor such as jEdit (Notepad and Wordpad are *not* generally acceptable for this kind of work =), and making sure the file is saved as properly encoded UTF-8.

HTH

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to