Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v2.1
  HXTT DBF v5.2
  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 ACCESS
SQLState 22000, Exception: "Please move the cursor to a data row first!"
Timo
2006-08-23 08:15:14.0
Today, i have bought a license for HXTT ACCESS. But when i execute following SQL92-compliant Statement

SELECT customerNumber , COUNT(*) AS FREQ FROM (SELECT * FROM Orders cn ) a GROUP BY customerNumber

i receive an Exception with the following text:
"Please move the cursor to a data row first!"

The Exception is thrown after this peace of code:
Statement = Connection.createStatement();

ResultSet = Statement.executeQuery(SQLString);

Any ideas? Any hints? Other SELECT-Statements work perfectly..
Re:SQLState 22000, Exception:
HXTT Support
2006-08-23 08:40:34.0
Passed test with the latest package.

What's your code?
You should call if(rs.next()){//Or while(rs.next()){
//... rs.getObject(...)
}

Orders table is a physical table or a view?
Re:Re:SQLState 22000, Exception:
Timo
2006-08-24 00:14:09.0
Hi,
thanks for your reply. The following code is not executed, the call:

rs = statement.executeQuery(sql);

isn't executed and fails with this exception :-(
"Orders" is a physical table, where customerNumber is INTEGER(4)
What else can I do? Thanks for your help

Greetings,
Timo
Re:Re:Re:SQLState 22000, Exception:
HXTT Support
2006-08-24 00:23:17.0
Failed to recur, please email us your mdb file sample. Thanks.
Re:Re:Re:Re:SQLState 22000, Exception:
HXTT Support
2006-08-24 00:25:37.0
You can use ftp service too:
ftp site: ftp.hxtt.com
ftp user: anonymous@hxtt.com
ftp password: (empty)
login mode: normal (not anonymous)
ftp port:21
upload directory: incoming
After upload, you can't see that upload file, but it has been upload.

then notify us.
Re:Re:Re:Re:Re:SQLState 22000, Exception:
Timo
2006-08-24 00:59:04.0
I've uploaded the MDB via FTP. The filename is "ClassicModels.mdb"
Here are my lines of code:

private java.sql.Connection Connection;
private java.sql.Statement Statement;

Connection=java.sql.DriverManager.getConnection(DBUrl, dbProps);
ConnectionTime=new Date();

Statement = Connection.createStatement();

/** Following call fails with my Statement **/
ResultSet = Statement.executeQuery(SQLString);


ResultSetPosition = 1;

MetaData = new ResultSetMetaData();

MetaData.setColumnCount(ResultSet.getMetaData().getColumnCount());


Other statements with the same code work perfectly. Thanks for help!
Timo
Re:Re:Re:Re:Re:Re:SQLState 22000, Exception:
HXTT Support
2006-08-24 02:19:13.0
Download and removed that mdb file from our server. Recurred. Thanks.
Re:Re:Re:Re:Re:Re:Re:SQLState 22000, Exception:
HXTT Support
2006-08-24 04:04:07.0
Supported. Please download the latest JDBC3.0 package. Thans for your help.

BTW,
>SELECT customerNumber , COUNT(*) AS FREQ FROM (SELECT * FROM Orders cn ) a GROUP BY customerNumber
The preferable sql is:
SELECT customerNumber, COUNT(*) FROM Orders a GROUP BY customerNumber
Re:Re:Re:Re:Re:Re:Re:Re:SQLState 22000, Exception:
Timo
2006-08-24 05:32:00.0
Perfect! It works now, thank you. Great support :-) The SELECT Statement is auto-generated by an application.

BTW: I use this Driver with RMI. If a table has a DATE Column, this column is not serializable over RMI. On the client, i get an exception: Class not found: com.hxtt.global.q But if i add the JAR to the CLIENT Classpath (the SERVER does all the DB work) it works perfectly. Using other JDBC Drivers (Oracle, DB2, SQL Server,..) it is not necessary to add the JDBC Jars into the CLIENT-Classpath.

Greetings from Germany,
Timo
Re:Re:Re:Re:Re:Re:Re:Re:SQLState 22000, Exception:
HXTT Support
2006-08-24 06:55:32.0
>BTW: I use this Driver with RMI.HXTT Access supports RMIServer mode, but it's slower. HXTT Access uses always quicker TCPserver mode for remote access.

> If a table has a DATE Column, this column is >not serializable over RMI.
>On the client, i get an exception: Class not found: com.hxtt.global.q But if i add the JAR to the CLIENT Classpath (the SERVER does all the DB work) it works perfectly.
>Using other JDBC Drivers (Oracle, DB2, SQL Server,..) it is not necessary to add the JDBC Jars into the CLIENT-Classpath.
You can use Access_Remote_Access_JDBC30.jar at client side when Access_JDBC.jar is using at server side. You need to use Access_Remote_Access_JDBC30.jar and Access_JDBC.jar which are compiled at the same date.




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