国产探花免费观看_亚洲丰满少妇自慰呻吟_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 歡迎分享討論

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 杨浦区| 云梦县| 武邑县| 阿坝县| 沛县| 双桥区| 香河县| 长治市| 东台市| 镇沅| 贺州市| 五寨县| 衡山县| 南召县| 贵港市| 六枝特区| 崇州市| 屏南县| 乌鲁木齐县| 龙胜| 丘北县| 师宗县| 建湖县| 横山县| 肇庆市| 麻江县| 浦东新区| 甘泉县| 辽阳县| 玉门市| 永康市| 揭东县| 延长县| 旺苍县| 中江县| 松原市| 蕲春县| 兴业县| 仲巴县| 吴旗县| 锦屏县|