O programa que eu fiz no netBeans não conecta ao banco. Dá esse erro:
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host localhost, port 1433 has failed. Error: "Connection refused: connect. Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.".
23/05/2012 15:47:42 fronteira.TelaEstoque <init>
SEVERE: null
java.lang.NullPointerException
at persistencia.PerProduto.listarbusca(PerProduto.java:46)
at fronteira.TelaEstoque.listarbusca(TelaEstoque.java:871)
at fronteira.TelaEstoque.<init>(TelaEstoque.java:37)
at fronteira.TelaEstoque$18.run(TelaEstoque.java:777)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
FERROU!
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
PS: Sou iniciante, então, me expliquem detalhadamente.