Thanks alot man!!! You said about the non null value, so I re checked my codes trying to find such mistakes, and I found that the getConnection method didn't return an object, so the conn I'm using...
Type: Posts; User: alskdwq
Thanks alot man!!! You said about the non null value, so I re checked my codes trying to find such mistakes, and I found that the getConnection method didn't return an object, so the conn I'm using...
java.lang.NullPointerException
at Servlet.LoginServlet.service(LoginServlet.java:28)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at...
hi guys, I'm writing some servlets for a website, but I'm new to JSP, therefore I made alot mistakes when I was writing them, I've been fixing them for weeks, but this null pointer exception, I just...
Got it, thanks
I solved it, and the problem was Login l=new Login(), I deleted the statement and problem solved:o Thanks anyway
import java.sql.*;
import java.io.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class Login extends JFrame
{