[ 
https://issues.apache.org/jira/browse/SYNAPSE-955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13797304#comment-13797304
 ] 

Andreas Veithen commented on SYNAPSE-955:
-----------------------------------------

I applied xmlstreamingxpathv_6.patch, but the tests fail to execute:

{noformat}
java.io.FileNotFoundException: 
/Users/veithen/dev/maven/synapse/modules/core/modules/core/src/test/resources/reader.xml
 (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:120)
    at java.io.FileInputStream.<init>(FileInputStream.java:79)
    at 
org.apache.synapse.util.xmlstreaming.xpathevaluationtest.XPathAxisTestCase.getInputStream(XPathAxisTestCase.java:192)
    at 
org.apache.synapse.util.xmlstreaming.xpathevaluationtest.XPathAxisTestCase.absoluteandnamespaceTestCaseOne(XPathAxisTestCase.java:175)
{noformat}

That is because XPathAxisTestCase#getInputStream incorrectly computes the 
location of the test file. You should use Class#getResourceAsStream instead of 
creating a FileInputStream directly.

> XPath1.0 Implementation On Top Of XMLStream
> -------------------------------------------
>
>                 Key: SYNAPSE-955
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-955
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: FUTURE
>            Reporter: isuru janith ranawaka
>            Assignee: Andreas Veithen
>            Priority: Minor
>              Labels: 2013, gsoc
>         Attachments: xmlstreamingxpath.patch, xmlstreamingxpathv_2.patch, 
> xmlstreamingxpathv_3.patch, xmlstreamingxpathv_4.patch, 
> xmlstreamingxpathv_5.patch, xmlstreamingxpathv_6.patch
>
>
> Current SynapseXPath is operates on top of the Axiom Object Model and this 
> project is for evaluate XPath On top of the XMLStream. XMLStreamReader is 
> given as input and the resulting output is given as OMElements. 



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to