`

java.sql.SQLException: Network error IOException:

阅读更多

java.sql.SQLException: Network error IOException: No buffer space available (maximum connections reached?): connect
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:372)
at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50)
at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at connect.connectna.getConnection(connectna.java:39)
at data.demand_passWord.dempassWord(demand_passWord.java:30)
at ui.Alter.keystoke1_actionPerformed(Alter.java:139)
at ui.Alter_keystoke1_actionAdapter.actionPerformed(Alter.java:178)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)

 

 

在项目中发现此问题

找了几种问题的可能

问题原因一: 有可能是你的jar驱动包没有导入或者导入了不兼容的jar包
问题原因二:   以前我在编程中也遇到过这样的问题.  就sqlServlet 的端口被用了.或者.你改下sql的端口号.再试下..
问题原因三:   数据库连接数达到最大,修改方法: 我的电脑右键,管理--》服务和应用程序--》点击数据库右键属性
我的报错原因,很妖,是因为几个账号远程登录,后台自动启动了一个tomcat进程,而自己手动启动时,老是报这个
错误!下次装tomcat注意不要自动启动了,我太阳
分享到:
评论
1 楼 jipengyun2008 2011-12-06  
查看一下连接数据库的ip配置

相关推荐

Global site tag (gtag.js) - Google Analytics