Solved

Hibernate bulkbean issue

Posted on 2010-09-02
6
406 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
java JDK Download 7 78
wordsWithout 49 93
maven project error 5 48
tomcat administrtor 12 29
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 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 …
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.

895 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

14 Experts available now in Live!

Get 1:1 Help Now