Java + SQL server exception: java. lang. NullPointerException processing

Source: Internet
Author: User
Tags microsoft sql server microsoft sql server 2005

About remote connection (including using Eclipse to connect) SqlServer2005:

When you confirm that the URL, driver loading, user name, and password of the connection are correctly configured, java is still thrown. lang. for NullPointerException, open the SQL Server Configuration Manager under the Microsoft SQL Server 2005 software directory in the Start menu:

①: Enable the TCP/IP protocol in SQLEXPRESS under SQL Server 2005 network configuration, right-click the TCP/IP protocol and select properties to ensure that the last TCP port in the IP address column is 1433, see the following figure for details.

②: Enable the TCP/IP protocol in the Client protocol under the SQL Native Client configuration, right-click to view the TCP/IP attribute, and ensure that the port is 1433, as shown in the following figure.

 

③ Restart the SQL Server Service under SQL Server 2005. For details, see the following figure.

So far, the java. lang. NullPointerException error has been solved.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.