int kode = Integer.parseInt(request.getParameter("kode"));
This will throw an NPE if the "kode" parameter is not set...
Is your MIDLet TextField empty when you get this error?
If not, check that your MIDLet code is properly generating an HTTP POST
request (you're not setting the content-length header, there needs to be a blank line between http headers and the body etc). Turn on the RequestDumperValve in your tomcat's server.xml to check what tomcat receives...
HTH,
Jon
yuni indrasary wrote:
--- Parsons Technical Services <[EMAIL PROTECTED]> wrote:
Try this.... And give it another try.
Thank you very much for the help Doug, but it still
give an error message that was start with:
Apache Tomcat/4.1.29-Error report
HTTP Status 500-Exception report
message description
The Server encountered an internal error that
prevented it from fulfilling this request exception javax.servlet.ServletException:
null at LoginServlet.doPost(LoginServlet.java:59)
and continued with what I enclosed in my previous
message
Put some checks in your code for the return of a null connection.
do you mean the connection between the J2ME emulator and tomcat or between tomcat and the database management system?
When I checked the web descryptor of the example application in tomcat, I found it also contained filter directive while mine doesn't,could it possibly be a problem?
The more I read this lists, the more I convinced, that
this lists is filled with person with a strong will to
help others to grow their knowledge. Thank you for
advance everybody :)
__________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
