Thomas White | 1 Dec 01:29 2010
Picon

Can't find bundle for base name org.apache.xerces.impl.msg.XMLMessages, locale en_GB

Dear all,
 
Code from the trunk, WIndows XP, JAVA 1.6_0_21
 
I am working on a file uploading query and a code that worked before now returns the message
     Can't find bundle for base name org.apache.xerces.impl.msg.XMLMessages, locale en_GB
when I try to upload a file.
 
There have been some complains in the list before but I do not think there was a final solution for it.
I do remember some time ago, the same problem derived me completely mad and at the end I decided to reinstall my whole laptop.
 
Now, I am against a very aggressive deadline and every hour counts.
 
Please, please help me to resolve this issue.
 
Regards,
Thomas
 
 ------------------------------ 
java.util.MissingResourceException: Can't find bundle for base name org.apache.xerces.impl.msg.XMLMessages, locale en_GB at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250) at java.util.ResourceBundle.getBundle(ResourceBundle.java:777) at org.apache.xerces.impl.msg.XMLMessageFormatter.formatMessage(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.exist.xquery.functions.request.GetData.eval(GetData.java:166) 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:59) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:72) at org.exist.xquery.functions.request.SetAttribute.eval(SetAttribute.java:101) at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:55) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:81) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:81) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:135) at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:278) at org.exist.xquery.FunctionCall.eval(FunctionCall.java:205) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59) 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:155) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59) at org.exist.xquery.XQuery.execute(XQuery.java:239) at org.exist.xquery.XQuery.execute(XQuery.java:194) at org.exist.http.urlrewrite.XQueryURLRewrite.runQuery(XQueryURLRewrite.java:634) at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:247) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:421) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:456) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:930) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:866) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:351) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:594) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1059) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:764) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:424) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:506) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Thread.java:619)
 
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Adam Retter | 1 Dec 01:36 2010

Re: Can't find bundle for base name org.apache.xerces.impl.msg.XMLMessages, locale en_GB

Hi Thomas,

I will try to resolve this. Can you provide us with the file that you uploaded and the steps that lead to this.

Cheers Adam

On 1 Dec 2010 00:32, "Thomas White" <thomas.0007 <at> gmail.com> wrote:
> Dear all,
>
> Code from the trunk, WIndows XP, JAVA 1.6_0_21
>
> I am working on a file uploading query and a code that worked before now
> returns the message
> * Can't find bundle for base name
> org.apache.xerces.impl.msg.XMLMessages, locale en_GB
> *when I try to upload a file.
>
> There have been some complains in the list before but I do not think there
> was a final solution for it.
> I do remember some time ago, the same problem derived me completely mad and
> at the end I decided to reinstall my whole laptop.
>
> Now, I am against a very aggressive deadline and every hour counts.
>
> Please, please help me to resolve this issue.
>
> Regards,
> Thomas
>
> ------------------------------
>
> java.util.MissingResourceException: Can't find bundle for base name
> org.apache.xerces.impl.msg.XMLMessages, locale en_GB
> at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427)
> at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250)
> at java.util.ResourceBundle.getBundle(ResourceBundle.java:777)
> at org.apache.xerces.impl.msg.XMLMessageFormatter.formatMessage(Unknown Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
> at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown
> Source)
> at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> at org.exist.xquery.functions.request.GetData.eval(GetData.java:166)
> 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:59)
> at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
> at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:72)
> at org.exist.xquery.functions.request.SetAttribute.eval(SetAttribute.java:101)
> at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:55)
> at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
> at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
> at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:81)
> at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
> at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
> at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:81)
> at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
> at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
> at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:135)
> at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:278)
> at org.exist.xquery.FunctionCall.eval(FunctionCall.java:205)
> at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
> 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:155)
> at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
> at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
> at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
> at org.exist.xquery.XQuery.execute(XQuery.java:239)
> at org.exist.xquery.XQuery.execute(XQuery.java:194)
> at org.exist.http.urlrewrite.XQueryURLRewrite.runQuery(XQueryURLRewrite.java:634)
> at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:247)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
> at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:421)
> at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
> at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:456)
> at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
> at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:930)
> at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358)
> at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
> at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:866)
> at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
> at org.eclipse.jetty.server.Server.handle(Server.java:351)
> at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:594)
> at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1059)
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:764)
> at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217)
> at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:424)
> at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:506)
> at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
> at java.lang.Thread.run(Thread.java:619)
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Anton Kolev | 1 Dec 01:46 2010

Re: Bugfix: Index error

Hi Wolfgang,

In my first production eXist application I am suffering a little data 
loss from time to time (this start happening after processing roughly 
75000 messages in the form of <message/> in the attached sample). The 
data loss happens in function fnp2:application-ensure (bellow), because 
seeking in an range index fails and respective document is over-stored 
again.

Could this patch be the my sickness pill? :-)

Thank you!
Anton

P.S. This is the second attempt for this e-mail, first seems to have 
been rejected, because of (non zipped) size of my sample document.

I am using eXist 1.5dev rev.12013 (July 2010)

xmldb.log:
-----------
2010-11-29 18:12:15,290 [qtp224301783-2597] DEBUG (LocalCollection.java 
[storeResource]:644) - storing document MTEL2010102650017310
.xml
2010-11-29 18:12:16,203 [qtp224301783-1517] DEBUG (LocalCollection.java 
[storeResource]:644) - storing document MTEL2010102650017310
.xml
2010-11-29 18:17:54,648 [qtp224301783-4082] DEBUG (LocalCollection.java 
[storeResource]:644) - storing document MTEL2010102650017310
.xml

My index configuration is defined at /db/fnp2/data

Collectoin /db/fnp2/data/applications currently contains 20624 documents 
like attached sample.

In that part of service, I am receiving Broadcast messages (via REST 
interface) and sending Done messages, every message carries 
$application-code (element ApplicationID in the messages).

declare variable $defs:data-applications-path := 
'/db/fnp2/data/applications'

declare function fnp2:applications(){
     collection($defs:data-applications-path)
};

declare function fnp2:applications-add($app as node()) as node()?{
     let $name := fnp2:application-document-name($app),
         $path := fnp2:application-collection-path($app)
         return
             util:catch("*",
                 doc(xmldb:store($path, $name, $app))/application,
                 exception:handle-empty(<exception:platform-store 
path="{$path}/{$name}"/>)
             )
};

declare function fnp2:application-ensure($application-code as xs:string) 
as node()?{
     let $app := fnp2:applications()//application[ <at> application_code = 
$application-code]
         return if (exists($app))
             then $app
             else fnp2:applications-add(<application 
application_code="{$application-code}"/>)
};

On 01.12.2010 00:19, Wolfgang Meier wrote:
> I managed to fix another indexing error which was rather difficult to
> debug: in rare cases, some keys in an index got stored into a wrong
> position in the underlying btree. This was caused by a bad computation
> of the page prefix key in certain edge cases. One needs a rather huge
> database and a correspondingly large range index to run into this
> issue.
>
> The fix has been applied to trunk as well as 1.4.x:
>
> http://exist.svn.sourceforge.net/exist/?rev=13335&view=rev
>
> Wolfgang
>
> ------------------------------------------------------------------------------
> Increase Visibility of Your 3D Game App&  Earn a Chance To Win $500!
> Tap into the largest installed PC base&  get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> Exist-open mailing list
> Exist-open <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/exist-open

Attachment (MTEL2010102650017310.zip): application/octet-stream, 20 KiB
Attachment (collection.xconf): text/xml, 628 bytes
Attachment (conf.xml): text/xml, 37 KiB
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Thomas White | 1 Dec 01:49 2010
Picon

Re: Can't find bundle for base name org.apache.xerces.impl.msg.XMLMessages, locale en_GB

Adam,

Please find the files to reproduced the case.

<html>
    <body>
        <form action="upload.xql" enctype="multipart/form-data" method="post">
            <input type="hidden" name="hidden" value="hidden"/>
            <p> Type some text:<br/>
                <input type="text" name="textline" size="30"/>
            </p>
            <p> Please specify a file<br/>
                <input type="file" name="datafile" size="40"/>
            </p>
            <div>
                <input type="submit" value="Send"/>
            </div>
        </form>
    </body>
</html>

------

xquery version "1.0"  encoding "UTF-8";

declare option exist:serialize "method=xml  media-type=text/xml";
let $request-parameter-names := request:get-parameter-names()

return element root {
     element request-parameter-names { request:get-parameter-names() },
     for $i in request:get-parameter-names() return
          for $value in request:get-parameter($i, '')[. != ''] return
             element { $i} { $value }
    ,
    element name { request:get-uploaded-file-name("datafile")},
    element file { request:get-uploaded-file-data( 'datafile')}
}

Thank you very much for your help.

Thomas

------

Thomas White

Mobile:+44 7711 922 966
Skype: thomaswhite
gTalk: thomas.0007
http://www.linkedin.com/in/thomaswhite0007
http://www.facebook.com/thomas.0007

On 1 December 2010 00:36, Adam Retter <adam <at> exist-db.org> wrote:
>
> Hi Thomas,
>
> I will try to resolve this. Can you provide us with the file that you uploaded and the steps that lead to this.
>
> Cheers Adam
>
> On 1 Dec 2010 00:32, "Thomas White" <thomas.0007 <at> gmail.com> wrote:
> > Dear all,
> >
> > Code from the trunk, WIndows XP, JAVA 1.6_0_21
> >
> > I am working on a file uploading query and a code that worked before now
> > returns the message
> > * Can't find bundle for base name
> > org.apache.xerces.impl.msg.XMLMessages, locale en_GB
> > *when I try to upload a file.
> >
> > There have been some complains in the list before but I do not think there
> > was a final solution for it.
> > I do remember some time ago, the same problem derived me completely mad and
> > at the end I decided to reinstall my whole laptop.
> >
> > Now, I am against a very aggressive deadline and every hour counts.
> >
> > Please, please help me to resolve this issue.
> >
> > Regards,
> > Thomas
> >
> > ------------------------------
> >
> > java.util.MissingResourceException: Can't find bundle for base name
> > org.apache.xerces.impl.msg.XMLMessages, locale en_GB
> > at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427)
> > at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250)
> > at java.util.ResourceBundle.getBundle(ResourceBundle.java:777)
> > at org.apache.xerces.impl.msg.XMLMessageFormatter.formatMessage(Unknown Source)
> > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> > at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
> > at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown
> > Source)
> > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> > Source)
> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> > at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> > at org.exist.xquery.functions.request.GetData.eval(GetData.java:166)
> > 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:59)
> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
> > at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:72)
> > at org.exist.xquery.functions.request.SetAttribute.eval(SetAttribute.java:101)
> > at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:55)
> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
> > at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:81)
> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
> > at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:81)
> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
> > at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:135)
> > at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:278)
> > at org.exist.xquery.FunctionCall.eval(FunctionCall.java:205)
> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
> > 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:155)
> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
> > at org.exist.xquery.XQuery.execute(XQuery.java:239)
> > at org.exist.xquery.XQuery.execute(XQuery.java:194)
> > at org.exist.http.urlrewrite.XQueryURLRewrite.runQuery(XQueryURLRewrite.java:634)
> > at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:247)
> > at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
> > at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:421)
> > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
> > at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:456)
> > at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
> > at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:930)
> > at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358)
> > at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
> > at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:866)
> > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> > at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
> > at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
> > at org.eclipse.jetty.server.Server.handle(Server.java:351)
> > at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:594)
> > at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1059)
> > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:764)
> > at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217)
> > at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:424)
> > at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:506)
> > at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
> > at java.lang.Thread.run(Thread.java:619)

» Multiple File Upload With Progress Bar

Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB

    Attachment (upload.xql): application/octet-stream, 842 bytes
    ------------------------------------------------------------------------------
    Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
    Tap into the largest installed PC base & get more eyes on your game by
    optimizing for Intel(R) Graphics Technology. Get started today with the
    Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
    http://p.sf.net/sfu/intelisp-dev2dev
    _______________________________________________
    Exist-open mailing list
    Exist-open <at> lists.sourceforge.net
    https://lists.sourceforge.net/lists/listinfo/exist-open
    
    Adam Retter | 1 Dec 02:15 2010

    Re: Can't find bundle for base name org.apache.xerces.impl.msg.XMLMessages, locale en_GB

    Hi Thomas,
    
    Are you using the latest release of trunk? The reason I ask is that
    after testing against that, I cannot see the same issue that you are
    encountering. It may be that perhaps your test case is over
    simplifying the issue that you are encountering?
    
    I have executed your form against your xquery and submitted the
    attached image that you provided. I do not get any exceptions or
    traces, the result that I get back from eXist-db seems correct, I
    attach a screenshot of the result for your appraisal.
    
    On 1 December 2010 00:49, Thomas White <thomas.0007 <at> gmail.com> wrote:
    > Adam,
    >
    > Please find the files to reproduced the case.
    >
    > <html>
    >    <body>
    >        <form action="upload.xql" enctype="multipart/form-data" method="post">
    >            <input type="hidden" name="hidden" value="hidden"/>
    >            <p> Type some text:<br/>
    >                <input type="text" name="textline" size="30"/>
    >            </p>
    >            <p> Please specify a file<br/>
    >                <input type="file" name="datafile" size="40"/>
    >            </p>
    >            <div>
    >                <input type="submit" value="Send"/>
    >            </div>
    >        </form>
    >    </body>
    > </html>
    >
    > ------
    >
    > xquery version "1.0"  encoding "UTF-8";
    >
    > declare option exist:serialize "method=xml  media-type=text/xml";
    > let $request-parameter-names := request:get-parameter-names()
    >
    > return element root {
    >     element request-parameter-names { request:get-parameter-names() },
    >     for $i in request:get-parameter-names() return
    >          for $value in request:get-parameter($i, '')[. != ''] return
    >             element { $i} { $value }
    >    ,
    >    element name { request:get-uploaded-file-name("datafile")},
    >    element file { request:get-uploaded-file-data( 'datafile')}
    > }
    >
    >
    > Thank you very much for your help.
    >
    > Thomas
    >
    >
    >
    > ------
    >
    > Thomas White
    >
    > Mobile:+44 7711 922 966
    > Skype: thomaswhite
    > gTalk: thomas.0007
    > http://www.linkedin.com/in/thomaswhite0007
    > http://www.facebook.com/thomas.0007
    >
    >
    > On 1 December 2010 00:36, Adam Retter <adam <at> exist-db.org> wrote:
    >>
    >> Hi Thomas,
    >>
    >> I will try to resolve this. Can you provide us with the file that you uploaded and the steps that lead to this.
    >>
    >> Cheers Adam
    >>
    >> On 1 Dec 2010 00:32, "Thomas White" <thomas.0007 <at> gmail.com> wrote:
    >> > Dear all,
    >> >
    >> > Code from the trunk, WIndows XP, JAVA 1.6_0_21
    >> >
    >> > I am working on a file uploading query and a code that worked before now
    >> > returns the message
    >> > * Can't find bundle for base name
    >> > org.apache.xerces.impl.msg.XMLMessages, locale en_GB
    >> > *when I try to upload a file.
    >> >
    >> > There have been some complains in the list before but I do not think there
    >> > was a final solution for it.
    >> > I do remember some time ago, the same problem derived me completely mad and
    >> > at the end I decided to reinstall my whole laptop.
    >> >
    >> > Now, I am against a very aggressive deadline and every hour counts.
    >> >
    >> > Please, please help me to resolve this issue.
    >> >
    >> > Regards,
    >> > Thomas
    >> >
    >> > ------------------------------
    >> >
    >> > java.util.MissingResourceException: Can't find bundle for base name
    >> > org.apache.xerces.impl.msg.XMLMessages, locale en_GB
    >> > at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427)
    >> > at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250)
    >> > at java.util.ResourceBundle.getBundle(ResourceBundle.java:777)
    >> > at org.apache.xerces.impl.msg.XMLMessageFormatter.formatMessage(Unknown Source)
    >> > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    >> > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    >> > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    >> > at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
    >> > at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown
    >> > Source)
    >> > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
    >> > Source)
    >> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    >> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    >> > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    >> > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    >> > at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    >> > at org.exist.xquery.functions.request.GetData.eval(GetData.java:166)
    >> > 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:59)
    >> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    >> > at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:72)
    >> > at org.exist.xquery.functions.request.SetAttribute.eval(SetAttribute.java:101)
    >> > at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:55)
    >> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    >> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    >> > at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:81)
    >> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    >> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    >> > at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:81)
    >> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    >> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    >> > at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:135)
    >> > at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:278)
    >> > at org.exist.xquery.FunctionCall.eval(FunctionCall.java:205)
    >> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    >> > 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:155)
    >> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    >> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    >> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    >> > at org.exist.xquery.XQuery.execute(XQuery.java:239)
    >> > at org.exist.xquery.XQuery.execute(XQuery.java:194)
    >> > at org.exist.http.urlrewrite.XQueryURLRewrite.runQuery(XQueryURLRewrite.java:634)
    >> > at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:247)
    >> > at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
    >> > at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:421)
    >> > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
    >> > at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:456)
    >> > at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
    >> > at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:930)
    >> > at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358)
    >> > at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
    >> > at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:866)
    >> > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
    >> > at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
    >> > at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
    >> > at org.eclipse.jetty.server.Server.handle(Server.java:351)
    >> > at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:594)
    >> > at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1059)
    >> > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:764)
    >> > at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217)
    >> > at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:424)
    >> > at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:506)
    >> > at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
    >> > at java.lang.Thread.run(Thread.java:619)
    >
    
    -- 
    Adam Retter
    
    eXist Developer
    { United Kingdom }
    adam <at> exist-db.org
    irc://irc.freenode.net/existdb
    
    ------------------------------------------------------------------------------
    Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
    Tap into the largest installed PC base & get more eyes on your game by
    optimizing for Intel(R) Graphics Technology. Get started today with the
    Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
    http://p.sf.net/sfu/intelisp-dev2dev
    _______________________________________________
    Exist-open mailing list
    Exist-open <at> lists.sourceforge.net
    https://lists.sourceforge.net/lists/listinfo/exist-open
    
    Dmitriy Shabanov | 1 Dec 05:43 2010
    Picon

    Re: Can't find bundle for base name org.apache.xerces.impl.msg.XMLMessages, locale en_GB

    You should write your own error reporter, because original one have a
    bug or it's the class loader issue and your new reporter will fix it
    too.
    
    http://xerces.apache.org/xerces2-j/xni-xerces2.html#error-reporter
    
    -- 
    Cheers,
    
    Dmitriy Shabanov
    
    On Wed, 2010-12-01 at 00:29 +0000, Thomas White wrote:
    > Dear all,
    >  
    > Code from the trunk, WIndows XP, JAVA 1.6_0_21
    >  
    > I am working on a file uploading query and a code that worked before
    > now returns the message 
    >      Can't find bundle for base name
    > org.apache.xerces.impl.msg.XMLMessages, locale en_GB
    > when I try to upload a file.
    >  
    > There have been some complains in the list before but I do not think
    > there was a final solution for it.
    > I do remember some time ago, the same problem derived me completely
    > mad and at the end I decided to reinstall my whole laptop.
    >  
    > Now, I am against a very aggressive deadline and every hour counts. 
    >  
    > Please, please help me to resolve this issue. 
    >  
    > Regards,
    > Thomas
    >  
    >  ------------------------------ 
    > java.util.MissingResourceException: Can't find bundle for base name
    org.apache.xerces.impl.msg.XMLMessages, locale en_GB
    > 	at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427)
    > 	at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250)
    > 	at java.util.ResourceBundle.getBundle(ResourceBundle.java:777)
    > 	at org.apache.xerces.impl.msg.XMLMessageFormatter.formatMessage(Unknown Source)
    > 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    > 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    > 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    > 	at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
    > 	at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
    > 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    > 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    > 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    > 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    > 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    > 	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    > 	at org.exist.xquery.functions.request.GetData.eval(GetData.java:166)
    > 	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:59)
    > 	at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    > 	at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:72)
    > 	at org.exist.xquery.functions.request.SetAttribute.eval(SetAttribute.java:101)
    > 	at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:55)
    > 	at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    > 	at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    > 	at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:81)
    > 	at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    > 	at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    > 	at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:81)
    > 	at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    > 	at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    > 	at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:135)
    > 	at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:278)
    > 	at org.exist.xquery.FunctionCall.eval(FunctionCall.java:205)
    > 	at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    > 	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:155)
    > 	at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    > 	at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    > 	at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    > 	at org.exist.xquery.XQuery.execute(XQuery.java:239)
    > 	at org.exist.xquery.XQuery.execute(XQuery.java:194)
    > 	at org.exist.http.urlrewrite.XQueryURLRewrite.runQuery(XQueryURLRewrite.java:634)
    > 	at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:247)
    > 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
    > 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:421)
    > 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
    > 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:456)
    > 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
    > 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:930)
    > 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358)
    > 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
    > 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:866)
    > 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
    > 	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
    > 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
    > 	at org.eclipse.jetty.server.Server.handle(Server.java:351)
    > 	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:594)
    > 	at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1059)
    > 	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:764)
    > 	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217)
    > 	at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:424)
    > 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:506)
    > 	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
    > 	at java.lang.Thread.run(Thread.java:619)
    
    
    Attachment (smime.p7s): application/x-pkcs7-signature, 5841 bytes
    ------------------------------------------------------------------------------
    Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
    Tap into the largest installed PC base & get more eyes on your game by
    optimizing for Intel(R) Graphics Technology. Get started today with the
    Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
    http://p.sf.net/sfu/intelisp-dev2dev
    _______________________________________________
    Exist-open mailing list
    Exist-open <at> lists.sourceforge.net
    https://lists.sourceforge.net/lists/listinfo/exist-open
    
    Thomas White | 1 Dec 08:48 2010
    Picon

    Re: Can't find bundle for base name org.apache.xerces.impl.msg.XMLMessages, locale en_GB

    Adam,
    
    I do not think the problem is related to the code in trunk.
    
    Once I was able to solve this issue by clearing the path variable in
    the batch file that starts eXist, This leads me to the theory that
    part of xerces loads instead from the endorsed directory from
    somewhere else (found in the path or class-path etc) and then when it
    tries to load the rest it ca not find it and throws an error.
    
    Is there a way to limit loading of xerces to be from exist library
    directories only. I have a very strong gut feeling this will solve the
    issue.
    
    Thank you once again for your help.
    
    Thomas
    
    ------
    
    Thomas White
    
    Mobile:+44 7711 922 966
    Skype: thomaswhite
    gTalk: thomas.0007
    http://www.linkedin.com/in/thomaswhite0007
    http://www.facebook.com/thomas.0007
    
    On 1 December 2010 01:15, Adam Retter <adam <at> exist-db.org> wrote:
    > Hi Thomas,
    >
    > Are you using the latest release of trunk? The reason I ask is that
    > after testing against that, I cannot see the same issue that you are
    > encountering. It may be that perhaps your test case is over
    > simplifying the issue that you are encountering?
    >
    > I have executed your form against your xquery and submitted the
    > attached image that you provided. I do not get any exceptions or
    > traces, the result that I get back from eXist-db seems correct, I
    > attach a screenshot of the result for your appraisal.
    >
    >
    >
    > On 1 December 2010 00:49, Thomas White <thomas.0007 <at> gmail.com> wrote:
    >> Adam,
    >>
    >> Please find the files to reproduced the case.
    >>
    >> <html>
    >>    <body>
    >>        <form action="upload.xql" enctype="multipart/form-data" method="post">
    >>            <input type="hidden" name="hidden" value="hidden"/>
    >>            <p> Type some text:<br/>
    >>                <input type="text" name="textline" size="30"/>
    >>            </p>
    >>            <p> Please specify a file<br/>
    >>                <input type="file" name="datafile" size="40"/>
    >>            </p>
    >>            <div>
    >>                <input type="submit" value="Send"/>
    >>            </div>
    >>        </form>
    >>    </body>
    >> </html>
    >>
    >> ------
    >>
    >> xquery version "1.0"  encoding "UTF-8";
    >>
    >> declare option exist:serialize "method=xml  media-type=text/xml";
    >> let $request-parameter-names := request:get-parameter-names()
    >>
    >> return element root {
    >>     element request-parameter-names { request:get-parameter-names() },
    >>     for $i in request:get-parameter-names() return
    >>          for $value in request:get-parameter($i, '')[. != ''] return
    >>             element { $i} { $value }
    >>    ,
    >>    element name { request:get-uploaded-file-name("datafile")},
    >>    element file { request:get-uploaded-file-data( 'datafile')}
    >> }
    >>
    >>
    >> Thank you very much for your help.
    >>
    >> Thomas
    >>
    >>
    >>
    >> ------
    >>
    >> Thomas White
    >>
    >> Mobile:+44 7711 922 966
    >> Skype: thomaswhite
    >> gTalk: thomas.0007
    >> http://www.linkedin.com/in/thomaswhite0007
    >> http://www.facebook.com/thomas.0007
    >>
    >>
    >> On 1 December 2010 00:36, Adam Retter <adam <at> exist-db.org> wrote:
    >>>
    >>> Hi Thomas,
    >>>
    >>> I will try to resolve this. Can you provide us with the file that you uploaded and the steps that lead to this.
    >>>
    >>> Cheers Adam
    >>>
    >>> On 1 Dec 2010 00:32, "Thomas White" <thomas.0007 <at> gmail.com> wrote:
    >>> > Dear all,
    >>> >
    >>> > Code from the trunk, WIndows XP, JAVA 1.6_0_21
    >>> >
    >>> > I am working on a file uploading query and a code that worked before now
    >>> > returns the message
    >>> > * Can't find bundle for base name
    >>> > org.apache.xerces.impl.msg.XMLMessages, locale en_GB
    >>> > *when I try to upload a file.
    >>> >
    >>> > There have been some complains in the list before but I do not think there
    >>> > was a final solution for it.
    >>> > I do remember some time ago, the same problem derived me completely mad and
    >>> > at the end I decided to reinstall my whole laptop.
    >>> >
    >>> > Now, I am against a very aggressive deadline and every hour counts.
    >>> >
    >>> > Please, please help me to resolve this issue.
    >>> >
    >>> > Regards,
    >>> > Thomas
    >>> >
    >>> > ------------------------------
    >>> >
    >>> > java.util.MissingResourceException: Can't find bundle for base name
    >>> > org.apache.xerces.impl.msg.XMLMessages, locale en_GB
    >>> > at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427)
    >>> > at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250)
    >>> > at java.util.ResourceBundle.getBundle(ResourceBundle.java:777)
    >>> > at org.apache.xerces.impl.msg.XMLMessageFormatter.formatMessage(Unknown Source)
    >>> > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    >>> > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    >>> > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    >>> > at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
    >>> > at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown
    >>> > Source)
    >>> > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
    >>> > Source)
    >>> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    >>> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    >>> > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    >>> > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    >>> > at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    >>> > at org.exist.xquery.functions.request.GetData.eval(GetData.java:166)
    >>> > 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:59)
    >>> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    >>> > at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:72)
    >>> > at org.exist.xquery.functions.request.SetAttribute.eval(SetAttribute.java:101)
    >>> > at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:55)
    >>> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    >>> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    >>> > at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:81)
    >>> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    >>> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    >>> > at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:81)
    >>> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    >>> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    >>> > at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:135)
    >>> > at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:278)
    >>> > at org.exist.xquery.FunctionCall.eval(FunctionCall.java:205)
    >>> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    >>> > 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:155)
    >>> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    >>> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    >>> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    >>> > at org.exist.xquery.XQuery.execute(XQuery.java:239)
    >>> > at org.exist.xquery.XQuery.execute(XQuery.java:194)
    >>> > at org.exist.http.urlrewrite.XQueryURLRewrite.runQuery(XQueryURLRewrite.java:634)
    >>> > at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:247)
    >>> > at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
    >>> > at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:421)
    >>> > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
    >>> > at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:456)
    >>> > at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
    >>> > at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:930)
    >>> > at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358)
    >>> > at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
    >>> > at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:866)
    >>> > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
    >>> > at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
    >>> > at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
    >>> > at org.eclipse.jetty.server.Server.handle(Server.java:351)
    >>> > at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:594)
    >>> > at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1059)
    >>> > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:764)
    >>> > at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217)
    >>> > at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:424)
    >>> > at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:506)
    >>> > at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
    >>> > at java.lang.Thread.run(Thread.java:619)
    >>
    >
    >
    >
    > --
    > Adam Retter
    >
    > eXist Developer
    > { United Kingdom }
    > adam <at> exist-db.org
    > irc://irc.freenode.net/existdb
    >
    
    ------------------------------------------------------------------------------
    Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
    Tap into the largest installed PC base & get more eyes on your game by
    optimizing for Intel(R) Graphics Technology. Get started today with the
    Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
    http://p.sf.net/sfu/intelisp-dev2dev
    _______________________________________________
    Exist-open mailing list
    Exist-open <at> lists.sourceforge.net
    https://lists.sourceforge.net/lists/listinfo/exist-open
    
    Wolfgang Meier | 1 Dec 11:38 2010

    Re: Bugfix: Index error

    Hi Anton,
    
    > The data loss happens in function fnp2:application-ensure (bellow), because seeking in an
    > range index fails and respective document is over-stored again.
    >
    > Could this patch be the my sickness pill? :-)
    
    Very likely. The bug most often occurs in the range index. Some range
    index lookups will fail.
    
    Wolfgang
    
    ------------------------------------------------------------------------------
    Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
    Tap into the largest installed PC base & get more eyes on your game by
    optimizing for Intel(R) Graphics Technology. Get started today with the
    Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
    http://p.sf.net/sfu/intelisp-dev2dev
    
    Adam Retter | 1 Dec 13:03 2010

    Re: Can't find bundle for base name org.apache.xerces.impl.msg.XMLMessages, locale en_GB

    Thomas,
    
    Unless I can reproduce the problem here then I really cant fix it,
    because I cannot see what I am fixing. If you could provide someway
    for me to reproduce the problem, then I will of course look into it.
    
    On 1 December 2010 07:48, Thomas White <thomas.0007 <at> gmail.com> wrote:
    > Adam,
    >
    > I do not think the problem is related to the code in trunk.
    >
    > Once I was able to solve this issue by clearing the path variable in
    > the batch file that starts eXist, This leads me to the theory that
    > part of xerces loads instead from the endorsed directory from
    > somewhere else (found in the path or class-path etc) and then when it
    > tries to load the rest it ca not find it and throws an error.
    >
    > Is there a way to limit loading of xerces to be from exist library
    > directories only. I have a very strong gut feeling this will solve the
    > issue.
    >
    > Thank you once again for your help.
    >
    > Thomas
    >
    >
    > ------
    >
    > Thomas White
    >
    > Mobile:+44 7711 922 966
    > Skype: thomaswhite
    > gTalk: thomas.0007
    > http://www.linkedin.com/in/thomaswhite0007
    > http://www.facebook.com/thomas.0007
    >
    >
    >
    > On 1 December 2010 01:15, Adam Retter <adam <at> exist-db.org> wrote:
    >> Hi Thomas,
    >>
    >> Are you using the latest release of trunk? The reason I ask is that
    >> after testing against that, I cannot see the same issue that you are
    >> encountering. It may be that perhaps your test case is over
    >> simplifying the issue that you are encountering?
    >>
    >> I have executed your form against your xquery and submitted the
    >> attached image that you provided. I do not get any exceptions or
    >> traces, the result that I get back from eXist-db seems correct, I
    >> attach a screenshot of the result for your appraisal.
    >>
    >>
    >>
    >> On 1 December 2010 00:49, Thomas White <thomas.0007 <at> gmail.com> wrote:
    >>> Adam,
    >>>
    >>> Please find the files to reproduced the case.
    >>>
    >>> <html>
    >>>    <body>
    >>>        <form action="upload.xql" enctype="multipart/form-data" method="post">
    >>>            <input type="hidden" name="hidden" value="hidden"/>
    >>>            <p> Type some text:<br/>
    >>>                <input type="text" name="textline" size="30"/>
    >>>            </p>
    >>>            <p> Please specify a file<br/>
    >>>                <input type="file" name="datafile" size="40"/>
    >>>            </p>
    >>>            <div>
    >>>                <input type="submit" value="Send"/>
    >>>            </div>
    >>>        </form>
    >>>    </body>
    >>> </html>
    >>>
    >>> ------
    >>>
    >>> xquery version "1.0"  encoding "UTF-8";
    >>>
    >>> declare option exist:serialize "method=xml  media-type=text/xml";
    >>> let $request-parameter-names := request:get-parameter-names()
    >>>
    >>> return element root {
    >>>     element request-parameter-names { request:get-parameter-names() },
    >>>     for $i in request:get-parameter-names() return
    >>>          for $value in request:get-parameter($i, '')[. != ''] return
    >>>             element { $i} { $value }
    >>>    ,
    >>>    element name { request:get-uploaded-file-name("datafile")},
    >>>    element file { request:get-uploaded-file-data( 'datafile')}
    >>> }
    >>>
    >>>
    >>> Thank you very much for your help.
    >>>
    >>> Thomas
    >>>
    >>>
    >>>
    >>> ------
    >>>
    >>> Thomas White
    >>>
    >>> Mobile:+44 7711 922 966
    >>> Skype: thomaswhite
    >>> gTalk: thomas.0007
    >>> http://www.linkedin.com/in/thomaswhite0007
    >>> http://www.facebook.com/thomas.0007
    >>>
    >>>
    >>> On 1 December 2010 00:36, Adam Retter <adam <at> exist-db.org> wrote:
    >>>>
    >>>> Hi Thomas,
    >>>>
    >>>> I will try to resolve this. Can you provide us with the file that you uploaded and the steps that lead to this.
    >>>>
    >>>> Cheers Adam
    >>>>
    >>>> On 1 Dec 2010 00:32, "Thomas White" <thomas.0007 <at> gmail.com> wrote:
    >>>> > Dear all,
    >>>> >
    >>>> > Code from the trunk, WIndows XP, JAVA 1.6_0_21
    >>>> >
    >>>> > I am working on a file uploading query and a code that worked before now
    >>>> > returns the message
    >>>> > * Can't find bundle for base name
    >>>> > org.apache.xerces.impl.msg.XMLMessages, locale en_GB
    >>>> > *when I try to upload a file.
    >>>> >
    >>>> > There have been some complains in the list before but I do not think there
    >>>> > was a final solution for it.
    >>>> > I do remember some time ago, the same problem derived me completely mad and
    >>>> > at the end I decided to reinstall my whole laptop.
    >>>> >
    >>>> > Now, I am against a very aggressive deadline and every hour counts.
    >>>> >
    >>>> > Please, please help me to resolve this issue.
    >>>> >
    >>>> > Regards,
    >>>> > Thomas
    >>>> >
    >>>> > ------------------------------
    >>>> >
    >>>> > java.util.MissingResourceException: Can't find bundle for base name
    >>>> > org.apache.xerces.impl.msg.XMLMessages, locale en_GB
    >>>> > at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427)
    >>>> > at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250)
    >>>> > at java.util.ResourceBundle.getBundle(ResourceBundle.java:777)
    >>>> > at org.apache.xerces.impl.msg.XMLMessageFormatter.formatMessage(Unknown Source)
    >>>> > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    >>>> > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    >>>> > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    >>>> > at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
    >>>> > at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown
    >>>> > Source)
    >>>> > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
    >>>> > Source)
    >>>> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    >>>> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    >>>> > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    >>>> > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    >>>> > at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    >>>> > at org.exist.xquery.functions.request.GetData.eval(GetData.java:166)
    >>>> > 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:59)
    >>>> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    >>>> > at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:72)
    >>>> > at org.exist.xquery.functions.request.SetAttribute.eval(SetAttribute.java:101)
    >>>> > at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:55)
    >>>> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    >>>> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    >>>> > at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:81)
    >>>> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    >>>> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    >>>> > at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:81)
    >>>> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    >>>> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    >>>> > at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:135)
    >>>> > at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:278)
    >>>> > at org.exist.xquery.FunctionCall.eval(FunctionCall.java:205)
    >>>> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    >>>> > 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:155)
    >>>> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    >>>> > at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    >>>> > at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
    >>>> > at org.exist.xquery.XQuery.execute(XQuery.java:239)
    >>>> > at org.exist.xquery.XQuery.execute(XQuery.java:194)
    >>>> > at org.exist.http.urlrewrite.XQueryURLRewrite.runQuery(XQueryURLRewrite.java:634)
    >>>> > at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:247)
    >>>> > at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
    >>>> > at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:421)
    >>>> > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
    >>>> > at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:456)
    >>>> > at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
    >>>> > at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:930)
    >>>> > at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358)
    >>>> > at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
    >>>> > at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:866)
    >>>> > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
    >>>> > at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
    >>>> > at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
    >>>> > at org.eclipse.jetty.server.Server.handle(Server.java:351)
    >>>> > at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:594)
    >>>> > at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1059)
    >>>> > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:764)
    >>>> > at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217)
    >>>> > at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:424)
    >>>> > at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:506)
    >>>> > at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
    >>>> > at java.lang.Thread.run(Thread.java:619)
    >>>
    >>
    >>
    >>
    >> --
    >> Adam Retter
    >>
    >> eXist Developer
    >> { United Kingdom }
    >> adam <at> exist-db.org
    >> irc://irc.freenode.net/existdb
    >>
    >
    
    --
    
    -- 
    Adam Retter
    
    eXist Developer
    { United Kingdom }
    adam <at> exist-db.org
    irc://irc.freenode.net/existdb
    
    ------------------------------------------------------------------------------
    Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
    Tap into the largest installed PC base & get more eyes on your game by
    optimizing for Intel(R) Graphics Technology. Get started today with the
    Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
    http://p.sf.net/sfu/intelisp-dev2dev
    _______________________________________________
    Exist-open mailing list
    Exist-open <at> lists.sourceforge.net
    https://lists.sourceforge.net/lists/listinfo/exist-open
    
    Ron Van den Branden | 1 Dec 14:24 2010
    Picon

    a stylesheet for XQuery Unit testing in eXist-1.4

    Hi all,
    
    As you may have noticed from my activity on the list (absolutely no 
    spamming intended!), I'm quite heavily updating my old XQuery code to 
    the Lucene FT indexing and searching capabilities of eXist-1.4.x, and 
    have been hitting a couple of bugs in this area. I really discovered the 
    ease of the XQuery Unit testing framework in eXist-trunk for cooking up 
    test cases, and wondered how the same test code could be put to work for 
    eXist-1.4.x (which lacks the testing framework). That would make it much 
    easier to compare the behaviour of both versions of eXist, identify 
    possible bugs, and eventually choose which version best suits my 
    (tightening) development time frame.
    
    Therefore I created an XSLT stylesheet that transforms XQuery Unit test 
    files from XML to natively executable XQuery code (see attachment), 
    which can be executed in eXist-1.4.x as well. I've written up a short 
    rationale at 
    <http://rvdb.wordpress.com/2010/12/01/xquery-unit-testing-in-exist-1-4/>.
    
    I hope it can help others as much as it helps me...
    
    Kind regards,
    
    Ron
    
    -- 
    Ron Van den Branden
    Wetenschappelijk attaché / Senior Researcher
    
    Centrum voor Teksteditie en Bronnenstudie - CTB (KANTL)
    Centre for Scholarly Editing and Document Studies
    Koninklijke Academie voor Nederlandse Taal- en Letterkunde
    Royal Academy of Dutch Language and Literature
    Koningstraat 18 / b-9000 Gent / Belgium
    tel: +32 9 265 93 51 / fax: +32 9 265 93 49
    E-mail : ron.vandenbranden <at> kantl.be
    www.kantl.be/ctb
    
    
    Attachment (UnitTest2XQuery.xsl): application/xml, 3682 bytes
    ------------------------------------------------------------------------------
    Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
    Tap into the largest installed PC base & get more eyes on your game by
    optimizing for Intel(R) Graphics Technology. Get started today with the
    Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
    http://p.sf.net/sfu/intelisp-dev2dev
    _______________________________________________
    Exist-open mailing list
    Exist-open <at> lists.sourceforge.net
    https://lists.sourceforge.net/lists/listinfo/exist-open
    

    Gmane