synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vijayaratha Vijayasingam (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SYNAPSE-889) Null pointer exception is thrown, if xpath expression doesn't match with the property
Date Wed, 11 Jul 2012 20:07:36 GMT
Vijayaratha Vijayasingam created SYNAPSE-889:
------------------------------------------------

             Summary: 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
            Priority: Critical
             Fix For: FUTURE


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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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