JDBC Example HelloSapDB.java
"Kedl, Stefan (ext.)" <[email protected]> Wed, 19 Mar 2003 09:59:47 +0100
| Newsgroups | gmane.comp.db.sapdb.sources |
|---|---|
| Message-ID | <729BFA3EBCCAD51197960008C7A47FB30487B46D@ffz00za2.ffz00e.mail.dresdner.net> |
Hi! Running the HelloSapDB-Application i get the following exception: com.sap.dbtech.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Cannot connect to jdbc:sapdb://localhost/ITPP777L [Cannot connect to host localhost [Connection refused: connect], -813.]. at com.sap.dbtech.jdbc.DriverSapDB.connect(DriverSapDB.java:178) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at com.itplusplus.test.HelloSapDB.main(HelloSapDB.java:29) Exception in thread "main" Although there is no Problem connecting to the same database and the same user using SQLStudio I use jdk j2sdk1.4.1_02 and the current JDBC-Driver. I found an explanation for the error -831 but no entries in the file appldiag -831: File read error Explanation: A file could not be read. This may be a device failure. User Action: Check whether the file is available or the spelling of the filename is correct. For the exact error description, see the file appldiag . thanks s. kedl > Mit freundlichen GrüÃen > > Stefan Kedl Telefon: +49-69-263 1 07 75 > UB P&G Informationstechnologie Fax: +49-69-263 5 > 01 50 > Global Multikanal Services > Multikanal Daten > > BL.64, 2/D > 60301 Frankfurt am Main > > mailto:[email protected] > mailto:[email protected] > >