-->
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: Problem in building session factory
PostPosted: Thu Jan 13, 2005 11:04 am 
Beginner
Beginner

Joined: Thu Jan 13, 2005 10:50 am
Posts: 30
Location: Minneapolis, MN
Hibernate version: 2.1.7c

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:IllegalAcces error when we try to execute cfg.configure().buildSessionFactory() is getting executed

Name and version of the database you are using:DB2 Version 7

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 13, 2005 4:23 pm 
Regular
Regular

Joined: Tue Jun 22, 2004 8:01 pm
Posts: 106
Location: PowderTown, Utah, USA
Your post is pretty much lacking any detail that would allow somebody to help out. The only thing in there is the IllegalAccessException. (I assume it's an IllegalAccessException you're getting because I dont know of any other kind of IllegalAccess error... more detail pelase!)

Since you haven't thought to consult the Java API yourself, here's what it says about that exception:
Quote:
Thrown if an application attempts to access or modify a field, or to call a method that it does not have access to.

Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed.


So, there you have it. My guess is you have different builds of code running on different machines in either a cluster or on your EJB tier vs web tier.

Next time try posting a little more information (actually try posting ANY information)...


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.