Help with error in process stored in sql

0

Good afternoon, I come to you to see if you can support me with a problem when running a process stored in sql and pass an input parameter I skip the following error:

  

com.microsoft.sqlserver.jdbc.SQLServerException: The error description   is 'Invalid at the top level of the document.'.

The way I'm trying to execute the sp is like this:

String texto = txaXml.getText();
String subeVenta = "{call spRecibirCR(?)}";
CallableStatement cstmt = con.prepareCall(subeVenta); 
cstmt.setString(1, texto);
cstmt.setQueryTimeout(600);
cstmt.execute();

This sp processes an xml which inserts records into tables.

I do not know why I get this error, the connection does it correctly, the driver is well installed, I use NetBeans IDE 8.1.

I hope you can guide me because I get this exception, and know what I'm doing wrong.

Thank you.

Greetings.

    
asked by Delfino Morales 05.07.2016 в 03:51
source

0 answers