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
Accessing a database on a Windows share
Patrick
2007-02-13 16:20:53
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
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
> /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
>> /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
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
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
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
 

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