国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

JDBC Error establishing socket 我的心得

2019-11-18 14:00:09
字體:
來源:轉載
供稿:網友

很多朋友碰到過:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSConnection.(Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at ldg.Quotation.InitDataConn(Quotation.java:374)
at ldg.Quotation.jbInit(Quotation.java:367)
at ldg.Quotation.(Quotation.java:147)
at ldg.spmk.jButton1_actionPerformed(spmk.java:76)
at ldg.spmk_jButton1_actionAdapter.actionPerformed(spmk.java:101)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPRessed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(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.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)
這類錯誤
我也碰到同樣問題,打了sql server SP3包后仍然不起作用,后來發現Connection con=DriverManager.getConnection("jdbc:microsoft:sqlserver://server_name:1433","userName","passWord");
其中server_name用的是局域網ip,通過公網不能訪問,我嘗試改成公網可以訪問的靜態IP,當然數據庫就裝在這機器上,就可以了。
蒯正建 kennykuai@tom.com 歡迎分享討論

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 夏河县| 湘乡市| 阳城县| 思茅市| 青岛市| 武功县| 新巴尔虎左旗| 丹凤县| 龙口市| 祁连县| 东港市| 蕲春县| 习水县| 乌拉特后旗| 盐源县| 深泽县| 自贡市| 清丰县| 桃园市| 财经| 赤水市| 金华市| 舒城县| 丰顺县| 七台河市| 曲阳县| 蛟河市| 靖江市| 正安县| 沁源县| 富平县| 大埔区| 顺义区| 兴城市| 九台市| 天柱县| 杨浦区| 什邡市| 卓资县| 彰化县| 汤原县|