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
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  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 Text(CSV)
Too strict date formatting
Martin Ross
2006-02-11 00:00:00
For date item like the following from a CSV file

TranID,PostDate,Description,Debit,Credit
8,2006-2-1,MFEE16244350013 MSP,,287.77

this causes

Caused by: java.sql.SQLException: Correct date format: 'yyyy-mm-dd', 'hh:mm:ss' and `yyyy-mm-dd hh:mm:ss.f...', but you have used '[B@1a6b16f'!
at com.hxtt.global.SQLState.SQLException(Unknown Source)
at com.hxtt.global.ah.do(Unknown Source)
at com.hxtt.global.ah.a(Unknown Source)
at com.hxtt.global.ah.a(Unknown Source)
at com.hxtt.global.ae.do(Unknown Source)
at com.hxtt.global.ae.if(Unknown Source)
at com.hxtt.sql.b8.getTimestamp(Unknown Source)
at com.hxtt.sql.b8.getTimestamp(Unknown Source)
at org.hibernate.type.TimestampType.get(TimestampType.java:30)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:113)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:102)
at org.hibernate.type.AbstractType.hydrate(AbstractType.java:81)
at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:1899)
at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1372)
at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1300)
at org.hibernate.loader.Loader.getRow(Loader.java:1197)
at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:569)
at org.hibernate.loader.Loader.doQuery(Loader.java:689)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
at org.hibernate.loader.Loader.doList(Loader.java:2145)
... 10 more
Re:Too strict date formatting
HXTT Support
2006-02-11 00:00:00
All of HXTT JDBC drivers have supported that now. Thanks for your requirement.
Re:Re:Too strict date formatting
HXTT Support
2006-05-10 21:51:20
The latest Hibernate support package is at here.

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 | Refund | Sitemap