You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Jon Coogan (JIRA)" <ji...@apache.org> on 2009/04/17 01:25:14 UTC

[jira] Created: (ODE-582) SelectionFailure when using XPath functions insert-as-first-into and insert-as-last-into

SelectionFailure when using XPath functions insert-as-first-into and insert-as-last-into
----------------------------------------------------------------------------------------

                 Key: ODE-582
                 URL: https://issues.apache.org/jira/browse/ODE-582
             Project: ODE
          Issue Type: Bug
          Components: BPEL Runtime
         Environment: Ode 1.X
            Reporter: Jon Coogan
         Attachments: TestInsertAsFirstInto.zip, TestInsertAsLastInto.zip

I'm having trouble with the XPath functions insert-as-first-into and insert-as-last-into.  I get a selectionFailure if I try to insert a child into a parent that does not yet contain other children.  This happens with both insert-as-first-into and insert-as-last-into.  

As an example, say I have the following elements/types:

   <element name="RecordSet" type="tns:RecordSetType"/> 
    <complexType name="RecordSetType">
        <sequence>
            <element maxOccurs="unbounded" minOccurs="0" ref="tns:Record"/>
        </sequence>
    </complexType>
    
    <element name="Record" type="tns:RecordType"/>
     <complexType name="RecordType">
        <sequence>
            <element maxOccurs="1" minOccurs="1" name="SomeValue" type="string"/>
            <element maxOccurs="1" minOccurs="1" name="AnotherValue" type="string"/>
        </sequence>
    </complexType>

So RecordSet can contain 0 or more Records.  If I try to insert a Record into an empty RecordSet (0 Records) I get a selectionFailure.  I have to initialize the RecordSet variable with at least one dummy Record before it will work.

See the attached test processes.  There is one for insert-as-first-into and one for insert-as-last into.  The process input is ignored.  The process should return a recordset (see above) that contains a single record.  Instead, I get a selectionFailure fault at runtime.  I can work around this by Initializing the RecordSet with a dummy record prior to doing the insert.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ODE-582) SelectionFailure when using XPath functions insert-as-first-into and insert-as-last-into

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

Jon Coogan updated ODE-582:
---------------------------

    Attachment: TestInsertAsLastInto.zip
                TestInsertAsFirstInto.zip

Test Processes for insert-as-first-into and insert-as-last into.

> SelectionFailure when using XPath functions insert-as-first-into and insert-as-last-into
> ----------------------------------------------------------------------------------------
>
>                 Key: ODE-582
>                 URL: https://issues.apache.org/jira/browse/ODE-582
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>         Environment: Ode 1.X
>            Reporter: Jon Coogan
>         Attachments: TestInsertAsFirstInto.zip, TestInsertAsLastInto.zip
>
>
> I'm having trouble with the XPath functions insert-as-first-into and insert-as-last-into.  I get a selectionFailure if I try to insert a child into a parent that does not yet contain other children.  This happens with both insert-as-first-into and insert-as-last-into.  
> As an example, say I have the following elements/types:
>    <element name="RecordSet" type="tns:RecordSetType"/> 
>     <complexType name="RecordSetType">
>         <sequence>
>             <element maxOccurs="unbounded" minOccurs="0" ref="tns:Record"/>
>         </sequence>
>     </complexType>
>     
>     <element name="Record" type="tns:RecordType"/>
>      <complexType name="RecordType">
>         <sequence>
>             <element maxOccurs="1" minOccurs="1" name="SomeValue" type="string"/>
>             <element maxOccurs="1" minOccurs="1" name="AnotherValue" type="string"/>
>         </sequence>
>     </complexType>
> So RecordSet can contain 0 or more Records.  If I try to insert a Record into an empty RecordSet (0 Records) I get a selectionFailure.  I have to initialize the RecordSet variable with at least one dummy Record before it will work.
> See the attached test processes.  There is one for insert-as-first-into and one for insert-as-last into.  The process input is ignored.  The process should return a recordset (see above) that contains a single record.  Instead, I get a selectionFailure fault at runtime.  I can work around this by Initializing the RecordSet with a dummy record prior to doing the insert.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ODE-582) SelectionFailure when using XPath functions insert-as-first-into and insert-as-last-into

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

Karthick Sankarachary commented on ODE-582:
-------------------------------------------

That's wierd. I can't duplicate the selection failure with either test case. Can you attach the log messages related to the failure?

> SelectionFailure when using XPath functions insert-as-first-into and insert-as-last-into
> ----------------------------------------------------------------------------------------
>
>                 Key: ODE-582
>                 URL: https://issues.apache.org/jira/browse/ODE-582
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>         Environment: Ode 1.X
>            Reporter: Jon Coogan
>            Assignee: Karthick Sankarachary
>         Attachments: TestInsertAsFirstInto.zip, TestInsertAsLastInto.zip
>
>
> I'm having trouble with the XPath functions insert-as-first-into and insert-as-last-into.  I get a selectionFailure if I try to insert a child into a parent that does not yet contain other children.  This happens with both insert-as-first-into and insert-as-last-into.  
> As an example, say I have the following elements/types:
>    <element name="RecordSet" type="tns:RecordSetType"/> 
>     <complexType name="RecordSetType">
>         <sequence>
>             <element maxOccurs="unbounded" minOccurs="0" ref="tns:Record"/>
>         </sequence>
>     </complexType>
>     
>     <element name="Record" type="tns:RecordType"/>
>      <complexType name="RecordType">
>         <sequence>
>             <element maxOccurs="1" minOccurs="1" name="SomeValue" type="string"/>
>             <element maxOccurs="1" minOccurs="1" name="AnotherValue" type="string"/>
>         </sequence>
>     </complexType>
> So RecordSet can contain 0 or more Records.  If I try to insert a Record into an empty RecordSet (0 Records) I get a selectionFailure.  I have to initialize the RecordSet variable with at least one dummy Record before it will work.
> See the attached test processes.  There is one for insert-as-first-into and one for insert-as-last into.  The process input is ignored.  The process should return a recordset (see above) that contains a single record.  Instead, I get a selectionFailure fault at runtime.  I can work around this by Initializing the RecordSet with a dummy record prior to doing the insert.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (ODE-582) SelectionFailure when using XPath functions insert-as-first-into and insert-as-last-into

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

Karthick Sankarachary reassigned ODE-582:
-----------------------------------------

    Assignee: Karthick Sankarachary

> SelectionFailure when using XPath functions insert-as-first-into and insert-as-last-into
> ----------------------------------------------------------------------------------------
>
>                 Key: ODE-582
>                 URL: https://issues.apache.org/jira/browse/ODE-582
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>         Environment: Ode 1.X
>            Reporter: Jon Coogan
>            Assignee: Karthick Sankarachary
>         Attachments: TestInsertAsFirstInto.zip, TestInsertAsLastInto.zip
>
>
> I'm having trouble with the XPath functions insert-as-first-into and insert-as-last-into.  I get a selectionFailure if I try to insert a child into a parent that does not yet contain other children.  This happens with both insert-as-first-into and insert-as-last-into.  
> As an example, say I have the following elements/types:
>    <element name="RecordSet" type="tns:RecordSetType"/> 
>     <complexType name="RecordSetType">
>         <sequence>
>             <element maxOccurs="unbounded" minOccurs="0" ref="tns:Record"/>
>         </sequence>
>     </complexType>
>     
>     <element name="Record" type="tns:RecordType"/>
>      <complexType name="RecordType">
>         <sequence>
>             <element maxOccurs="1" minOccurs="1" name="SomeValue" type="string"/>
>             <element maxOccurs="1" minOccurs="1" name="AnotherValue" type="string"/>
>         </sequence>
>     </complexType>
> So RecordSet can contain 0 or more Records.  If I try to insert a Record into an empty RecordSet (0 Records) I get a selectionFailure.  I have to initialize the RecordSet variable with at least one dummy Record before it will work.
> See the attached test processes.  There is one for insert-as-first-into and one for insert-as-last into.  The process input is ignored.  The process should return a recordset (see above) that contains a single record.  Instead, I get a selectionFailure fault at runtime.  I can work around this by Initializing the RecordSet with a dummy record prior to doing the insert.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ODE-582) SelectionFailure when using XPath functions insert-as-first-into and insert-as-last-into

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

Jon Coogan commented on ODE-582:
--------------------------------

My apologies.  My environment must be messed up somehow.  I started over from scratch and it now works correctly.

> SelectionFailure when using XPath functions insert-as-first-into and insert-as-last-into
> ----------------------------------------------------------------------------------------
>
>                 Key: ODE-582
>                 URL: https://issues.apache.org/jira/browse/ODE-582
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>         Environment: Ode 1.X
>            Reporter: Jon Coogan
>            Assignee: Karthick Sankarachary
>         Attachments: TestInsertAsFirstInto.zip, TestInsertAsLastInto.zip
>
>
> I'm having trouble with the XPath functions insert-as-first-into and insert-as-last-into.  I get a selectionFailure if I try to insert a child into a parent that does not yet contain other children.  This happens with both insert-as-first-into and insert-as-last-into.  
> As an example, say I have the following elements/types:
>    <element name="RecordSet" type="tns:RecordSetType"/> 
>     <complexType name="RecordSetType">
>         <sequence>
>             <element maxOccurs="unbounded" minOccurs="0" ref="tns:Record"/>
>         </sequence>
>     </complexType>
>     
>     <element name="Record" type="tns:RecordType"/>
>      <complexType name="RecordType">
>         <sequence>
>             <element maxOccurs="1" minOccurs="1" name="SomeValue" type="string"/>
>             <element maxOccurs="1" minOccurs="1" name="AnotherValue" type="string"/>
>         </sequence>
>     </complexType>
> So RecordSet can contain 0 or more Records.  If I try to insert a Record into an empty RecordSet (0 Records) I get a selectionFailure.  I have to initialize the RecordSet variable with at least one dummy Record before it will work.
> See the attached test processes.  There is one for insert-as-first-into and one for insert-as-last into.  The process input is ignored.  The process should return a recordset (see above) that contains a single record.  Instead, I get a selectionFailure fault at runtime.  I can work around this by Initializing the RecordSet with a dummy record prior to doing the insert.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (ODE-582) SelectionFailure when using XPath functions insert-as-first-into and insert-as-last-into

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

Karthick Sankarachary resolved ODE-582.
---------------------------------------

    Resolution: Cannot Reproduce

> SelectionFailure when using XPath functions insert-as-first-into and insert-as-last-into
> ----------------------------------------------------------------------------------------
>
>                 Key: ODE-582
>                 URL: https://issues.apache.org/jira/browse/ODE-582
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>         Environment: Ode 1.X
>            Reporter: Jon Coogan
>            Assignee: Karthick Sankarachary
>         Attachments: TestInsertAsFirstInto.zip, TestInsertAsLastInto.zip
>
>
> I'm having trouble with the XPath functions insert-as-first-into and insert-as-last-into.  I get a selectionFailure if I try to insert a child into a parent that does not yet contain other children.  This happens with both insert-as-first-into and insert-as-last-into.  
> As an example, say I have the following elements/types:
>    <element name="RecordSet" type="tns:RecordSetType"/> 
>     <complexType name="RecordSetType">
>         <sequence>
>             <element maxOccurs="unbounded" minOccurs="0" ref="tns:Record"/>
>         </sequence>
>     </complexType>
>     
>     <element name="Record" type="tns:RecordType"/>
>      <complexType name="RecordType">
>         <sequence>
>             <element maxOccurs="1" minOccurs="1" name="SomeValue" type="string"/>
>             <element maxOccurs="1" minOccurs="1" name="AnotherValue" type="string"/>
>         </sequence>
>     </complexType>
> So RecordSet can contain 0 or more Records.  If I try to insert a Record into an empty RecordSet (0 Records) I get a selectionFailure.  I have to initialize the RecordSet variable with at least one dummy Record before it will work.
> See the attached test processes.  There is one for insert-as-first-into and one for insert-as-last into.  The process input is ignored.  The process should return a recordset (see above) that contains a single record.  Instead, I get a selectionFailure fault at runtime.  I can work around this by Initializing the RecordSet with a dummy record prior to doing the insert.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.