If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Question on xml

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-13-11, 18:23
TDVH TDVH is offline
Registered User
 
Join Date: May 2011
Posts: 15
Question on xml

HI,

i have error in this code

String xmlfilename = "c:/book.xml";
int shred = 1;

// Decompose the XML document by calling the SYSPROC.XDBDECOMPXML


CallableStatement callStmt = con.prepareCall("CALL SYSPROC.XDBDECOMPXML(?,?,?,?,?, NULL, NULL, NULL)");
File xmlfile = new File(xmlfilename);
FileInputStream xmlfileis = new FileInputStream(xmlfile);
callStmt.setString(1, relSchema );
callStmt.setString(2, schemaName );
callStmt.setBinaryStream(3, xmlfileis, (int)xmlfile.length() );
callStmt.setString(4, schemaName );
callStmt.setInt(5, shred);

callStmt.execute();

xmlfileis.close();
callStmt.close();
System.out.println("**** CALL SYSPROC.XDBDECOMPXML SUCCESSFULLY");


the error is



Error Msg: [jcc][10143][10845][3.62.56] Invalid parameter 4: Parameter is not set nor registered. ERRORCODE=-4461, SQLSTATE=42815
SQLState: 42815
SQLError: -4461


plz answer me quickly
Reply With Quote
  #2 (permalink)  
Old 06-17-11, 05:48
TDVH TDVH is offline
Registered User
 
Join Date: May 2011
Posts: 15
how can i solve the problem??

this procedure SYSPROC.XDBDECOMPXML is stored in db2

how can i use it ?

Last edited by TDVH; 06-17-11 at 05:59.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On