Back Forum Reply New

Not fetching data from DB using hibernat ,spring frame work

.TcpWorkerThread.runIt(P  oolTcpEndpoint.java:577)at org.apache.tomcat.util.threads.ThreadPool$ControlR  unnable.run(ThreadPool.java:683)at java.lang.Thread.run(Thread.java:595)Please help me on this...

See my answer in your other thread.

Regards,
Andreas

Hi Thanx for the sugestion...i fixed the problem.. But now am facing another one..i can retrieve value but it showing the object .. not getting the value presevt in the table..

getting error like..

..........INSIDE CONTROLLER.....
...........INSIDE ListAllApartmentsServiceImpl
Sep 1, 2006 3:33:52 PM org..jdbc.datasource.DriverManagerD  ataSource setDriverClassName
INFO: Loaded JDBC driver: com.mysql.jdbc.Driver
Sep 1, 2006 3:33:52 PM org.hibernate.cfg.Environment lt;clinitgt;
INFO: Hibernate 3.1 rc3
Sep 1, 2006 3:33:52 PM org.hibernate.cfg.Environment lt;clinitgt;
INFO: hibernate.properties not found
Sep 1, 2006 3:33:52 PM org.hibernate.cfg.Environment lt;clinitgt;
INFO: using CGLIB reflection optimizer
Sep 1, 2006 3:33:52 PM org.hibernate.cfg.Environment lt;clinitgt;
INFO: using JDK 1.4 java.sql.Timestamp handling
Sep 1, 2006 3:33:53 PM org.hibernate.cfg.Configuration addFile
INFO: Reading mappings from file: /opt/jakarta-tomcat-4.1.31/webapps/tides/WEB-INF/classes/map/ListApartments.hbm.xml
Sep 1, 2006 3:33:55 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.oceanus.tides.model.listallapartments.ListApar  tments -gt; apartments
Sep 1, 2006 3:33:55 PM org..orm.hibernate3.LocalSessionFac  toryBean afterPropertiesSet
INFO: Building new Hibernate SessionFactory
Sep 1, 2006 3:33:55 PM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing extends queue
Sep 1, 2006 3:33:55 PM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing collection mappings
Sep 1, 2006 3:33:55 PM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing association property references
Sep 1, 2006 3:33:55 PM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing foreign key constraints
Sep 1, 2006 3:33:56 PM org.hibernate.connection.ConnectionProviderFactory newConnectionProvider
INFO: Initializing connection provider: org..orm.hibernate3.LocalDataSource  ConnectionProvider
Sep 1, 2006 3:33:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: RDBMS: MySQL, version: 5.0.18
Sep 1, 2006 3:33:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.0.9-stable ( $Date: 2003/10/02 15:36:12 $, $Revision: 1.27.2.25 $ )
Sep 1, 2006 3:33:58 PM org.hibernate.dialect.Dialect lt;initgt;
INFO: Using dialect: org.hibernate.dialect.MySQLDialect
Sep 1, 2006 3:33:58 PM org.hibernate.transaction.TransactionFactoryFactor  y buildTransactionFactory
INFO: Using default transaction strategy (direct JDBC transactions)
Sep 1, 2006 3:33:58 PM org.hibernate.transaction.TransactionManagerLookup  Factory getTransactionManagerLookup
INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch size: 15
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch updates for versioned data: disabled
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: enabled
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): enabled
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: on_close
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Maximum outer join fetch depth: 2
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
Sep 1, 2006 3:33:58 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory lt;initgt;
INFO: Using ASTQueryTranslatorFactory
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory createCacheProvider
INFO: Cache provider: org.hibernate.cache.EhCacheProvider
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
Sep 1, 2006 3:33:58 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: POJO
Sep 1, 2006 3:33:58 PM org.hibernate.impl.SessionFactoryImpl lt;initgt;
INFO: building session factory
Sep 1, 2006 3:33:58 PM net.sf.ehcache.config.Configurator configure
WARNING: No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/opt/jakarta-tomcat-4.1.31/webapps/tides/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
Sep 1, 2006 3:34:01 PM org.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: Not binding factory to JNDI, no JNDI name configured
Sep 1, 2006 3:34:01 PM org.hibernate.impl.SessionFactoryImpl checkNamedQueries
INFO: Checking 0 named HQL queries
Sep 1, 2006 3:34:01 PM org.hibernate.impl.SessionFactoryImpl checkNamedQueries
INFO: Checking 0 named SQL queries
Sep 1, 2006 3:34:01 PM org..beans.factory.xml.XmlBeanDefin  itionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [org//jdbc/support/sql-error-codes.xml]
Sep 1, 2006 3:34:01 PM org..jdbc.support.SQLErrorCodesFact  ory lt;initgt;
INFO: SQLErrorCodes loaded: [DB2, HSQL, MS-SQL, MySQL, Oracle, Informix, PostgreSQL, Sybase]
.......................LiSt[com.oceanus.tides.model.listallapartments.ListApar  tments@1d1c3cd, com.oceanus.tides.model.listallapartments.ListApar  tments@162d950]
Elementscom.oceanus.tides.model.listallapartments.  ListApartments@1d1c3cd
Elementscom.oceanus.tides.model.listallapartments.  ListApartments@162d950
.........size......

here  actuall value is abc and cfg but am getting value :
Elementscom.oceanus.tides.model.listallapartments.  ListApartments@1d1c3cd
Elementscom.oceanus.tides.model.listallapartments.  ListApartments@162d950

Help me...

It seems to me your query is executing but does not yield the result you are expecting.
So: what is the query and what do you expect?

Regards,
Andreas

P.S.: Please use [c o d e] [/ c o d e] Tags to make things better readable.

hi
I solved the problem... any way thanks .
Regards
Shalid
¥
Back Forum Reply New