Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  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 Paradox
Accessing to Paradox from AS400 machine
Nalesso Antonio
2007-07-19 00:28:17
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
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
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
>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
 

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