Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v6.1
  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 DBF
Error dialect DBF
Guilherme
2012-03-29 10:02:49.0
Hi, I'm using EJB 3 in jboss 7 like bellow :

persistence.xml
...





and I get this error bellow :

Caused by: java.lang.NoSuchMethodError: com.hxtt.support.hibernate.HxttDbfDialect.registerColumnType(IILjava/lang/String;)V
at com.hxtt.support.hibernate.HxttDbfDialect.(HxttDbfDialect.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [classes.jar:1.6.0_29]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [classes.jar:1.6.0_29]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [classes.jar:1.6.0_29]
at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [classes.jar:1.6.0_29]
at java.lang.Class.newInstance0(Class.java:355) [classes.jar:1.6.0_29]
at java.lang.Class.newInstance(Class.java:308) [classes.jar:1.6.0_29]
at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.constructDialect(DialectFactoryImpl.java:73)
at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:64)
at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:148)
at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735)
at org.hibernate.ejb.EntityManagerFactoryImpl.(EntityManagerFactoryImpl.java:84)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]


can you help me ?

thanks,
Re:Error dialect DBF
HXTT Support
2012-03-30 01:52:51.0
Please check your hibernate version. There're two hibernate support package for Hibernate version(one for 3.6 to 4.X , and another for 3 to 3.5.X) at http://www.hxtt.com/hibernate.html . You can compile source code and compile it too.
Re:Re:Error dialect DBF
Guilherme
2012-03-30 04:34:47.0
thanks for answering, my version hibernate is 4.0.1.Final, is coming in jboss 7.
What I did :
- I did download at "Download HXTT's hibernate support package for Hibernate version from 3.6 to 4.X" , put the jar in my folder /lib and my persistence.xml
- I added property name="hibernate.dialect" value="com.hxtt.support.hibernate.HxttDbfDialect".
- Starting jboss i get error : Caused by: java.lang.NoSuchMethodError: com.hxtt.support.hibernate.HxttDbfDialect.registerColumnType(IILjava/lang/String;)V

The funny is that in persistence.xml if i change name="hibernate.dialect" value="com.hxtt.support.hibernate.HxttDbfDialect" for name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" it's worked

Do you have any idea what could be ?
Re:Re:Re:Error dialect DBF
HXTT Support
2012-04-02 02:38:22.0
Failed to recur your issue. You can try to compile directly com.hxtt.support.hibernate.HxttDbfDialect since there's source code too. If your issue exists still, please email us your persistence sample.
Re:Re:Re:Re:Error dialect DBF
Guilherme
2012-04-02 06:43:35.0
it's worked now.

Thanks,

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