当前位置: 代码迷 >> Java Web开发 >> 帮忙给看一个java访问oracle的异常
  详细解决方案

帮忙给看一个java访问oracle的异常

热度:164   发布时间:2016-04-17 00:16:24.0
帮忙给看一个java访问oracle的错误
SQLState: null

Message: Io 异常: The Network Adapter could not establish the connection

ErrorCode: 17002

booking version 1.01 2003-08-07

SQLState: null

Message: Io 异常: The Network Adapter could not establish the connection

ErrorCode: 17002

booking version 1.01 2003-08-07

SQLState: null

Message: Io 异常: The Network Adapter could not establish the connection

ErrorCode: 17002

booking version 1.01 2003-08-07

java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)

at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)

at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)

at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)

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

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

at cn.diny.ads.sysconf.CategoryPanel.dataInit(CategoryPanel.java:204)

at cn.diny.ads.sysconf.CategoryFieldPane.<init>(CategoryFieldPane.java:60)

at cn.diny.ads.sysconf.CategoryField.jbInit(CategoryField.java:25)

at cn.diny.ads.sysconf.CategoryField.init(CategoryField.java:18)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)

at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)

at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)

at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)

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

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

at cn.diny.ads.sysconf.FieldPanel.initCategory(FieldPanel.java:361)

at cn.diny.ads.sysconf.FieldPanel.dataInit(FieldPanel.java:379)

at cn.diny.ads.sysconf.CategoryFieldPane.stateChanged(CategoryFieldPane.java:67)

at javax.swing.JTabbedPane.fireStateChanged(Unknown Source)

at javax.swing.JTabbedPane$ModelListener.stateChanged(Unknown Source)

at javax.swing.DefaultSingleSelectionModel.fireStateChanged(Unknown Source)

at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(Unknown Source)

at javax.swing.JTabbedPane.setSelectedIndexImpl(Unknown Source)

at javax.swing.JTabbedPane.setSelectedIndex(Unknown Source)

at javax.swing.plaf.basic.BasicTabbedPaneUI$MouseHandler.mousePressed(Unknown Source)

at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)

at java.awt.Component.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.Component.dispatchEvent(Unknown Source)
  相关解决方案