Error Message Associated with xxforms:call-xpl

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

Error Message Associated with xxforms:call-xpl

Spenser Kao

Hi,

 

Has anyone experienced error similar to following one when calling xpl file with xxforms:call-xpl?

XPath syntax error at char 242 in {... 'formatted-output'), 1, 1)...}: Function string() must have no more than 1 argument

 

How did you solve the problem?

 

Regards,

 

Spenser

 



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Error Message Associated with xxforms:call-xpl

Erik Bruchez
Administrator
Spenser,

Could it be that the URI of the XPL to run that you passed is not a
string but a sequence of strings?

Can you provide the Java stack trace that is produced by OPS?

-Erik

Spenser Kao wrote:

> Hi,
>
>  
>
> Has anyone experienced error similar to following one when calling xpl
> file with xxforms:call-xpl?
>
> XPath syntax error at char 242 in {... 'formatted-output'), 1, 1)...}:
> Function string() must have no more than 1 argument
>
>  
>
> How did you solve the problem?
>
>  
>
> Regards,
>
>  
>
> Spenser
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Error Message Associated with xxforms:call-xpl

Spenser Kao
Hi Erik,

Considering the log trace log could be huge, I am providing only the
relevant part as in the attached formatted-output.log, while
query-app-data.xhtml is where xxforms:call-xpl was calling from.

I had no problem running OPS example XQuery Sandbox, and actually my demo
purpose query-app-data.xhtml is adapting the idea from view.xml of that
example, except some instance name changes and the source of input data,
which I tried both fixed input.xml and variable input.data that was the
resultset from MS SQL Server 2005 db query done in a preceding xpl file. The
trial made no difference on the error.

Appreciate your hint in advance.

Regards,
 
Spenser
-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: Wednesday, 11 October 2006 7:11 PM
To: [hidden email]
Subject: Re: [ops-users] Error Message Associated with xxforms:call-xpl

Spenser,

Could it be that the URI of the XPL to run that you passed is not a
string but a sequence of strings?

Can you provide the Java stack trace that is produced by OPS?

-Erik

Spenser Kao wrote:

> Hi,
>
>  
>
> Has anyone experienced error similar to following one when calling xpl
> file with xxforms:call-xpl?
>
> XPath syntax error at char 242 in {... 'formatted-output'), 1, 1)...}:
> Function string() must have no more than 1 argument
>
>  
>
> How did you solve the problem?
>
>  
>
> Regards,
>
>  
>
> Spenser
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

query-app-data.xhtml (2K) Download Attachment
formatted-output.log (54K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Error Message Associated with xxforms:call-xpl

Alessandro  Vernet
Administrator
Spenser,

The stack trace seems to indicate that this is a problem when
converting the result of the xxforms:call-xpl() call to a string.
Looking at the code, it is not clear to me why this would happen. Can
you try to add a /* at the end of you call, e.g.:
...'formatted-output')/*.

Alex

On 10/11/06, Spenser Kao <[hidden email]> wrote:

> Hi Erik,
>
> Considering the log trace log could be huge, I am providing only the
> relevant part as in the attached formatted-output.log, while
> query-app-data.xhtml is where xxforms:call-xpl was calling from.
>
> I had no problem running OPS example XQuery Sandbox, and actually my demo
> purpose query-app-data.xhtml is adapting the idea from view.xml of that
> example, except some instance name changes and the source of input data,
> which I tried both fixed input.xml and variable input.data that was the
> resultset from MS SQL Server 2005 db query done in a preceding xpl file. The
> trial made no difference on the error.
>
> Appreciate your hint in advance.
>
> Regards,
>
> Spenser
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
> Sent: Wednesday, 11 October 2006 7:11 PM
> To: [hidden email]
> Subject: Re: [ops-users] Error Message Associated with xxforms:call-xpl
>
> Spenser,
>
> Could it be that the URI of the XPL to run that you passed is not a
> string but a sequence of strings?
>
> Can you provide the Java stack trace that is produced by OPS?
>
> -Erik
>
> Spenser Kao wrote:
> > Hi,
> >
> >
> >
> > Has anyone experienced error similar to following one when calling xpl
> > file with xxforms:call-xpl?
> >
> > XPath syntax error at char 242 in {... 'formatted-output'), 1, 1)...}:
> > Function string() must have no more than 1 argument
> >
> >
> >
> > How did you solve the problem?
> >
> >
> >
> > Regards,
> >
> >
> >
> > Spenser
>
> --
> Orbeon - XForms Everywhere:
> http://www.orbeon.com/blog/
>
>
>
>
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet