logo       

Re: XUpdate specifications: msg#00218

text.xml.exist

Subject: Re: XUpdate specifications

Hello Wolfgang,

> this looks more like a bug than like a difference in "dialect". I haven't
> really changed anything in the implementation. I just tried to fix a few
> minor things. But obviously, I broke something in the code. Can you send
me
> the stack trace from the server's log or a part of your document to
compare
> with?

Try the following XUpdate on attached XML document.

<xupdate:modifications version="1.0"
xmlns:xupdate="http://www.xmldb.org/xupdate";>
<xupdate:append select="//class" >
<xupdate:attribute name="order">777</xupdate:attribute>
</xupdate:append>
</xupdate:modifications>

When I run it, it causes "internal server error" response and raises the
following trace:

24 ╤Б╨╡╨╜ 2004 11:32:41,421 [SocketListener-74] DEBUG
(GeneralComparison.java [quickNodeSetCompare]:245) - quick compare: 3
24 ╤Б╨╡╨╜ 2004 11:32:41,421 [SocketListener-74] DEBUG (Modification.java
[select]:142) - found 24 for select: //class[@id != '777']
11:32:41.531 WARN!! Exception for
/exist/servlet/db/cs/shop/cosmictrade-default
java.lang.NullPointerException
at org.exist.dom.ElementImpl.checkAttribute(ElementImpl.java:593)
at
org.exist.dom.ElementImpl.checkDupAttributes(ElementImpl.java:582)
at org.exist.dom.ElementImpl.appendAttributes(ElementImpl.java:278)
at
org.exist.dom.ElementImpl.checkForAttributes(ElementImpl.java:311)
at org.exist.dom.ElementImpl.appendChildren(ElementImpl.java:321)
at org.exist.xupdate.Append.process(Append.java:88)
at org.exist.http.RESTServer.doPost(RESTServer.java:313)
at
org.exist.http.servlets.EXistServlet.doPost(EXistServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:293)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:581)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1687)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:544)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1637)
at org.mortbay.http.HttpServer.service(HttpServer.java:875)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:806)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:956)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:823)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:202)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:290)
at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
at java.lang.Thread.run(Unknown Source)

--
Sergey V. Prohorenko, ICQ UIN 16185195
Software engineer +38 (044) 228-1622
UCMG, IT dept. http://www.ucmg.com.ua


Attachment: cosmictrade-store.xml
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise