File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Callable Statement

 
Ajai
Ranch Hand
Posts: 198
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
when using Callable statement with parameter names I am getting the exception when setting the parameters.
java.lang.AbstractMethodError: oracle/jdbc/driver/OracleCallableStatement.setString

while I tried to use parameter order no e.g. 1,2 etc it gave compiler error when setting dates

cs.setDate(int, String ) ..

Any workaround.

Thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33674
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajai,
Do you have the Oracle driver (classes12.jar) in your classpath?
 
Rajesh Agarwal
Ranch Hand
Posts: 79
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont see a setDate method taking cs.setDate(int, String ) ..
as parameters.

void setDate(String parameterName, Date x)
void setDate(String parameterName, Date x, Calendar cal)

Please let me know incase I am wrong.
 
Ajai
Ranch Hand
Posts: 198
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks all.

There was difference the jar i was using in build path and run time class path .

Thanks
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic