<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.5.8</li>
<li>Operating System version: win10</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Step to reproduce this issue</h3>
<ol dir="auto">
<li>Write a service to upload file, such as pdf document...</li>
<li>interface maybe like this:<br>
Result parseFile(String filename,InputStream inputStream);</li>
<li>Use a specified document test the interface.</li>
</ol>
<blockquote>
<p dir="auto">reproduce this issue maybe need a specified pdf document.</p>
</blockquote>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">the content of pdf documents.</h3>
<p dir="auto">What do you expected from the above steps？</p>
<h3 dir="auto">null, and exceptions below.</h3>
<p dir="auto">What is actually happen?</p>
<h3 dir="auto">In fact, the first request throw a SocketTimeoutException, see below, but latter requests reponse correctly. So I guess that is because of initializaton probleam. <em>Then I find when I set timeout=2000 on &lt;dubbo:reference&gt;, everything works rightly.</em> It's very confusing to me. According to exceptions thrown by provider, that is, the consumer doesn't send input stream correcly, and it throws a timeout exception immediately, so provider cannot get input stream, it throws a org.apache.tika.exception.ZeroByteFileException.</h3>
<p dir="auto">If there is an exception, please attach the exception trace:</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.7.4.1</li>
<li>Operating System version: ANY</li>
<li>Java version: ANY(8 or above)</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>Apollo config center not work via XML configuration</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# vm parameter
-Dapp.id=ABC"><pre class="notranslate"><code class="notranslate"># vm parameter
-Dapp.id=ABC
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;!-- configuration xml --&gt;
&lt;dubbo:config-center protocol=&quot;apollo&quot; address=&quot;127.0.0.1:8080&quot; namespace=&quot;dubbo&quot;&gt;
    &lt;dubbo:parameter key=&quot;env&quot; value=&quot;DEV&quot;/&gt;
&lt;/dubbo:config-center&gt;"><pre class="notranslate"><code class="notranslate">&lt;!-- configuration xml --&gt;
&lt;dubbo:config-center protocol="apollo" address="127.0.0.1:8080" namespace="dubbo"&gt;
    &lt;dubbo:parameter key="env" value="DEV"/&gt;
&lt;/dubbo:config-center&gt;
</code></pre></div>
<ol start="2" dir="auto">
<li>And, this configuration is not friendly</li>
</ol>
<h3 dir="auto">Objective</h3>
<ol dir="auto">
<li>Apollo config center initialized via XML like</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;dubbo:config-center protocol=&quot;apollo&quot; address=&quot;127.0.0.1:8080&quot; namespace=&quot;dubbo&quot;&gt;
    &lt;dubbo:parameter key=&quot;env&quot; value=&quot;DEV&quot;/&gt;
    &lt;dubbo:parameter key=&quot;app.id&quot; value=&quot;ABC&quot;/&gt;
&lt;/dubbo:config-center&gt;"><pre class="notranslate"><code class="notranslate">&lt;dubbo:config-center protocol="apollo" address="127.0.0.1:8080" namespace="dubbo"&gt;
    &lt;dubbo:parameter key="env" value="DEV"/&gt;
    &lt;dubbo:parameter key="app.id" value="ABC"/&gt;
&lt;/dubbo:config-center&gt;
</code></pre></div>
<ol start="2" dir="auto">
<li>Or var XML with System Properties: "-Dapp.id=ABC -Denv=DEV -Dapollo.meta=<a href="http://127.0.0.1:8080" rel="nofollow">http://127.0.0.1:8080</a>"</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;dubbo:config-center protocol=&quot;apollo&quot; namespace=&quot;dubbo&quot;/&gt;"><pre class="notranslate"><code class="notranslate">&lt;dubbo:config-center protocol="apollo" namespace="dubbo"/&gt;
</code></pre></div>