Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  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 Paradox
Accessing to Paradox from AS400 machine
Nalesso Antonio
2007-07-19 00:28:17.0
Good , morning ... I am trying to connect from an AS400 machine to a Paradox database .... to do this I use drive insert in Paradox_JDBC30.jar.
If I run the application in my Pc via Eclipse interface all is ok.
If I try to run from As400 I get this error : java.sql.SQLException: //192.168.20.9/SVRSictess/Dati doesn't exist!

This is the way in which I set up URL :
private String dbURL = "jdbc:paradox://///192.168.20.9/SVRSictess/Dati";
private String JDBCDriver = "com.hxtt.sql.paradox.ParadoxDriver";
conn = DriverManager.getConnection(dbURL, "", "");

Someone have some suggestion for me ?
There is some possibility to discover more about origin of that error ?

Thank a lot

Nalesso Antonio
Italy
Re:Accessing to Paradox from AS400 machine
HXTT Support
2007-07-19 04:25:40.0
1. Try JDBC url:
jdbc:access:/\\192.168.20.9\SVRSictess/Dati
In Java code, you can should use two \\ for every \.

2. Try SAMBA url to skip security issue.
Re:Re:Accessing to Paradox from AS400 machine
Nalesso Antonio
2007-07-19 05:22:52.0
Thanks for answer ....
It's not possible specify an URL with \ for this it's considered like a particular Escape , like in C language. So it result impossible create .class file.
About Samba , I don't find any documentation that this is supported by IBM in AS400, so I prefere not
What it's strange it that from a common Pc all function well ....
If it was related to some authority problem ... I hope that message will be differente or not ?
Thanks
Nalesso Antonio
Re:Re:Re:Accessing to Paradox from AS400 machine
HXTT Support
2007-07-19 05:48:49.0
>It's not possible specify an URL with \ for this it's considered like a particular
> Escape , like in C language. So it result impossible create .class file.
Two \\ can be used to specify a \, for instance jdbc:access:/\\192.168.20.9\SVRSictess\Dati should be
jdbc:access:/\\\\192.168.20.9\\SVRSictess\\Dati in Java code.

You can use the code to prove whether it's a security issue:

import java.io.*;

public class testDir {
public testDir() {
}

public static void main(String[] args) {
try{
String fileName="//192.168.20.9/SVRSictess/Dati ";
File file=new File(fileName);
System.out.println(fileName);
System.out.println("isDirectory: "+file.isDirectory());
System.out.println("isFile: "+file.isFile());
System.out.println("exists: "+file.exists());
}catch(Exception ioe){
System.out.println(ioe);
}
}
}

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