Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  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
  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 ACCESS
Issue with Access driver
DENTY
2008-05-06 05:07:57
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
>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
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
>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
 

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