<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.7</li>
<li>Operating System version: Mac</li>
<li>Java version: jdk 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>configure consumer in xml file<br>
&lt;dubbo:reference id="demoServieRpc" interface="com.aop.demo.demo.dubbo.DemoService" group="ceshi" retries="1"&gt;<br>
&lt;dubbo:parameter key="hide" value="1" hide="true"/&gt;<br>
&lt;/dubbo:reference&gt;</li>
</ol>
<p dir="auto">public interface DemoService {<br>
String sayHello();<br>
}</p>
<ol start="2" dir="auto">
<li>
<p dir="auto">define a filter in provider side<br>
<a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/activate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/activate">@activate</a>(group = "provider")<br>
public class HideParameterFilter implements Filter {<br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/OverRide/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/OverRide">@OverRide</a><br>
public Result invoke(Invoker&lt;?&gt; invoker, Invocation invocation) throws RpcException {<br>
String hide = invoker.getUrl().getParameter("hide");<br>
System.out.println("context" + RpcContext.getContext().getAttachment("hide"));<br>
System.out.println("隐式参数" + hide);<br>
return invoker.invoke(invocation);<br>
}<br>
}<br>
and we also create a file named "org.apache.dubbo.rpc.Filter" under META-INF/dubbo folder, and file content is<br>
hideParameterFilter=com.aop.demo.demo.dubbo.HideParameterFilter</p>
</li>
<li>
<p dir="auto">configure service in provider side<br>
&lt;dubbo:service interface="com.aop.demo.demo.dubbo.DemoService"<br>
ref="demoService" executes="10" group="ceshi" filter="hideParameterFilter"/&gt;</p>
</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">then consumer invode sayHello(), in provider side, hideParameterFilter should print 1.</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">hideParameterFilter print null.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">SOFARegistry is a production-level, low-latency, high-availability service registry. Can we integrate with it?</p>