synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiranya Jayathilaka (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SYNAPSE-889) Null pointer exception is thrown, if xpath expression doesn't match with the property
Date Tue, 16 Jul 2013 19:00:48 GMT

     [ https://issues.apache.org/jira/browse/SYNAPSE-889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hiranya Jayathilaka reassigned SYNAPSE-889:
-------------------------------------------

    Assignee: Hiranya Jayathilaka
    
> Null pointer exception is thrown, if xpath expression doesn't match with the property
> -------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-889
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-889
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: NIGHTLY
>            Reporter: Vijayaratha Vijayasingam
>            Assignee: Hiranya Jayathilaka
>            Priority: Critical
>             Fix For: FUTURE
>
>         Attachments: rewrite.patch
>
>
> If  property mediator's name is different from the xpath expression provided in rewrite
rule, which throws NPE, since resulted xpath is null..
> exception;
> java.lang.NullPointerException
> at java.lang.String.concat(String.java:2017)
> at org.apache.synapse.mediators.transform.url.RewriteAction.execute(RewriteAction.java:90)
> at org.apache.synapse.mediators.transform.url.RewriteRule.rewrite(RewriteRule.java:84)

> conf: 
> <inSequence>
>          <property name="protocolParam" value="s" scope="default" />
>          <rewrite>
>             <rewriterule>
>                <condition>
>                   <equal xmlns="" type="url" source="protocol" value="http" />
>                </condition>
>                <action xpath="get-property('protocolParam123')" type="append" fragment="protocol"
/>             
>             </rewriterule>
>          </rewrite>         
>          <send />
>       </inSequence>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message