Solved

Hibernate bulkbean issue

Posted on 2010-09-02
6
432 Views
Last Modified: 2012-08-13
I am getting the following issue. Urgenct please. I need a solution to the issue. I am seeing cglib as a reason in google. I dont have any cglib in my classpath. Urgency help please
Additional Details:
net/sf/cglib/beans/BulkBeanException

java.lang.NoClassDefFoundError: net/sf/cglib/beans/BulkBeanException

      at org.hibernate.util.ReflectHelper.getBulkBean(ReflectHelper.java:213)
0
Comment
Question by:prsubject
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
ID: 33593768
download cglib2.2 from here and add it in the classpath
http://www.findjar.com/class/net/sf/cglib/beans/BulkBeanException.html
0
 

Author Comment

by:prsubject
ID: 33593874
I have added the cglib2.2. It worked to some extent. It is creating the session object, but not able to execute the query. It is not able to reach the third statement.

Application.showMessage("DPDAO:::Inside try"); -->Pass
        session=getSession();
        Application.showMessage("After getsession"); --> Pass
        Query query = session.getNamedQuery("com.twc.soatest.bsif.entity.ServiceProfile.getServiceFeaturesList");
        query.setString("tn", tn);
        sfList=query.list();
        Application.showMessage("In DAO layer..."); --> not displaying this statement
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 33593878
what is the query exactly? Also please post the related class.

If you can post the exception stack trace, it will be a help also.
0
How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

 

Author Comment

by:prsubject
ID: 33593879
The same query works if I run in java perspective. If I run the soatest it is not working. Some hibernate jars are missing I doubt. It has nothing to do with soatest. SOme jars are missing to execute the query in soatest perspective. Could you guide me.
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 33593893
If some jars are missing, you will get classnotfound exception.
Please post the exception/error trace.
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 33593940
did you found the solution of why the query was not executed?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
stringclean challenge 26 80
firstswap challenge 20 88
Why my table column Id is not passed to java object? 4 46
Code Coverage and Coding Standards 2 80
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question