[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problems with xupdate



Hi,
I am not able to let xupdate works! It gives me the exception:
Exception in thread "main" java.lang.Exception: no command for id 101 !
I looked my xmlns, but it is correct!
Here is my code, I simply took the xmlsamples code and changed the xupdate
statement:

protected static void xupdateQuery( String filename ) throws Exception {
String prefix = "XUpdate query: ";
        
String document = "<pippo>pluto<pappo>pluto</pappo></pippo>";
		
// all files and names are hard wired yet
// filename = "address.xml";
qstring = "<lexus:modifications version=\"1.0\" 
xmlns:lexus=\"http://www.xmldb.org/xupdate\">"+
"<lexus:append select=\"/xmlrepository\" child=\"last()\">"+
"<lexus:element name=\"article\">"+
document+
"</lexus:element>"+
"</lexus:append>"+
"</lexus:modifications>"; /* */
		
System.out.println( prefix + "filename=" + filename + ", qstring=" + qstring
);

then the code is the same as in the xml-sample.
Can you help me? What is wrong with this code?

Thanks for any suggestions
Marco
        


>> Exception in thread "main" java.lang.Exception: no command for id 101 !
>> at
>>
org.ozoneDB.xml.util.XMLContainerHelperImpl_Proxy.executeXUpdate(XMLContaine
>> rHelperImpl_Proxy.java:168)
>> at
org.ozoneDB.xml.util.XMLContainer.executeXUpdate(XMLContainer.java:451)
>> at
org.ozoneDB.xml.util.OzoneXUpdateQuery.execute(OzoneXUpdateQuery.java:85)
>> at
org.ozoneDB.xml.util.OzoneXUpdateQuery.execute(OzoneXUpdateQuery.java:73)
>> at Client.xupdateQuery(Client.java:298)
>> at Client.main(Client.java, Compiled Code)
>> 
>> Also the server throws the same exception.
>>
>> 
>> How can I let it work?

>The exception occurs if the XUpdate elements like <xupdate:append ... />
have
>not the correct namespace. The namespace is "http://www.xmldb.org/xupdate"
.
>The user ID is not important for XUpdate.