Hi, I use Xindice (1.0) under W2K and have the same problem as above about
(Bthe exception when executing XUpdate requests.
(BI looked in start (for linux) and startup.bat (for win) and noticed that
(Bstart does refers to vm.cfg but startup.bat doesn't ! So i guess that this
(Bmeans the solution given by Akihiro won't work for me (and actually it
(Bdoesn't ;-) So what do I do ? Should I modify startup.bat and make a script
(Bof my own ? (I'm allready tired just thinking about it) Can anyone help or
(Bis there only linux-eleets here :-D
(BDoes modifying the %JAVACMD% to add the -D directives is enough ?
(Bciao, Julien
(B----- Original Message -----
(BFrom: "SATO Akihiro" <[EMAIL PROTECTED]>
(BTo: <[email protected]>
(BSent: Thursday, December 12, 2002 3:54 AM
(BSubject: Re: Using XUpdate
(B
(B
(B>
(B> Hello.
(B>
(B> Add
(B>
(B> -Djava.endorsed.dirs=/usr/local/xindice/java/lib/endorsed
(B>
(B> to the first line (before other -D options).
(B> Create $XINDICE_HOME/java/lib/endosed/ directory,
(B> copy xerces.jar,xalan.jar into it, and restart xindice server.
(B>
(B> Since SDK has Xalan in itself, you must avoid using it
(B> with java.endorsed.dirs option.
(B>
(B> (Sorry, This does not appears in the howto. I found it in Japanese
(Bwebsite)
(B> http://www.atmarkit.co.jp/fxml/tanpatsu/18xindice/xindice09.html
(B>
(B>
(B>
(B> At 0:39 AM -0200 02.12.12, Alex Mariano wrote:
(B> >My vm.cfg contains:
(B> >
(B>
(B>-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xindice.xml.jaxp.Docu
(Bm
(B> >entBuilderFactoryImpl
(B>
(B>-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactor
(By
(B> >Impl
(B> >
(B> >What else do I have to put into this file to get the Xupdate problem
(Bsolved?
(B> >
(B> >----- Original Message -----
(B> >From: "Alex Mariano Costa de Oliveira" <[EMAIL PROTECTED]>
(B> >To: <[email protected]>
(B> >Cc: <[EMAIL PROTECTED]>
(B> >Sent: Thursday, December 12, 2002 12:25 AM
(B> >Subject: Re: Using XUpdate
(B> >
(B> >
(B> >> I am having the same Query Processing Error.
(B> >> I am using j2sk-1.4.0 and xerces-1.4.3
(B> >>
(B> >> Have anybody ever taken this error?
(B> >>
(B> >> Thanks in advance..
(B> >>
(B> >> ----- Original Message -----
(B> >> From: "Tom Sugden" <[EMAIL PROTECTED]>
(B> >> To: <[email protected]>
(B> >> Sent: Tuesday, December 10, 2002 12:22 PM
(B> >> Subject: Re: Using XUpdate
(B> >>
(B> >>
(B> >> > Thanks Akihiro.
(B> >> >
(B> >> > I tried replacing Xindice's xerces jar with version 1.4.4 and then
(B> >2.1.1,
(B> >> > but it still doesn't work. Any other ideas?
(B> >> >
(B> >> > Thanks,
(B> >> > Tom
(B> >> >
(B> >> >
(B> >> > At 09:10 PM 12/10/2002 +0900, you wrote:
(B> >> >
(B> >> > >Hello, Tom. I once had a problem like you under tomcat-3.3, jdk1.4.
(B> >> > >
(B> >> > >Xindice 1.0 has xerces-1.4.3.jar in its java/lib directory.
(B> >> > >I replaced the jar file with xerces-1.4.4, and the error was gone.
(B> >> > >Maybe the version 1.4.3 not fit to use XUpdate.
(B> >> > >
(B> >> > >
(B> >> > >Thanks,
(B> >> > >Akihiro
(B> >> > >
(B> >> > >
(B> >> > >Hi,
(B> >> > >
(B> >> > >I'm using Xindice 1.0 and have just started playing around with
(B> >> > >XUpdateQueryService but am having a few problems. If I try to
(Bperform
(B> >an
(B> >> > >XUpdate query that does not match anything in the collection then
(B> >nothing
(B> >> > >happens (as expected), but if I change it so that it does match
(B> >> something,
(B> >> > >then an exception is thrown and the update fails.
(B> >> > >
(B> >> > >For example, if I use the perform the following XUpdate query:
(B> >> > >
(B> >> > >String update =
(B> >> > >"<xu:modifications version=�"1.0�"
(B> >> > >xmlns:xu=�"http://www.xmldb.org/xupdate�">�n" +
(B> >> > >"<xu:update select=�"/addresses/address[1]/town�"> �n" +
(B> >> > >"Bristol�n" +
(B> >> > >"</xu:update>�n" +
(B> >> > >"</xu:modifications>";
(B> >> > >
(B> >> > >On a collection that contains the following data:
(B> >> > >
(B> >> > ><addresses xmlns:src="http://xml.apache.org/xindice/Query"
(B> >> > >src:col="/db/test" src:key="doc3">
(B> >> > ><address>
(B> >> > ><town>Los Angeles</town>
(B> >> > ></address>
(B> >> > ><address>
(B> >> > ><town>New York</town>
(B> >> > ></address>
(B> >> > ></addresses>
(B> >> > >
(B> >> > >Then the following exceptions are thrown:
(B> >> > >
(B> >> > >org.apache.xindice.client.corba.db.APIException:
(B> >> > >IDL:org/apache/xindice/client/corba/db/APIException:1.0
(B> >> > >at
(B> >> >
(B> >>
(B>
(B>>org.apache.xindice.client.corba.db.APIExceptionHelper.read(APIExceptionHel
(Bp
(B> >> er.java:112)
(B> >> > >at
(B> >> >
(B> >>
(B>
(B>>org.apache.xindice.client.corba.db._CollectionStub.queryCollection(_Collec
(Bt
(B> >> ionStub.java:833)
(B> >> > >at
(B> >> >
(B> >>
(B>
(B>>org.apache.xindice.client.xmldb.services.XUpdateQueryServiceImpl.updateRes
(Bu
(B> >> lt(XUpdateQueryServiceImpl.java:165)
(B> >> > >at
(B> >> >
(B> >>
(B>
(B>>org.apache.xindice.client.xmldb.services.XUpdateQueryServiceImpl.update(XU
(Bp
(B> >> dateQueryServiceImpl.java:185)
(B> >> > >
(B> >> > >org.xmldb.api.base.XMLDBException: Query Processing Error
(B> >> > >
(B> >> > >However, if I change the select attribute to
(B> >"/addresses/address[3]/town"
(B> >> > >there are no exceptions.
(B> >> > >
(B> >> > >Does anyone have any idea what I'm doing wrong?
(B> >> > >
(B> >> > >Thanks a lot,
(B> >> > >Tom
(B>
(B>

Reply via email to