AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem Connecting to Oracle from JRE 1.5.0_01

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases
View previous topic :: View next topic  
Author Message
Tobias Besch
Guest





PostPosted: Fri Jan 21, 2005 7:54 am    Post subject: Problem Connecting to Oracle from JRE 1.5.0_01 Reply with quote



My Java application accesses an Oracle database via JDBC.
The Connection is established by the getConnection() method of a
OracleDataSource object.
This worked fine on all PCs with JRE 1.4.2.
With JRE 1.5.0_01 it doesn't work on some PCs while it still does on
most.
On those PCs where it doesn't work with JRE 1.5.0_01 it still does
work with JRE 1.4.2.
Where it doesn't work with JRE 1.5.0_01 the following SQLException is
thrown:

java.sql.SQLException: E/A-Exception: 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:334)
at oracle.jdbc.ttc7.TTC7Protocol.handleIOException
(TTC7Protocol.java:3649)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:353)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:368)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance
(OracleDriver.java:549)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:349)
at oracle.jdbc.pool.OracleDataSource.getConnection
(OracleDataSource.java:169)
at oracle.jdbc.pool.OracleDataSource.getConnection
(OracleDataSource.java:105)
at bdv2.components.sqlutilities.ConnParam.getConnection
(ConnParam.java:143)
at bdv2.menu.BdvMenu.connect(BdvMenu.java:145)
at bdv2.menu.BdvMenu.<init>(BdvMenu.java:118)
at bdv2.menu.BdvMenu.main(BdvMenu.java:137)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


Any suggestions?

Cheers,
Tobias
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.