Hello,
I am using google sample code to integrate GWT and Hibernate ,https://developers.google.com/web-toolkit/articles/using_gwt_with_hibernate, i have used gilead for the integration
Here are the software i am using,
Gwt.2.4.0
Hibernate.3
HSQLDB2.2.8
When i am trying to store the data in database i am getting the following error
Parameter 0 of is of an unknown type 'com.google.musicstore.domain.Account/3669536145'.
Here is the trace
Code:
[java] 213 [btpool0-0] INFO org.hibernate.annotations.common.Version - Hibernate Commons Annotations 3.2.0.Final
[java] 222 [btpool0-0] INFO org.hibernate.cfg.Environment - Hibernate 3.6.10.Final
[java] 224 [btpool0-0] INFO org.hibernate.cfg.Environment - hibernate.properties not found
[java] 228 [btpool0-0] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist
[java] 233 [btpool0-0] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
[java] 324 [btpool0-0] INFO org.hibernate.cfg.Configuration - configuring from resource: /hibernate.cfg.xml
[java] 324 [btpool0-0] INFO org.hibernate.cfg.Configuration - Configuration resource: /hibernate.cfg.xml
[java] 389 [btpool0-0] WARN org.hibernate.util.DTDEntityResolver - recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead.
Refer to Hibernate 3.6 Migration Guide!
[java] 450 [btpool0-0] INFO org.hibernate.cfg.Configuration - Reading mappings from resource :com/google/musicstore/domain/Record.hbm.xml
[java] 507 [btpool0-0] WARN org.hibernate.util.DTDEntityResolver - recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead.
Refer to Hibernate 3.6 Migration Guide!
[java] 577 [btpool0-0] INFO org.hibernate.cfg.Configuration - Reading mappings from resource :com/google/musicstore/domain/Account.hbm.xml
[java] 583 [btpool0-0] WARN org.hibernate.util.DTDEntityResolver - recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead.
Refer to Hibernate 3.6 Migration Guide!
[java] 644 [btpool0-0] INFO org.hibernate.cfg.Configuration - Configured SessionFactory: null
[java] 729 [btpool0-0] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.google.musicstore.domain.Record -> PUBLIC.RECORD
[java] 804 [btpool0-0] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.google.musicstore.domain.Account -> PUBLIC.ACCOUNT
[java] 813 [btpool0-0] INFO org.hibernate.cfg.HbmBinder - Mapping collection: com.google.musicstore.domain.Account.records -> PUBLIC.ACCOUNT_RECORD
[java] 835 [btpool0-0] INFO org.hibernate.cfg.Configuration - Hibernate Validator not found: ignoring
[java] 855 [btpool0-0] INFO org.hibernate.cfg.search.HibernateSearchEventListenerRegister - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search
is not enabled.
[java] 868 [btpool0-0] INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
[java] 868 [btpool0-0] INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 2
[java] 868 [btpool0-0] INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false
[java] 878 [btpool0-0] INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:hsql://localhost/
[java] 878 [btpool0-0] INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=sa, password=****}
[java] 1212 [btpool0-0] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.HSQLDialect
[java] 1248 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Database ->
[java] name : HSQL Database Engine
[java] version : 2.2.8
[java] major : 2
[java] minor : 2
[java] 1248 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Driver ->
[java] name : HSQL Database Engine Driver
[java] version : 2.2.8
[java] major : 2
[java] minor : 2
[java] 1250 [btpool0-0] INFO org.hibernate.transaction.TransactionFactoryFactory - Using default transaction strategy (direct JDBC transactions)
[java] 1252 [btpool0-0] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-leve
l cache is not recommended)
[java] 1252 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
[java] 1252 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
[java] 1252 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - JDBC batch size: 15
[java] 1253 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
[java] 1253 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
[java] 1253 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled
[java] 1253 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: auto
[java] 1254 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Default schema: PUBLIC
[java] 1255 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
[java] 1255 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
[java] 1255 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
[java] 1255 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Order SQL inserts for batching: disabled
[java] 1255 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[java] 1257 [btpool0-0] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
[java] 1257 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions:{}
[java] 1257 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: disabled
[java] 1257 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
[java] 1257 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
[java] 1258 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
[java] 1262 [btpool0-0] INFO org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge -
Cache provider: org.hibernate.cache.NoCacheProvider
[java] 1263 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
[java] 1263 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cacheentries: disabled
[java] 1272 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Echoing all SQL to stdout
[java] 1273 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled
[java] 1273 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
[java] 1274 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
[java] 1274 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Named query checking : enabled
[java] 1274 [btpool0-0] INFO org.hibernate.cfg.SettingsFactory - Check Nullability in Core (should be disabled when Bean Validation is on): enabled
[java] 1306 [btpool0-0] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
[java] 1316 [btpool0-0] INFO org.hibernate.type.BasicTypeRegistry - Type registration [clob] overrides previous : org.hibernate.type.ClobType@397974eb
[java] 1316 [btpool0-0] INFO org.hibernate.type.BasicTypeRegistry - Type registration [java.sql.Clob] overrides previous : org.hibernate.type.ClobType@397974eb
[java] 1316 [btpool0-0] INFO org.hibernate.type.BasicTypeRegistry - Type registration [wrapper_materialized_blob] overrides previous : org.hibernate.type.WrappedMaterializedBlobType@54eb0dc7
[java] 1316 [btpool0-0] INFO org.hibernate.type.BasicTypeRegistry - Type registration [materialized_blob] overrides previous : org.hibernate.type.MaterializedBlobType@13d5af5f
[java] 1317 [btpool0-0] INFO org.hibernate.type.BasicTypeRegistry - Type registration [materialized_clob] overrides previous : org.hibernate.type.MaterializedClobType@31ec9025
[java] 1328 [btpool0-0] INFO org.hibernate.type.BasicTypeRegistry - Type registration [blob] overrides previous : org.hibernate.type.BlobType@21eb86be
[java] 1328 [btpool0-0] INFO org.hibernate.type.BasicTypeRegistry - Type registration [java.sql.Blob] overrides previous : org.hibernate.type.BlobType@21eb86be
[java] 1328 [btpool0-0] INFO org.hibernate.type.BasicTypeRegistry - Type registration [characters_clob] overrides previous : org.hibernate.type.PrimitiveCharacterArrayClobType@6ddb3557
[java] 1328 [btpool0-0] INFO org.hibernate.type.BasicTypeRegistry - Type registration [wrapper_characters_clob] overrides previous : org.hibernate.type.CharacterArrayClobType@528b1b19
[java] 1677 [btpool0-0] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
[java] 1706 [btpool0-0] INFO org.hibernate.tool.hbm2ddl.SchemaExport - Running hbm2ddl schema export
[java] 1707 [btpool0-0] INFO org.hibernate.tool.hbm2ddl.SchemaExport - exporting generated schema to database
[java] 1720 [btpool0-0] INFO org.hibernate.tool.hbm2ddl.SchemaExport - schema export complete
[java] GWT15
Help me to get out of this ,
Thanks
Rahul