-->
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.  [ 4 posts ] 
Author Message
 Post subject: Hibernate in iPlanet
PostPosted: Mon Dec 08, 2003 6:43 am 
Newbie

Joined: Mon Dec 08, 2003 6:33 am
Posts: 5
Hi there,

My current application is using struts and hibernate. I'm using the ThreadLocal for managing my session. This apps is deployed in iPlanet Application Server 6.0 sp2.

The problem with it is I'm getting this error :
Quote:
[WARN] JDBCExceptionReporter - -SQL Error: 0, SQLState: null
[ERROR] JDBCExceptionReporter - -prepStmt(): unable to prepare an internal statement object
[ERROR] JDBCExceptionReporter - -Could not execute query <java.sql.SQLException: prepStmt(): unable to prepare an internal statement object>java.sql.SQLException: prepStmt(): unable to prepare an internal statement object
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.sql.SQLException.<init>(SQLException.java:82)
at com.netscape.server.jdbc.Connection.prepareStatement(Compiled Code)
at net.sf.hibernate.impl.SessionFactoryImpl.getPreparedStatement(Compiled Code)
at net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(Compiled Code)
at net.sf.hibernate.loader.Loader.prepareQueryStatement(Compiled Code)
at net.sf.hibernate.loader.Loader.doFind(Compiled Code)
at net.sf.hibernate.loader.Loader.find(Compiled Code)
at net.sf.hibernate.hql.QueryTranslator.find(Compiled Code)
at net.sf.hibernate.impl.SessionImpl.find(Compiled Code)
at net.sf.hibernate.impl.SessionImpl.find(Compiled Code)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1318)
at voiss.persistence.HibernateDM.query(Unknown Source)


HibernateDM is class that hold session in ThreadLocal. I'm using iPlanet datasource for connection. Database is oracle9i and I'm using 9i specific dialect.

Did somebody successfully run Hibernate in iPlanet? If so, how to do it?

Thanks.

- cairo fivez -


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 08, 2003 7:39 am 
Newbie

Joined: Mon Dec 08, 2003 6:33 am
Posts: 5
UPDATE: This apps is running ok in tomcat (also using jndi).

- cairo fivez -


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 08, 2003 10:03 am 
Newbie

Joined: Mon Dec 08, 2003 6:33 am
Posts: 5
Seems that there is no problem when I swith to hibernate connection pool. Maybe it is because of iPlanet data source.

- cairo fivez -


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 08, 2003 10:06 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
The builtin connection pool should not be used for production, it doesn't even cache preparedstatements with version 2.1. Get your iPlanet stuff running first without Hibernate and consult their support if it doesn't work as expected.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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

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.