473,785 Members | 2,283 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help! Problem of XUpdate(Xindice )

Hi,

i have already found a xindice based java gui. but it appears always a big
problem from the xupdate functions. If i tip some commands in and try to
execute them, it will appear an exception, this result from the example
http://xml.apache.org/xindice/guide-...er.html#N1025F are
extraordinarily similar:
*************** ******** Exception *************** *********
org.apache.xind ice.client.corb a.db.APIExcepti on:
IDL:org/apache/xindice/client/corba/db/APIException:1. 0
at
org.apache.xind ice.client.corb a.db.APIExcepti onHelper.read(A PIExceptionHelp e
r.java:112)
at
org.apache.xind ice.client.corb a.db._Collectio nStub.queryColl ection(_Collect i
onStub.java:833 )
at
org.apache.xind ice.client.xmld b.services.XUpd ateQueryService Impl.updateResu l
t(XUpdateQueryS erviceImpl.java :165)
at
org.apache.xind ice.client.xmld b.services.XUpd ateQueryService Impl.update(XUp d
ateQueryService Impl.java:185)
at XUpdate.main(XU pdate.java:41)
XML:DB Exception occured 1 Query Processing Error
*************** *************** *************** *************

*************** ***** Source Code *************** ***********
import org.xmldb.api.b ase.*;
import org.xmldb.api.m odules.*;
import org.xmldb.api.* ;

/**
* Simple XML:DB API example to update the database.
*/
public class XUpdate {
public static void main(String[] args) throws Exception {
Collection col = null;
try {
String driver = "org.apache.xin dice.client.xml db.DatabaseImpl ";
Class c = Class.forName(d river);

Database database = (Database) c.newInstance() ;
DatabaseManager .registerDataba se(database);
col =

DatabaseManager .getCollection( "xmldb:xind ice:///db/addressbook");

String xupdate = "<xu:modificati ons version=\"1.0\" " +
" xmlns:xu=\"http ://www.xmldb.org/xupdate\">" +
" <xu:remove select=\"/person/phone[@type = 'home']\"/>" +
" <xu:update select=\"/person/phone[@type = 'work']\">" +
" 480-300-3003" +
" </xu:update>" +
"</xu:modification s>";

XUpdateQuerySer vice service =
(XUpdateQuerySe rvice) col.getService( "XUpdateQuerySe rvice",
"1.0");
service.update( xupdate);
}
catch (XMLDBException e) {
System.err.prin tln("XML:DB Exception occured " + e.errorCode + " "
+
e.getMessage()) ;
}
finally {
if (col != null) {
col.close();
}
}
}
}
*************** *************** *************** *************

*************** **** Baum Struktur *************** *********
db
-addressbook
-address1 (XML Datei aus Xindice)
-address2 (XML Datei aus Xindice)
*************** *************** *************** *************
i have also tested another gui(from
http://titanium.dstc.edu.au/xml/xmld...eenshots.shtml) in different
versions of jre. but it appears the same problem. i'm not sure, whether it's
my problem or has xindice made sth wrong...

Thank you for your friendly help.
Jul 20 '05 #1
0 1653

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1283
by: Alexander DEJANOVSKI | last post by:
JyRetic 1.0RC3 was just released. (http://retic.sourceforge.net) Changes are (I might have forgotten some bug fixes): - Bug fix : Scheduled events didn't work if no parameter file was required - Improvement : Speeded up SQL source when there were several records to extract (~x10) - Improvement : since JDBC drivers return rowcount on query execution, there's no need
1
2470
by: Christian W. Guenther | last post by:
Hallo, please excuse if I violate any group etiquette etc. but I am not very experienced both regarding the usenet and your group. I have installed Xindice, integrated into Tomcat, and can use it via the command line tools provided without problems. Yet when I try to access the database within a Java program I get the following error: trying to register database
9
1738
by: Steven T. Hatton | last post by:
This was written for the gnu.g++.help list. It rather clearly spells out the most important feature of Java that I believe C++ lacks. I really don't believe the C++ Standard sepcifies enough for a generic mechanism to accomplish the comperable tasks demonstrated for Java below. I've already proposed on comp.std.c++ that the next version of the standard specify a similar functionality for a C++ implementation. I know it can be unpopular...
6
1696
by: Tjerk Wolterink | last post by:
Don't know wether this is the right newsgroup, anyways: Has anyone some experience with Native XML Databases. Im planning to use this: http://exist.sourceforge.net/ It has many advantages over Object Relational Mapping, (that is how i do it now).
17
2305
by: Luc Mercier | last post by:
Hi Folks, I'm new here, and I need some advice for what tool to use. I'm using XML for benchmarking purposes. I'm writing some scientific programs which I want to analyze. My program generates large XML logs giving semi-structured information on the flow of the program. The XML tree looks like the method calls tree, but at a much higher level, and I add many values of some variables.
6
1781
by: salmobytes | last post by:
After a javascript-generated post event (this is a post, not ajax messaging) the current screen has to be redrawn. But on *long forms* (longer than a single screen) then the current screen positioning is lost, and the current form ends up redrawn, with a different vertical positioning--after the post event. However, If I sent the x,y mouse position as post parameters, and if the current widget (that generated the post) had
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10083
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9946
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.