You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Jayant Vaish (JIRA)" <ji...@apache.org> on 2012/06/06 14:37:24 UTC

[jira] [Created] (ODE-968) Ode Extension XPath functions executes twice.

Jayant Vaish created ODE-968:
--------------------------------

             Summary: Ode Extension XPath functions executes twice.
                 Key: ODE-968
                 URL: https://issues.apache.org/jira/browse/ODE-968
             Project: ODE
          Issue Type: Bug
          Components: BPEL Runtime
            Reporter: Jayant Vaish
            Priority: Critical


When the XPath query call the ode extension xpathFunction for the first time it expects return type of NODESET, If in case it returns something else then the exception is thrown and in the catch block it executes that function again.

To reproduce this issue, unzip the attached project in your server's var/deploy/
Set logging level debug for "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString"
Now, while running this process "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString.evaluate(List args) throws XPathFunctionException" will be executed twice.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (ODE-968) Ode Extension XPath functions executes twice.

Posted by "Jayant Vaish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ODE-968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jayant Vaish updated ODE-968:
-----------------------------

    Description: 
When the XPath query call the ode extension xpathFunction for the first time it expects return type of NODESET, If in case it returns something else then the exception is thrown and in the catch block it executes that function again.

To reproduce this issue, unzip the attached project in your server's process deployment folder
Set logging level debug for "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString"
Now, while running this process "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString.evaluate(List args) throws XPathFunctionException" will be executed twice.


  was:
When the XPath query call the ode extension xpathFunction for the first time it expects return type of NODESET, If in case it returns something else then the exception is thrown and in the catch block it executes that function again.

To reproduce this issue, unzip the attached project in your server's var/deploy/
Set logging level debug for "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString"
Now, while running this process "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString.evaluate(List args) throws XPathFunctionException" will be executed twice.


    
> Ode Extension XPath functions executes twice.
> ---------------------------------------------
>
>                 Key: ODE-968
>                 URL: https://issues.apache.org/jira/browse/ODE-968
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>            Reporter: Jayant Vaish
>            Priority: Critical
>         Attachments: DomToString.zip
>
>
> When the XPath query call the ode extension xpathFunction for the first time it expects return type of NODESET, If in case it returns something else then the exception is thrown and in the catch block it executes that function again.
> To reproduce this issue, unzip the attached project in your server's process deployment folder
> Set logging level debug for "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString"
> Now, while running this process "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString.evaluate(List args) throws XPathFunctionException" will be executed twice.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (ODE-968) Ode Extension XPath functions executes twice.

Posted by "Jayant Vaish (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ODE-968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13290098#comment-13290098 ] 

Jayant Vaish commented on ODE-968:
----------------------------------

The problem with solving this issue is we are not able to get the return type of XPathFunction in advance.
As the expression containing the function information is by net.sf.saxon.xpath.XPathFunctionCall. And there is
no way we can get the return type from this. Also net.sf.saxon.xpath.XPathFunctionCall contains the function information
but it is private.
                
> Ode Extension XPath functions executes twice.
> ---------------------------------------------
>
>                 Key: ODE-968
>                 URL: https://issues.apache.org/jira/browse/ODE-968
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>            Reporter: Jayant Vaish
>            Priority: Critical
>         Attachments: DomToString.zip
>
>
> When the XPath query call the ode extension xpathFunction for the first time it expects return type of NODESET, If in case it returns something else then the exception is thrown and in the catch block it executes that function again.
> To reproduce this issue, unzip the attached project in your server's var/deploy/
> Set logging level debug for "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString"
> Now, while running this process "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString.evaluate(List args) throws XPathFunctionException" will be executed twice.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (ODE-968) Ode Extension XPath functions executes twice.

Posted by "Jayant Vaish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ODE-968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jayant Vaish updated ODE-968:
-----------------------------

    Description: 
When the XPath query call the ode extension xpathFunction for the first time it expects return type of NODESET, If in case it returns something else then the exception is thrown and in the catch block it executes that function again.

This issue is similar to ODE-969

To reproduce this issue, unzip the attached project in your server's process deployment folder
Set logging level debug for "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString"
Now, while running this process "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString.evaluate(List args) throws XPathFunctionException" will be executed twice.


  was:
When the XPath query call the ode extension xpathFunction for the first time it expects return type of NODESET, If in case it returns something else then the exception is thrown and in the catch block it executes that function again.

To reproduce this issue, unzip the attached project in your server's process deployment folder
Set logging level debug for "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString"
Now, while running this process "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString.evaluate(List args) throws XPathFunctionException" will be executed twice.


    
> Ode Extension XPath functions executes twice.
> ---------------------------------------------
>
>                 Key: ODE-968
>                 URL: https://issues.apache.org/jira/browse/ODE-968
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>            Reporter: Jayant Vaish
>            Priority: Critical
>         Attachments: DomToString.zip
>
>
> When the XPath query call the ode extension xpathFunction for the first time it expects return type of NODESET, If in case it returns something else then the exception is thrown and in the catch block it executes that function again.
> This issue is similar to ODE-969
> To reproduce this issue, unzip the attached project in your server's process deployment folder
> Set logging level debug for "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString"
> Now, while running this process "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString.evaluate(List args) throws XPathFunctionException" will be executed twice.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (ODE-968) Ode Extension XPath functions executes twice.

Posted by "Jayant Vaish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ODE-968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jayant Vaish updated ODE-968:
-----------------------------

    Attachment: DomToString.zip
    
> Ode Extension XPath functions executes twice.
> ---------------------------------------------
>
>                 Key: ODE-968
>                 URL: https://issues.apache.org/jira/browse/ODE-968
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>            Reporter: Jayant Vaish
>            Priority: Critical
>         Attachments: DomToString.zip
>
>
> When the XPath query call the ode extension xpathFunction for the first time it expects return type of NODESET, If in case it returns something else then the exception is thrown and in the catch block it executes that function again.
> To reproduce this issue, unzip the attached project in your server's var/deploy/
> Set logging level debug for "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString"
> Now, while running this process "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString.evaluate(List args) throws XPathFunctionException" will be executed twice.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (ODE-968) Ode Extension XPath functions executes twice.

Posted by "Jayant Vaish (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ODE-968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13290097#comment-13290097 ] 

Jayant Vaish commented on ODE-968:
----------------------------------

In org.apache.ode.bpel.elang.xpath20.runtime.XPath20ExpressionRuntime.evaluate(OExpression cexp, EvaluationContext ctx) throws FaultException, EvaluationException{
.....
try { someRes = evaluate(cexp, ctx, XPathConstants.NODESET); } catch (Exception e) { someRes = evaluate(cexp, ctx, XPathConstants.STRING); }
....

}

evaluate(cexp, ctx, XPathConstants.NODESET); is responsible to call the ode extension xpath function, but that function return type is not NodeList (For example it's return type is String).
So, it throws exception as String value is not converted in NodeList.
Then in the catch block it again execute that function.

                
> Ode Extension XPath functions executes twice.
> ---------------------------------------------
>
>                 Key: ODE-968
>                 URL: https://issues.apache.org/jira/browse/ODE-968
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>            Reporter: Jayant Vaish
>            Priority: Critical
>         Attachments: DomToString.zip
>
>
> When the XPath query call the ode extension xpathFunction for the first time it expects return type of NODESET, If in case it returns something else then the exception is thrown and in the catch block it executes that function again.
> To reproduce this issue, unzip the attached project in your server's var/deploy/
> Set logging level debug for "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString"
> Now, while running this process "org.apache.ode.bpel.elang.xpath20.runtime.JaxpFunctionResolver.DomToString.evaluate(List args) throws XPathFunctionException" will be executed twice.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira