Hi,
I currently write a Java application with Hibernate to run on Oracle Lite 10
Hibernate version: 3.1
My code works fine on an Oracle 9 or 10 with thin and Oracle9Dialect.
With Oracle lite, every time I perform a read, the following exception is thrown. I get the information I need and the program goes on. Since the Oracle Lite driver is not the same, I suspect the problem to be a dialect problem.
If this a driver problem, wil there be a new dialect added soon?
As you can tell both driver are not the same nor the same jar.
Quote:
<entry key="DBDriver" value= "oracle.jdbc.driver.OracleDriver"/>
<entry key="DBDriver" value= "oracle.lite.poljdbc.POLJDBCDriver"/>
Log:
Code:
Hibernate: select lot0_.LOT_NUM as LOT1_, lot0_.LOT_TTVA as LOT2_, lot0_.LOT_OPE_PHAS as LOT3_, lot0_.LOT_SLOT as LOT4_, lot0_.LOT_OPE_CODE as LOT5_, lot0_.LOT_MAND as LOT6_11_, lot0_.LOT_TITU as LOT7_11_, lot0_.LOT_LIBE as LOT8_11_, lot0_.LOT_MHT as LOT9_11_, lot0_.LOT_MTTC as LOT10_11_, lot0_.LOT_MAR_NUM as LOT11_11_, lot0_.LOT_DVTE as LOT12_11_, lot0_.LOT_DVTG as LOT13_11_, lot0_.LOT_ST_TOTAL_AVOS as LOT14_11_, lot0_.LOT_ST_MAND as LOT15_11_, lot0_.LOT_MAR_VBMAR as LOT16_11_, lot0_.LOT_NATP as LOT17_11_, lot0_.LOT_STR as LOT18_11_, lot0_.LOT_VALI as LOT19_11_, lot0_.LOT_STAT as LOT20_11_, lot0_.LOT_UMC as LOT21_11_ from LOT lot0_ where lot0_.LOT_OPE_CODE=? and lot0_.LOT_OPE_PHAS=?
exception clearing maxRows/queryTimeout
java.sql.SQLException: [ODBC S1C00] driver not capable of this operation
at oracle.lite.poljdbc.LiteEmbStatement.jniGetStmtOptionInt(Native Method)
at oracle.lite.poljdbc.LiteEmbStatement.getOption(Unknown Source)
at oracle.lite.poljdbc.POLJDBCStatement.getQueryTimeout(Unknown Source)
at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:205)
at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:143)
at org.hibernate.loader.Loader.doQuery(Loader.java:433)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:218)
at org.hibernate.loader.Loader.doList(Loader.java:1593)
at org.hibernate.loader.Loader.list(Loader.java:1577)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:395)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:271)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:844)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
at fr.derbi.vopr.bdd.DBFacade.findAllInCurrentOperation(DBFacade.java:125)
at fr.derbi.vopr.bdd.DBFacade.findAllInCurrentOperation(DBFacade.java:95)
at fr.derbi.vopr.bdd.User.setCurrentOperation(User.java:110)
at fr.derbi.vopr.ui.builder.MainBuilder$1.run(MainBuilder.java:152)
at java.lang.Thread.run(Unknown Source)