Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT DBF
HXTT Remote Access
Joval J��nior
2007-05-14 11:50:59
Hi,

I'm with a problem when I configure a DBF server on my machine.
My files (DBF) are on directory d:\dbf. I follow all the steps on the tutorial (http://www.hxtt.com/dbf/advanced.html#daemon) to do the service for hxtt service, it starts ok, but when i try to connect to the server I get the message:

java.sql.SQLException: Failed to connect to remote database: java.sql.SQLException: A remote server without expectable version on port 8029of localhost/127.0.0.1.

This is the code of my application of test:

import java.sql.*;

public class AcessaDBF {

public static void main(String[] args) {
try {
String conexao = "com.hxtt.sql.dbf.DBFDriver";
Class.forName(conexao).newInstance();
String url = "jdbc:dbf://localhost:8029/D:/DBF";

String sql = "SELECT PLA_NMDESC FROM MEDPLA ORDER BY PLA_NMDESC";

Connection conn = DriverManager.getConnection(url);

Statement stmt = conn.createStatement();

ResultSet rs = stmt.executeQuery(sql);

while (rs.next()) {
String coluna = rs.getString("PLA_NMDESC");
System.out.println(coluna);
}

rs.close();
stmt.close();

conn.close();

} catch (Exception e) {
System.out.println("Oops-> " + e);
}
}

}

This is the content of my file urlconfig.properties:

#
#Mon May 14 15:34:20 GMT-03:00 2007
medsys_autorun=false
medsys_log=false
medsys=jdbc\:dbf\:/d\://dbf

I'm using the version 3.0 of the DBF jar.

Please, help-me...

Thanks and Regards,

Joval J������nior
Re:HXTT Remote Access
HXTT Support
2007-05-14 17:29:22
>A remote server without expectable version on port 8029of localhost/127.0.0.1.
Are you using the same package at the server side and client side?

>medsys_autorun=false
>medsys_log=false
>medsys=jdbc\:dbf\:/d\://dbf
It should be:
medsys_autorun=true
medsys_log=false
medsys=jdbc\:dbf\:localhost\:8029//D\:/DBF

You can read DBAdmin to start and test a remote service through GUI first, then use service mode.

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap