-->
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.  [ 2 posts ] 
Author Message
 Post subject: SessionFactoryObjectFactory: InitialContxt no imp. Event Ctx
PostPosted: Wed Jun 22, 2005 11:19 am 
Beginner
Beginner

Joined: Mon Apr 18, 2005 10:25 am
Posts: 38
Location: Maryland
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3.0 Jboss 4.0

Mapping documents:
FIne

Code between sessionFactory.openSession() and session.close():
Tried several ways but at last trying.
factory = (configuration calls)buildSessionFactory();
session = factory.getCurrentSession().
I used a threadLocal variable and just a plain old static with the same results
Full stack trace of any exception that occurs:
Can't print full but succeful on binding JNDI then next is this WARN
[org.apache.hibernate.SessionFactoryObjectFactory] InitialContext does not implement Event Context.

Then continues on and creates my sql and says that is opens a prepared statement but the select does not retrieve anything back from db and should get one object returned.

Name and version of the database you are using:
Sybase ASE12.5

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:
DEBUG


Top
 Profile  
 
 Post subject: UPDATED
PostPosted: Tue Jun 28, 2005 2:55 pm 
Beginner
Beginner

Joined: Mon Apr 18, 2005 10:25 am
Posts: 38
Location: Maryland
I have narrowed down this error to the SessionFactoryObjectFactory.addInstance(String, String, SessionFactory, Properties) method located in the org.hibernate.impl dir. I am not sure where the called is made to getInitialContext(properties) is actual setting ctx to anything. Has anyone else had this issue? I am going to edited that class and check to see if ctx has a value but don't want to muck around the actual source code for hibernate too much. ?????

Ultimately I get that the JTA was not synchronized.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.