-->
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: NoClassDefFoundError while invoking a DB2 stored Procedure
PostPosted: Wed Oct 01, 2008 5:40 pm 
Newbie

Joined: Wed Oct 01, 2008 5:25 pm
Posts: 3
Hibernate version:3.2.4

Full stack trace of any exception that occurs:

Caused by: java.lang.NoClassDefFoundError: sun/reflect/GeneratedMethodAccessor100
at sun.reflect.GeneratedMethodAccessor100.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.hibernate.jdbc.BorrowedConnectionProxy.invoke(BorrowedConnectionProxy.java:50)
at $Proxy4.prepareCall(Unknown Source)

Name and version of the database you are using:IBM DB2 version 8

When we try to invoke a DB2 storedProc using:

CallableStatement cs = conn.prepareCall(proc);

we receive this error. Although this error is not happening always. It suddenly props up. This error resolves as soon as the app server (IBM Websphere v6.1) is restarted. Any thoughts on how to isolate the issue would be really helpful?

Thanks,
Renga


Top
 Profile  
 
 Post subject: NoClassDefFoundError while executing SQL query also
PostPosted: Tue Oct 07, 2008 11:48 pm 
Newbie

Joined: Wed Oct 01, 2008 5:25 pm
Posts: 3
The same issue started popping up when the app tries to execute SQL query also. While performing load testing this problem could be repeatable. Although there are no patterns about when will this issue occur.

Based on the stack trace what i am getting is that BorrowedConnectionProxy is trying to load a class and at that point the classnotfoundexception is being thrown. Could this be related to classloader settings on the app server ?


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.