try
{

Connection con;
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=KeHuZiLiao";
String user="sa";
String password="";
con=DriverManager.getConnection(url,user,password);
    
   try
   { 
   
   ResultSet rs;
   String s="SELECT leixing FROM user WHERE username=?";
   PreparedStatement stat1=con.prepareStatement(s);
   stat1.setString(1,uname.getText());
   //程序到这里就不会往下运行了,错在哪里啊?
   rs=stat1.executeQuery();
  
   rs.next();
   label_1.setText( rs.getString(3));
       }
   catch(Exception er)
   {
   label_1.setText("456");//程序抛出了此异常。
   }

}
catch(Exception ex)
{
label_1.setText("123");
}