• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JDBC Exception - Unexpected end of escape

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm receiving the exception [Microsoft][SQLServer 2000 Driver for JDBC]Unexpected end of escape, line 0 offset 0.

I'm using a CallableStatement to call a Stored Procedure with four parameters; Integer, String, String, Integer. I've checked what is being passed to the Statement to fill the parameters and the data looks fine. I've looked high and low and I can't find any information on what the cause of this exception may be. Does anyone have any experience with it? Thanks.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This error happened for me when I forgot to close a parentheses when creating
a CallableStatement:

CallableStatement sprocToRun = conn.prepareCall("{call msSproc(?,?}");

Notice the missing ')' after the parameters of the stored procedure.
 
reply
    Bookmark Topic Watch Topic
  • New Topic