A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
not able to cast like (oracle.sql.CLOB) callableStatement.getClob(int value)
Joined: Jan 04, 2001
Jan 22, 2007 22:08:00
I am working on upgrading my project from Weblogic6.1 to Weblogic9.1 application server.
I am getting null when I cast it like
oracle.sql.CLOB costingClob = (oracle.sql.CLOB) callableStatement.getClob(value);
even though the callableStatement.getClob(value) is returning me an object it is not null.
The same working working fine with Weblogic6.1, it is failing with Weblogic9.1. My database is Oracle8.i.
Can any one please help me.
Joined: May 26, 2003
Jan 23, 2007 17:15:00
How do you know that callableStatement.getClob(value) doesn't return null? Have you tried:
According to Java, casting an object doesn't yield null, so I suspect the stored procedure is returning null in some cases or there is a problem with the driver.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
Joined: Dec 06, 2005
Jan 25, 2007 06:16:00
According to javaDoc
the parameter value as a Clob object in the Java programming language.
If the value was SQL NULL, the value null is returned.
what the bold sentence mean ? can you clear me on this.
Thanks in Advance.
How To Ask Questions On JavaRanch
It is sorta covered in the
JavaRanch Style Guide
subject: not able to cast like (oracle.sql.CLOB) callableStatement.getClob(int value)
Weblogic 6.1 and Axis
ClassCastException Weblogic and Oracle CLOB object
Help with updating CLOB
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013