From: Adam R. <ad...@ex...> - 2011-06-14 12:30:44
|
I just committed revisions 14690 and 14691 to trunk and 1.4.x respectively, this will avoid others experiencing this issue in future also. On 14 June 2011 14:25, Adam Retter <ad...@ex...> wrote: > Ah okay, > > So I think the problem is your third argument to the function - you > are using an Empty string, you should use the Empty sequence instead > to indicate no parameters, e.g. - > > file:serialize($hello, 'path/to/file', ()) > > > On 14 June 2011 12:06, acco113 <lu...@gm...> wrote: >> Nevermind, I found it myself. >> This is the output when I execute the query: >> >> 2011-06-14 12:02:38,466 [P1-9] ERROR (XQueryServlet.java [process]:438) - >> java.lang.NullPointerException >> at >> org.exist.xquery.modules.file.SerializeToFile.parseXMLSerializationOptions(SerializeToFile.java:158) >> at >> org.exist.xquery.modules.file.SerializeToFile.eval(SerializeToFile.java:130) >> at org.exist.xquery.BasicFunction.eval(BasicFunction.java:68) >> at >> org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:55) >> at >> org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) >> at org.exist.xquery.PathExpr.eval(PathExpr.java:241) >> at org.exist.xquery.LetExpr.eval(LetExpr.java:155) >> at org.exist.xquery.LetExpr.eval(LetExpr.java:206) >> at org.exist.xquery.LetExpr.eval(LetExpr.java:206) >> at org.exist.xquery.LetExpr.eval(LetExpr.java:206) >> at >> org.exist.xquery.BindingExpression.eval(BindingExpression.java:158) >> at >> org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) >> at org.exist.xquery.PathExpr.eval(PathExpr.java:241) >> at >> org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) >> at org.exist.xquery.XQuery.execute(XQuery.java:228) >> at org.exist.xquery.XQuery.execute(XQuery.java:183) >> at >> org.exist.xmldb.LocalXPathQueryService.execute(LocalXPathQueryService.java:185) >> at >> org.exist.http.servlets.XQueryServlet.process(XQueryServlet.java:414) >> at >> org.exist.http.servlets.XQueryServlet.doGet(XQueryServlet.java:171) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) >> at >> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) >> at >> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) >> at >> org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:263) >> at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:171) >> at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:44) >> at >> org.exist.http.urlrewrite.XQueryURLRewrite.doRewrite(XQueryURLRewrite.java:432) >> at >> org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:303) >> at >> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) >> at >> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) >> at >> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) >> at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) >> at >> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) >> at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) >> at org.mortbay.http.HttpServer.service(HttpServer.java:909) >> at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) >> at >> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) >> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) >> at >> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) >> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) >> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) >> >> >> -- >> View this message in context: http://exist.2174344.n4.nabble.com/How-to-use-file-serialize-tp3588546p3596133.html >> Sent from the exist-open mailing list archive at Nabble.com. >> >> ------------------------------------------------------------------------------ >> EditLive Enterprise is the world's most technically advanced content >> authoring tool. Experience the power of Track Changes, Inline Image >> Editing and ensure content is compliant with Accessibility Checking. >> http://p.sf.net/sfu/ephox-dev2dev >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open >> > > > > -- > Adam Retter > > eXist Developer > { United Kingdom } > ad...@ex... > irc://irc.freenode.net/existdb > -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |