doc-available() error on non existing document URI

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

doc-available() error on non existing document URI

Florent Georges-3
  Hi

  I found something really weird related to doc-available().  If I use
it with a non existent URI, it throws an error:

    Cannot load "does/not/exist/doc.xml" with webapp loader

despite of:

    http://www.w3.org/TR/xquery-operators/#func-doc-available

  Here is the top of the stack:

org.orbeon.oxf.resources.WebAppResourceManagerImpl.getContentAsStream
org.orbeon.oxf.resources.ResourceManagerBase.getContentAsSAX
org.orbeon.oxf.resources.PriorityResourceManagerImpl$4.run
org.orbeon.oxf.resources.PriorityResourceManagerImpl.delegate
org.orbeon.oxf.resources.PriorityResourceManagerImpl.getContentAsSAX
org.orbeon.oxf.processor.generator.URLGenerator$OXFResourceHandler.readXML
org.orbeon.oxf.processor.generator.URLGenerator$1.readImpl
org.orbeon.oxf.processor.ProcessorImpl$7.read
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read
org.orbeon.oxf.xml.ProcessorOutputXMLReader.parse
org.orbeon.oxf.xml.ForwardingXMLReader.parse
org.orbeon.saxon.event.Sender.sendSAXSource
org.orbeon.saxon.event.Sender.send
org.orbeon.saxon.event.Sender.send
org.orbeon.saxon.functions.Document.makeDoc
org.orbeon.saxon.functions.Doc.doc
org.orbeon.saxon.functions.Doc.evaluateItem
....

  Is it a known problem?  Is there any work around for it?

  Best regards,

--drkm





















__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités
http://mail.yahoo.fr Yahoo! Mail



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: doc-available() error on non existing document URI

Alessandro Vernet
Administrator
Florent,

On Thu, May 15, 2008 at 7:54 AM, Florent Georges <[hidden email]> wrote:
>  I found something really weird related to doc-available().  If I use
> it with a non existent URI, it throws an error:
>
>    Cannot load "does/not/exist/doc.xml" with webapp loader
>
> despite of:
>
>    http://www.w3.org/TR/xquery-operators/#func-doc-available

I can see this. The issue is in Saxon 8 and we patched it to fixed
this. The issue has been fixed in Saxon 9, so we won't have to apply
that patch when moving to Saxon 9. See below the bug for reference,
and you can get this one in the next nightly build.

http://forge.objectweb.org/tracker/index.php?func=detail&aid=309736&group_id=168&atid=350207

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: doc-available() error on non existing document URI

Florent Georges-3
Alessandro Vernet wrote:

  Hi

> I can see this. The issue is in Saxon 8 and we patched it to
> fixed this. The issue has been fixed in Saxon 9, so we won't
> have to apply that patch when moving to Saxon 9. See below
> the bug for reference, and you can get this one in the next
> nightly build.

  Thanks Alex.  I'll see if we can afford switching to a nightly build,
or if we'll have to wait for the next release (which I guess is not so
far away.)

  Regards,

--drkm



















__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités
http://mail.yahoo.fr Yahoo! Mail



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws