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
Issue with Access driver
DENTY
2008-05-06 05:07:57.0
Hi,

First Avast antivirus tells me that your package contains a virus in the JET4 file : MA97:ColOver [Expl]

Second,
I tried Access JDBC driver with your Dialect and, for the same project, if I use MySQL or HSQLDB the schemas are created at start up. But with your driver the code simply fails :
Hibernate: insert into BankBO (id, version, bankId, bankLogo, bankName) values (null, ?, ?, ?, ?)
Exception in thread "main" org.hibernate.exception.GenericJDBCException: could not insert: [com.tessi.bospilotage.businessObjects.BankBO]
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:40)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2158)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2638)
at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:48)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:298)
at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:495)
at com.tessi.persistance.bo.BOGenericDAO.save(BOGenericDAO.java:291)
at com.tessi.persistance.bo.BOGenericDAO.save(BOGenericDAO.java:238)
at com.tessi.bospilotage.businessObjects.BankBO.main(BankBO.java:221)
Caused by: java.sql.SQLException: Failed to find table BankBO in database capture1
at com.hxtt.global.SQLState.SQLException(Unknown Source)
at com.hxtt.sql.access.l.a(Unknown Source)
at com.hxtt.sql.access.ao.a(Unknown Source)
at com.hxtt.concurrent.x.a(Unknown Source)
at com.hxtt.sql.access.a2.a(Unknown Source)
at com.hxtt.sql.access.r.a(Unknown Source)
at com.hxtt.sql.bm.if(Unknown Source)
at com.hxtt.sql.bm.a(Unknown Source)
at com.hxtt.sql.de.a(Unknown Source)
at com.hxtt.sql.bm.a(Unknown Source)
at com.hxtt.sql.bm.a(Unknown Source)
at com.hxtt.sql.ag.a(Unknown Source)
at com.hxtt.sql.dg.char(Unknown Source)
at com.hxtt.sql.dg.executeUpdate(Unknown Source)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeUpdate(NewProxyPreparedStatement.java:105)
at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:73)
at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:33)
... 17 more

Re:Issue with Access driver
HXTT Support
2008-05-08 07:13:01.0
>First Avast antivirus tells me that your package contains a virus in the JET4 file >: MA97:ColOver [Expl]
It's a wrong warning report. You can unzip that JET file and rename it to jet4.mdb file. It's a normal file, but some Avast version will report wrongly.

>Caused by: java.sql.SQLException: Failed to find table BankBO in database capture1
Please check whether there's a bankBo table in capture1.mdb file.
Re:Re:Issue with Access driver
DENTY
2008-05-13 00:14:23.0
Ok it is a false warning : that all I can say to my customer ?

The bankBO does not exists since I want that Hibernate create it for me as it does with the same code with HSQLDB and MySQL.

Regards,

--Marc
Re:Re:Re:Issue with Access driver
HXTT Support
2008-05-15 01:30:20.0
>Ok it is a false warning : that all I can say to my customer ?
If you haven't used CREATE DATBASE sql, you can remove that JET4 file from that jar file through winzip or other zip tool.

>The bankBO does not exists since I want that Hibernate create it for me as it does >with the same code with HSQLDB and MySQL.
Then you should use create table sql to create that table first.

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