<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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"> 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.x</li>
<li>Operating System version: MacOS</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>Execute following code in a method of a dubbo service on provider side:</li>
</ol>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="RpcContext.getServerContext().setAttachment(&quot;abc&quot;, &quot;123&quot;);"><pre class="notranslate"><span class="pl-smi">RpcContext</span>.<span class="pl-en">getServerContext</span>().<span class="pl-en">setAttachment</span>(<span class="pl-s">"abc"</span>, <span class="pl-s">"123"</span>);</pre></div>
<ol start="2" dir="auto">
<li>Execute following code in the same thread that invoke the remote dubbo service after the invoking:</li>
</ol>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Map&lt;String, String&gt; map = RpcContext.getServerContext().getAttachments();
System.out.println(&quot;context: &quot; + map.get(&quot;abc&quot;));"><pre class="notranslate"><span class="pl-smi">Map</span>&lt;<span class="pl-smi">String</span>, <span class="pl-smi">String</span>&gt; <span class="pl-s1">map</span> = <span class="pl-smi">RpcContext</span>.<span class="pl-en">getServerContext</span>().<span class="pl-en">getAttachments</span>();
<span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"context: "</span> + <span class="pl-s1">map</span>.<span class="pl-en">get</span>(<span class="pl-s">"abc"</span>));</pre></div>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Console output:<br>
context: 123</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">context: null</p>
<p dir="auto">What actually happens?</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>
<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-release</li>
<li>Operating System version: MacOS</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">I see that in 2.7.0-RELEASE.Dubbo haven been supported protobuf,but I can't find any infomation in document.Please help me some examples how to use protobuf in dubbo, or show me some demos.Thanks</p>