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
Error in getDate() with client/server mode.
Steven Kouri
2008-05-29 11:21:36
When retrieving a date using the ResultSet.getDate() method, I found that sometimes, my date was off by one day. If I expected 2008-04-01, it would return 2008-03-31. This did not occur for every row I read though.

In production mode, I will be going across networks, so I was using the remote access mode for testing:
jdbc:dbf://localhost:3099/c:/work/cnecs/database/data/

However, if I change the URL to the following, then the dates come back correctly:
jdbc:dbf:/c:/work/cnecs/database/data/

Could this be a Java serialization problem? Can you please look at this and see if it is possible to fix?

Thanks,
Steve
Re:Error in getDate() with client/server mode.
Steven Kouri
2008-05-29 11:38:42
A co-worker helped me solve my problem.

My server side was running under 1.6 JVM. My client side was 1.4 JVM. It appears they are not necessarily backwards compatible.
Re:Re:Error in getDate() with client/server mode.
HXTT Support
2008-05-29 23:22:29
Your server side and client side should be on different time zone.

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