已有101人关注
Java项目案例分析
发表在Java图书答疑 2017-01-02
是否精华
版块置顶:

超市管理系统

进入了主界面,但是点击没反应


出现下面错误

com.microsoft.sqlserver.jdbc.SQLServerException: Connection reset

创建数据库连接失败!

at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(Unknown Source)

at com.microsoft.sqlserver.jdbc.TDSChannel.read(Unknown Source)

at com.microsoft.sqlserver.jdbc.SQLServerConnection.Prelogin(Unknown Source)

at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown Source)

at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)

at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)

at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)

at java.sql.DriverManager.getConnection(Unknown Source)

at java.sql.DriverManager.getConnection(Unknown Source)

at com.mingrisoft.dao.GetConnection.getCon(GetConnection.java:21)

at com.mingrisoft.dao.FeelDao.selectProvide(FeelDao.java:40)

at com.mingrisoft.panel.FeelWarePanel.getMessage(FeelWarePanel.java:176)

at com.mingrisoft.mainFrame.RemoveButtomFrame$1.valueChanged(RemoveButtomFrame.java:170)

at javax.swing.JTree.fireValueChanged(Unknown Source)

at javax.swing.JTree$TreeSelectionRedirector.valueChanged(Unknown Source)

at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(Unknown Source)

at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(Unknown Source)

at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(Unknown Source)

at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(Unknown Source)

at javax.swing.JTree.setSelectionPath(Unknown Source)

at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(Unknown Source)

at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(Unknown Source)

at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(Unknown Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at javax.swing.JComponent.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

at java.awt.EventQueue.access$500(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)

at java.awt.EventQueue$4.run(Unknown Source)

at java.awt.EventQueue$4.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)


@023FK0NF(8349908)XH@[H.png


2017-01-02 19:54:04编辑
分享到:
精彩评论 1
David
学分:914 LV7
TA的每日心情
最后的冲刺
2017-07-15 10:46:08
2017-01-03
沙发

请读者核查自己的sqlserver数据库的版本与书中的是否一致。如果不一致,即使导入连接sqlserver数据库驱动jar包,也无法连接数据库。

首页上一页 1 下一页尾页 1 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照