File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes jdbc hibernate Websphere exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "jdbc hibernate Websphere exception" Watch "jdbc hibernate Websphere exception" New topic
Author

jdbc hibernate Websphere exception

Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 258
for my app im using
an oracle10g DB
Websphere 5.1.0 WAS Test enviornment 5.0
with hibernate as a persisting service.

Everything works fine here.

However when we deploy this application on WAS 5.1,and try to insert or update i get the following exception:


I read somewhere this maybe a jdbc driver problem. Can someone help me with this. has been a big source of pain
Maximilian Xavier Stocker
Ranch Hand

Joined: Sep 20, 2005
Posts: 381
Ugh! JDBC drivers that throw Null Pointer exceptions should be dragged by meathooks around the village square. That is a horrible thing that they should never do.

What I would suggest though is since you seem to be saying that you do not get this error in your testing environment is use the same driver in deployment that you use in development/testing. Failing that (as in you can't change the deployment driver) you will need to use the same driver as in deployment in your testing/development environment and see what causes the problem.

I would guess from the stacktrace that somewhere there is a call to clear parameters where not all the parameters have been set. I'm not sure how to work around that in Hibernate. But if you can isolate the issue in your development environment it will go a long ways to helping you solve the problem.
Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 258
well you think thats bad, here is the kicker, both enviornments are same.
This problem definetly pushed me a little closer to the edge.

And how do I solve it, I changed the oracle provided jdbc driver and it worked just fine. It took me 2 days for this cause, oracle's download website was down.

why o why
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jdbc hibernate Websphere exception