-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: encountered SQLException [Database not selected yet.]
PostPosted: Fri Jun 23, 2006 3:47 am 
Newbie

Joined: Wed Jun 21, 2006 1:13 am
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hi All,
Recently the error occurs sometimes. The connectiong pool is available when I check it on weblogic8.1.3 console.

need help!


Hibernate version:2.1

Mapping documents:
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">


Full stack trace of any exception that occurs:2006-05-31 12:03:02,336 ExecuteThread: '13' for queue: 'weblogic.kernel.Default' ERROR pers.global - RuntimeException
org.springframework.jdbc.UncategorizedSQLException: (HibernateAccessor): encountered SQLException [Database not selected yet.]; nested exception is java.sql.SQLException: Database not selected yet.
java.sql.SQLException: Database not selected yet.
at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java(Inlined Compiled Code))
at com.informix.jdbc.IfxSqli.addException(IfxSqli.java(Compiled Code))
at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.java(Compiled Code))
at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java(Compiled Code))
at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java(Compiled Code))
at com.informix.jdbc.IfxSqli.executePrepare(IfxSqli.java(Compiled Code))
at com.informix.jdbc.IfxResultSet.executePrepare(IfxResultSet.java(Inlined Compiled Code))
at com.informix.jdbc.IfxPreparedStatement.setupExecutePrepare(IfxPreparedStatement.java(Compiled Code))
at com.informix.jdbc.IfxPreparedStatement.<init>(IfxPreparedStatement.java(Compiled Code))
at com.informix.jdbc.IfxSqliConnect.prepareStatement(IfxSqliConnect.java(Compiled Code))
at weblogic.jdbc.common.internal.ConnectionEnv.makeStatement(ConnectionEnv.java(Compiled Code))
at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java(Compiled Code))
at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java(Inlined Compiled Code))
at weblogic.jdbc.wrapper.Connection.prepareStatement(Connection.java(Compiled Code))
at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java(Compiled Code))
at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java(Inlined Compiled Code))
at net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java(Compiled Code))
at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java(Compiled Code))
at net.sf.hibernate.loader.Loader.doQuery(Loader.java(Compiled Code))
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java(Compiled Code))
at net.sf.hibernate.loader.Loader.doList(Loader.java(Inlined Compiled Code))
at net.sf.hibernate.loader.Loader.list(Loader.java(Compiled Code))
at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java(Inlined Compiled Code))
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java(Compiled Code))
at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java(Compiled Code))
at org.springframework.orm.hibernate.HibernateTemplate$18.doInHibernate(HibernateTemplate.java(Compiled Code))
at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java(Compiled Code))
at org.springframework.orm.hibernate.HibernateTemplate.executeFind(HibernateTemplate.java(Inlined Compiled Code))
at org.springframework.orm.hibernate.HibernateTemplate.find(HibernateTemplate.java(Inlined Compiled Code))


Name and version of the database you are using:informix 9.3 for aix



Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.