<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: v2.7.1</li>
<li>Operating System version: OSX 10.14.4</li>
<li>Java version: 1.8.0_202</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    @Test
    public void testSerializeTimestamp() throws IOException, ClassNotFoundException {
        Timestamp originTime = new Timestamp(System.currentTimeMillis());
        this.protostuffObjectOutput.writeObject(originTime);
        this.flushToInput();

        Timestamp serializedTime = protostuffObjectInput.readObject(Timestamp.class);
        assertThat(serializedTime, is(originTime));
    }

// output
java.lang.AssertionError: 
Expected: is &lt;2019-04-23 19:01:37.31&gt;
     but: was &lt;1970-01-01 08:00:00.31&gt;
Expected :is &lt;2019-04-23 19:01:37.31&gt;
Actual   :&lt;1970-01-01 08:00:00.31&gt;"><pre class="notranslate">    <span class="pl-c1">@</span><span class="pl-c1">Test</span>
    <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-s1">testSerializeTimestamp</span>() <span class="pl-k">throws</span> <span class="pl-smi">IOException</span>, <span class="pl-s1">ClassNotFoundException</span> {
        <span class="pl-smi">Timestamp</span> <span class="pl-s1">originTime</span> = <span class="pl-k">new</span> <span class="pl-smi">Timestamp</span>(<span class="pl-smi">System</span>.<span class="pl-en">currentTimeMillis</span>());
        <span class="pl-smi">this</span>.<span class="pl-s1">protostuffObjectOutput</span>.<span class="pl-en">writeObject</span>(<span class="pl-s1">originTime</span>);
        <span class="pl-smi">this</span>.<span class="pl-en">flushToInput</span>();

        <span class="pl-smi">Timestamp</span> <span class="pl-s1">serializedTime</span> = <span class="pl-s1">protostuffObjectInput</span>.<span class="pl-en">readObject</span>(<span class="pl-smi">Timestamp</span>.<span class="pl-k">class</span>);
        <span class="pl-en">assertThat</span>(<span class="pl-s1">serializedTime</span>, <span class="pl-en">is</span>(<span class="pl-s1">originTime</span>));
    }

<span class="pl-c">// output</span>
<span class="pl-smi">java</span>.<span class="pl-smi">lang</span>.<span class="pl-smi">AssertionError</span>: 
<span class="pl-s1">Expected</span>: <span class="pl-s1">is</span> &lt;<span class="pl-c1">2019</span>-<span class="pl-c1">04</span>-<span class="pl-c1">23</span> <span class="pl-c1">19</span>:<span class="pl-c1">01</span>:<span class="pl-c1">37.31</span>&gt;
     <span class="pl-s1">but</span>: <span class="pl-s1">was</span> &lt;<span class="pl-c1">1970</span>-<span class="pl-c1">01</span>-<span class="pl-c1">01</span> <span class="pl-c1">08</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00.31</span>&gt;
<span class="pl-s1">Expected</span> :<span class="pl-s1">is</span> &lt;<span class="pl-c1">2019</span>-<span class="pl-c1">04</span>-<span class="pl-c1">23</span> <span class="pl-c1">19</span>:<span class="pl-c1">01</span>:<span class="pl-c1">37.31</span>&gt;
<span class="pl-s1">Actual</span>   :&lt;<span class="pl-c1">1970</span>-<span class="pl-c1">01</span>-<span class="pl-c1">01</span> <span class="pl-c1">08</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00.31</span>&gt;</pre></div>
<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/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/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.7</li>
<li>Operating System version:windows 7</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li></li>
</ol>
<p dir="auto">&lt;dubbo:reference id="demoService" interface="com.demo.service.DemoService"<br>
protocol="hessian"&gt;<br>
&lt;dubbo:method name="orderData" async="true"/&gt;<br>
&lt;/dubbo:reference&gt;<br>
2.<br>
demoService.orderData(paramsMap);<br>
Future&lt;List&gt; future = RpcContext.getContext().getFuture();<br>
List list = future.get();<br>
3. future is null</p>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Can get the result.</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">future.get() throw null pointer exception，Because the future object is null.</p>