Solved

Hibernate bulkbean issue

Posted on 2010-09-02
6
400 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
  • 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
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.

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now