Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
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
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT DBF
Accessing a database on a Windows share
Patrick
2007-02-13 16:20:53.0
Hi,
I'm trying to access a Visual Foxpro DBC database from a Windows shared folder. I have it mounted under Linux as /mnt/apps/Hydra/DsysTest/Vbn using this line from /etc/fstab:

//10.10.10.2/apps /mnt/apps cifs
username=XXX,password=XXX,uid=0,gid=500,mod=777

A ls -l /mnt/apps/Hydra/DsysTest/Vbn gives:

-rwxrwSrwt 1 root patrick 14203467 Aug 3 2006 vista.dbc
...

I'm running my program as root (for now). When I run it it gives me this error:

java.sql.SQLException: /mnt/apps/Hydra/DsysTest/Vbn/; doesn't exist or can't be accessed!

Given that I am running as the appropriate user with RW permissions and can list the directory contents using ls why is the HXTT code giving an error?

The SecurityManager the Java program is running under also has the following line which is too generous but seems like it should work:

grant codeBase "file:deps/hxtt-dbf.jar"
{
permission java.security.AllPermission;
};
Re:Accessing a database on a Windows share
Patrick
2007-02-13 16:28:02.0
I should have posted the full exception earlier. Here it is:

java.sql.SQLException: /mnt/apps/Hydra/DsysTest/Vbn/; doesn't exist or can't be accessed!
at com.hxtt.global.SQLState.SQLException(Unknown Source)
at com.hxtt.sql.bm.a(Unknown Source)
at com.hxtt.sql.bm.a(Unknown Source)
at com.hxtt.sql.dbf.u.(Unknown Source)
at com.hxtt.sql.dbf.EmbeddedDriver.connect(Unknown Source)
at com.hxtt.global.SQLState.getConnection(Unknown Source)
at com.hxtt.sql.HxttDriver.if(Unknown Source)
at com.hxtt.sql.HxttDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at com.vanbelle.hyrdra.dsys.server.Application.(Application.java:61)
at com.vanbelle.hyrdra.dsys.server.Application.instance(Application.java:100)
at com.vanbelle.hyrdra.dsys.server.Application.main(Application.java:93)

Also, do most people trying to use the HXTT DBF driver use the JCIFS Java library or the built-in Linux SAMBA support?
Re:Re:Accessing a database on a Windows share
HXTT Support
2007-02-13 16:30:33.0
> /mnt/apps/Hydra/DsysTest/Vbn/;
What's your jdbc url? It seemsn that there's /; after Vbn?
Re:Re:Re:Accessing a database on a Windows share
Patrick
2007-02-13 16:36:24.0
>> /mnt/apps/Hydra/DsysTest/Vbn/;
> What's your jdbc url? It seemsn that there's /; after Vbn?

Its a Visual FoxPro DBC database.

/mnt/apps/Hydra/DsysTest/Vbn/Vista.dbc

I've tried with and without the trailing / and it returns the same error either way.
Re:Re:Re:Re:Accessing a database on a Windows share
Patrick
2007-02-13 16:39:19.0
Actually, the vista is lowercase. It should be

/mnt/apps/Hydra/DsysTest/Vbn/vista.dbc

Does the HXTT driver change the case anywhere?
Re:Re:Re:Re:Re:Accessing a database on a Windows share
HXTT Support
2007-02-13 16:53:29.0
On Linux/Unix, path is case sensitive.

You can try:
jdbc:dbf:////mnt/apps/Hydra/DsysTest/Vbn

Re:Re:Re:Re:Re:Re:Accessing a database on a Windows share
Patrick
2007-02-14 08:08:43.0
I found the problem.

Somehow I got a trailing semicolon in the path. Now that I look at the error message I see the semicolon there too...

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap