--- grenoml <[EMAIL PROTECTED]> wrote:
> Does anyone know what this db exception is?:
> XML:DB Exception occured 5 0
> 
> XML:DB API is refusing to establish a client
> connection and I cannot decode this error.
> 
> Any help would be appreciated.
> 
> Thanks.
> 
> G.Reno
> 
Here is the code section:

      try {
         String driver =
"org.apache.xindice.client.xmldb.DatabaseImpl";
         Class c = Class.forName(driver);
         
         Database database = (Database)
c.newInstance();
         DatabaseManager.registerDatabase(database);
         col =
DatabaseManager.getCollection("Xindice://localhost:4080/db/addressbook");

         String xupdatedoc = "<xu:modifications
version=\"1.0\"" +
            "     
xmlns:xu=\"http://www.xmldb.org/xupdate\";>" +
            "   <xu:remove
select=\"/person/[EMAIL PROTECTED] = 'home']\"/>" +
            "   <xu:update
select=\"/person/[EMAIL PROTECTED] = 'work']\">" +
            "       480-300-3003" +
            "   </xu:update>" +
            "</xu:modifications>";

         XUpdateQueryService service =
            (XUpdateQueryService)
col.getService("XUpdateQueryService", "1.0");
         service.update(xupdatedoc);
      }
       catch(ClassNotFoundException e)
       {
           System.err.println("ClassNotFoundException
occured " + e);
           e.printStackTrace();
       } catch (XMLDBException e) {
         System.err.println("XML:DB Exception occured
" + e.errorCode + " " + e.vendorErrorCode + " " +
e.getMessage() );
      }
      finally {
         if (col != null) {
            col.close();
         }
      }



__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

Reply via email to