-->
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.  [ 3 posts ] 
Author Message
 Post subject: Java.lang.NoSuchMethodError at session.getTransaction() call
PostPosted: Tue Jun 26, 2007 4:25 am 
Newbie

Joined: Tue Jun 26, 2007 4:07 am
Posts: 5
Hi ,
I am making a simple demo application using JBoss and Hibernate3

Somewhere in my application i have a code like this......

//////////////////////////
session = HibernateUtil.getSessionFactory().openSession();
Transaction tx = session.getTransaction() ;//Java.lang.NoSuchMethodError
/////////////////////////////////


The problem is that my application crashes at runtime at the statement
Transaction tx = session.getTransaction() ;

The stack trace gives following message ,
java.lang.NoSuchMethodError: org.hibernate.Session.getTransaction()Lorg/hibernate/Transaction;

Have read in some forums that this is because of incompatible jars ,
but the problem is how to identify the incompatible jars and rectify them .

I'd be thankful to anyone who can help me out in solving this issue .

Thanks in advance .

Best Regards,
Chandan Ahuja


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 26, 2007 5:10 am 
Expert
Expert

Joined: Tue Jan 30, 2007 12:45 am
Posts: 283
Location: India
Hi Chandan,

Post your full exception trace

_________________
Dharmendra Pandey


Top
 Profile  
 
 Post subject: Have solved the Issue
PostPosted: Tue Jun 26, 2007 10:29 am 
Newbie

Joined: Tue Jun 26, 2007 4:07 am
Posts: 5
Hi I have solved this issue , actually the
Hibernate JAR at my DEvelopment environment and the
Hibernate JAR at my JBoss server were different ,
I made them same and its working fine now.
Best Regards,
Chandan


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