Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  Buy Now
  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 Excel
Eduardo M��ndez
2009-04-16 10:13:01.0
I have succesfully configure Adobe Livecycle Dataservices with the Excel driver. SELECT's, INSERT's and DELETE's work fine but UPDATE's don't.

I have configured the Hibernate Excel Dialect as per your instructions and when I update something I always get:

FOR UPDATE has been used but your connection is in readonly mode.

Any clue?.



exception: org.hibernate.exception.SQLGrammarException: could not load an entity: [test.Company#4]
at org.hibernate.exception.SQLStateConverter.convert(
at org.hibernate.exception.JDBCExceptionHelper.convert(
at org.hibernate.loader.Loader.loadEntity(
at org.hibernate.loader.entity.AbstractEntityLoader.load(
at org.hibernate.loader.entity.AbstractEntityLoader.load(
at org.hibernate.persister.entity.AbstractEntityPersister.load(
at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(
at org.hibernate.event.def.DefaultLoadEventListener.doLoad(
at org.hibernate.event.def.DefaultLoadEventListener.load(
at org.hibernate.event.def.DefaultLoadEventListener.lockAndLoad(
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(
at org.hibernate.impl.SessionImpl.fireLoad(
at org.hibernate.impl.SessionImpl.get(
at org.hibernate.impl.SessionImpl.get(
at flex.messaging.MessageBroker.routeMessageToService(
at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(
at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(
at flex.messaging.endpoints.amf.LegacyFilter.invoke(
at flex.messaging.endpoints.amf.SessionFilter.invoke(
at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(
at flex.messaging.endpoints.amf.SerializationFilter.invoke(
at flex.messaging.endpoints.BaseHTTPEndpoint.service(
at flex.messaging.MessageBrokerServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11Processor.process(
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(
at org.apache.tomcat.util.threads.ThreadPool$
Caused by: java.sql.SQLException: FOR UPDATE has been used but your connection is in readonly mode.
at Source)
at Source)
at Source)
at Source)
at Source)
at com.hxtt.sql.dg.executeQuery(Unknown Source)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(
at org.hibernate.jdbc.AbstractBatcher.getResultSet(
at org.hibernate.loader.Loader.getResultSet(
at org.hibernate.loader.Loader.doQuery(
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(
at org.hibernate.loader.Loader.loadEntity(
... 45 more
Re:FOR UPDATE clause
Eduardo M��ndez
2009-04-16 10:15:46.0
I forgot to include the statement that Hibernate is generating:

Hibernate: select as id0_0_, as name0_0_ from company company0_ where for update

Re:Re:FOR UPDATE clause
HXTT Support
2009-04-16 18:23:26.0
It's limited by a readonly connection. You can remove For Update clause or use connection.createStatement(ResultSet.CONCUR_UPDATABLE,....)
Re:Re:FOR UPDATE clause
HXTT Support
2009-04-16 18:27:02.0
Since you're using PreparedStatement, you should use conneciton.prepearStatement(sql, ResultSet.CONCUR_UPDATABLE,....)
Re:FOR UPDATE clause
Eduardo M��ndez
2009-04-16 22:28:49.0
Thanks for answering but I'm not using PreparedStatement directly (Hibernate does) so it has to be something in Hibernate's configuration. For the same reason, I can't remove the FOR UPDATE clause (Hibernate generates it).
Re:Re:Re:Re:Re:FOR UPDATE clause
HXTT Support
2009-04-20 06:46:32.0
Please download the latest package, which allows FOR UPDATE clause to get an Updatable ResultSet from a read only connection now.
Re:FOR UPDATE clause
Eduardo M��ndez
2009-04-20 07:16:24.0
I'll do but, in the meantime, I have modified your hibernate dialect with:

public String getForUpdateString()
return "";

So far, seems to work fine.

Search Key   Search by Last 50 Questions


Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap