-->
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.  [ 7 posts ] 
Author Message
 Post subject: NullPointerException from oracle when flushing the session
PostPosted: Wed Mar 03, 2004 4:48 pm 
Newbie

Joined: Wed Mar 03, 2004 2:57 pm
Posts: 4
Hi,

I just recently started using hibernate for my O/R mapping, after using Toplink for sometime.

I have some issues and questions hopefully can be cleared out.

Facts/environment:
1- We've created a simple thin layer around hibernate for the developer to interface with instead of going directly to hibernate APIs.
2- We are using Websphere studio 5.1.1 (WAS 5.1.0 and JRE 1.4.1)
3- hibernate 2.1
4- JTATransactionFactory, WebSphereTransactionManagerLookup,
DatasourceConnectionProvider, OracleDialect, TreeCacheProvider (JBoss)
5- Session fa


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 03, 2004 4:50 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Looks like your oracle driver has a problem with the way the websphere datasource does prepared statement caching. Try disabling this if possible.


Top
 Profile  
 
 Post subject: same problem
PostPosted: Wed Dec 22, 2004 4:47 am 
Newbie

Joined: Mon Dec 06, 2004 5:51 am
Posts: 8
Location: Istanbul/Turkiye
Hi,
Our environment is same. And we are having prblems about WebspheretransactionManagerLookup class too.

You said:
Quote:
I realized now that other people fixed it in this forum. so skip this one.


Can you point the posts you have read about the soplution, cause I coludn't find any.

And since it was along afo you post this message, have you solved all of your problems and how.

If you have some time pls give a summary....

Thanks....

_________________
thanks


Top
 Profile  
 
 Post subject: :NullPointerException from oracle when flushing the session
PostPosted: Wed Dec 22, 2004 9:12 am 
Newbie

Joined: Wed Mar 03, 2004 2:57 pm
Posts: 4
Basically, set the "Statement cache size" to "0" in the Datasource configuration (Default value is 10). and it will work fine.

Hadi


Top
 Profile  
 
 Post subject: Fix for issue with Websphere 5.1.1
PostPosted: Mon Jan 10, 2005 4:20 pm 
Newbie

Joined: Tue Oct 12, 2004 4:27 pm
Posts: 2
I would not set the statement cache to "0", that will cause a fairly substantial performance hit. I was able to resolve this issue by updating the oracle driver from classes12 to ojdbc14 from the oracle site. I understand that you have already retrieved the new driver, but make sure you point your server to the new driver, otherwise you will continue to have this problem. I downloaded the driver and put it in the classpath, but forgot to update the Native Path in the server configurator. After changing the native path it works fine.


Top
 Profile  
 
 Post subject: Re: Fix for issue with Websphere 5.1.1
PostPosted: Wed Jun 07, 2006 4:13 am 
Newbie

Joined: Fri Apr 28, 2006 10:14 am
Posts: 11
Location: Paris, France
nminshew wrote:
I would not set the statement cache to "0", that will cause a fairly substantial performance hit. I was able to resolve this issue by updating the oracle driver from classes12 to ojdbc14 from the oracle site. I understand that you have already retrieved the new driver, but make sure you point your server to the new driver, otherwise you will continue to have this problem. I downloaded the driver and put it in the classpath, but forgot to update the Native Path in the server configurator. After changing the native path it works fine.


I'm having this problem too, setting the statement cache to 0 fixes it but I understand about the performance concern. We're using ojdbc14.jar in websphere.

What do you mean about the "Native Path in the server configurator"?

-Michael


Top
 Profile  
 
 Post subject: Re: Fix for issue with Websphere 5.1.1
PostPosted: Wed Jun 07, 2006 9:00 am 
Newbie

Joined: Fri Apr 28, 2006 10:14 am
Posts: 11
Location: Paris, France
Quote:
I'm having this problem too, setting the statement cache to 0 fixes it but I understand about the performance concern. We're using ojdbc14.jar in websphere.

What do you mean about the "Native Path in the server configurator"?

-Michael


9.2.0.5 fix it. had to put it both on the WAS server and in our WAR.

Thanks!
-Michael


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