<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>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.0+</li>
<li>Operating System version: mac</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">Assume that there is an interface below：</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package com.youzan.nova.service;

import java.util.Set;

public interface OverrideService {

    void invoke(Integer id, Set&lt;String&gt; orderNumbers);

    void invoke(Long id, Set&lt;String&gt; orderNumbers);

}

package com.youzan.nova.service;

import java.util.Set;

public class OverrideServiceImpl implements OverrideService {
    @Override
    public void invoke(Integer id, Set&lt;String&gt; orderNumbers) {
        System.out.println(id);
    }

    @Override
    public void invoke(Long id, Set&lt;String&gt; orderNumbers) {
        System.out.println(id);
    }
}
"><pre class="notranslate"><code class="notranslate">package com.youzan.nova.service;

import java.util.Set;

public interface OverrideService {

    void invoke(Integer id, Set&lt;String&gt; orderNumbers);

    void invoke(Long id, Set&lt;String&gt; orderNumbers);

}

package com.youzan.nova.service;

import java.util.Set;

public class OverrideServiceImpl implements OverrideService {
    @Override
    public void invoke(Integer id, Set&lt;String&gt; orderNumbers) {
        System.out.println(id);
    }

    @Override
    public void invoke(Long id, Set&lt;String&gt; orderNumbers) {
        System.out.println(id);
    }
}

</code></pre></div>
<p dir="auto">Start telnet call service：</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="invoke com.youzan.nova.service.OverrideService.invoke(&quot;13&quot;, Set[&quot;1&quot;])
invoke com.youzan.nova.service.OverrideService.invoke(&quot;13L&quot;, Set[&quot;1&quot;])"><pre class="notranslate"><code class="notranslate">invoke com.youzan.nova.service.OverrideService.invoke("13", Set["1"])
invoke com.youzan.nova.service.OverrideService.invoke("13L", Set["1"])
</code></pre></div>
<p dir="auto">Always only call the method <code class="notranslate">invoke(Long id, Set&lt;String&gt; orderNumbers)</code>.</p>
<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.6.x</li>
<li>Operating System version: MacOS 10.12.6</li>
<li>Java version: Java 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>Build a provider demo, add RpcContext.getServerContext().setAttachment("key","value");</li>
<li>Build a consumer demo. Call provider service by generic.</li>
<li>RpcContext.getServerContext().getAttachment("key");</li>
</ol>
<p dir="auto">What do you expected from the above steps？<br>
Get the value which provider set in the RpcContext.getServerContext() attachment</p>
<p dir="auto">What actually happens?<br>
Null. Can't get the value which provider set in the RpcContext.getServerContext() attachment</p>
<p dir="auto">Cause:<br>
GenericFilter return a new RpcResult without setting setAttachments</p>
<p dir="auto">If there is an exception, please attach the exception trace:</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>