473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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

Hello to all,
when i running my url i got the error like below.
my webser is tomcat6.0.32.
pls give me the solution.


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

java.lang.NullPointerException
com.st.servlet.LoginServlet.service(LoginServlet.j ava:15)

this is my servlet:
******************

package com.st.servlet;
import javax.servlet.*;
import java.io.*;
import com.st.dao.UserDaoI;
import com.st.dao.UserDao;
public class LoginServlet extends GenericServlet{
private UserDaoI udao;
public void init(){
udao=new UserDao();
}
public void service(ServletRequest req,ServletResponse res)throws ServletException,IOException{
PrintWriter out=res.getWriter();
String un=req.getParameter("uname");
String pwd=req.getParameter("pass");
if(pwd.length()>=6){
boolean flag=udao.findUser(un,pwd);
if(flag){
out.println("valid user");
}
}
else{
out.println("password should be min 3 charecters");
}

this is my web.xml:
******************

<web-app>
<servlet>
<servlet-name>ls</servlet-name>
<servlet-class>com.st.servlet.LoginServlet</servlet-class>
<load-on-startup></load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>ls</servlet-name>
<url-pattern>/login</url-pattern>
</servlet-mapping>
</web-app>
Jul 24 '11 #1
0 1043

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Durairaj Avasi | last post by:
#!/usr/bin/perl -w use Net::LDAP; use Net::LDAP::Util qw(ldap_error_name ldap_error_text); my $ldap = Net::LDAP->new('xy.webdurai.net', port=> 389) or die "$@"; $ldap->debug(15); my @args = (...
0
by: Ray Stevens | last post by:
"Server encountered an internal error. For more information, turn off customErrors in the server's .config file." That is not a particularly useful error message. It is being thrown by a...
1
by: Ray Stevens | last post by:
"Server encountered an internal error. For more information, turn off customErrors in the server's .config file." The above is not a particularly helpful error message. It is being thrown by a...
2
by: tris0516 | last post by:
Hi, would like to ask for help regarding the error we encountered on our database. We are currently using Oracle 8.0.5. Below is the error message got from the alert.log. Please advise. Thank you. ...
2
by: mathersj | last post by:
Hello I was wondering whether anybody knew what this error may be telling me: HTTP Status 500 - -------------------------------------------------------------------------------- type...
1
by: Tito Meinrath | last post by:
Hi, I'm really going mad about this! Currently I'm designing a student course on web services. Because I want them to understand what's really going on when web services correspond with each...
3
by: matias.cornejo | last post by:
I have a problem to startup de DB2 Admin. I read meny documentation in internet and nothing work, anybody know something??. I have DB2 UDB V8 fixpack 14 and AIX 5.2 x134 db2admin start SQL4409W...
1
by: evoloyeu | last post by:
hi buddy,the error is: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception ...
2
Frinavale
by: Frinavale | last post by:
I thought it would be nice to share the solution to my IIS headache with the rest of the world. I have developed a web application that has been distributed. Upon installing my application, some...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.