<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.7.4.1</li>
<li>Operating System version: CentOS 7.6</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>kill the process</li>
<li>see the following exception in the logs</li>
</ol>
<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="2019-11-11 10:12:30.809 ERROR 5810 --- [NettyServerWorker-9-2] i.n.u.c.D.rejectedExecution              : Failed to submit a listener notification task. Event loop shut down?

java.lang.NoClassDefFoundError: io/netty/util/concurrent/GlobalEventExecutor$2
        at io.netty.util.concurrent.GlobalEventExecutor.startThread(GlobalEventExecutor.java:227) ~[netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at io.netty.util.concurrent.GlobalEventExecutor.execute(GlobalEventExecutor.java:215) ~[netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at io.netty.util.concurrent.DefaultPromise.safeExecute(DefaultPromise.java:841) [netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:498) [netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:615) [netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at io.netty.util.concurrent.DefaultPromise.setSuccess0(DefaultPromise.java:604) [netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:96) [netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1089) [netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at java.lang.Thread.run(Thread.java:748) [na:1.8.0_201]
Caused by: java.lang.ClassNotFoundException: io.netty.util.concurrent.GlobalEventExecutor$2
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[na:1.8.0_201]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_201]
        at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:93) ~[data-service.jar:0.0.1]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_201]
        ... 11 common frames omitted

2019-11-11 10:12:30.810  WARN 5810 --- [Thread-6] o.apache.dubbo.config.DubboShutdownHook  :  [DUBBO] Invalid value for MonthOfYear (valid values 1 - 12): 0, dubbo version: 2.7.4.1, current host: 10.31.120.92

java.time.DateTimeException: Invalid value for MonthOfYear (valid values 1 - 12): 0
        at java.time.temporal.ValueRange.checkValidValue(ValueRange.java:311) ~[na:1.8.0_201]
        at java.time.temporal.ChronoField.checkValidValue(ChronoField.java:703) ~[na:1.8.0_201]
        at java.time.LocalDate.of(LocalDate.java:267) ~[na:1.8.0_201]
        at java.time.LocalDateTime.of(LocalDateTime.java:336) ~[na:1.8.0_201]
        at org.springframework.boot.loader.jar.CentralDirectoryFileHeader.decodeMsDosFormatDateTime(CentralDirectoryFileHeader.java:127) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.jar.CentralDirectoryFileHeader.getTime(CentralDirectoryFileHeader.java:116) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.jar.JarEntry.&lt;init&gt;(JarEntry.java:58) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:316) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:300) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.jar.JarFileEntries.doGetEntry(JarFileEntries.java:288) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:243) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:203) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.jar.JarFile.getEntry(JarFile.java:225) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.LaunchedURLClassLoader.lambda$definePackage$0(LaunchedURLClassLoader.java:138) ~[data-service.jar:0.0.1]
        at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_201]
        at org.springframework.boot.loader.LaunchedURLClassLoader.definePackage(LaunchedURLClassLoader.java:130) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.LaunchedURLClassLoader.definePackageIfNecessary(LaunchedURLClassLoader.java:112) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:81) ~[data-service.jar:0.0.1]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_201]
        at org.apache.dubbo.qos.protocol.QosProtocolWrapper.stopServer(QosProtocolWrapper.java:112) ~[dubbo-2.7.4.1.jar!/:2.7.4.1]
        at org.apache.dubbo.qos.protocol.QosProtocolWrapper.destroy(QosProtocolWrapper.java:79) ~[dubbo-2.7.4.1.jar!/:2.7.4.1]
        at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.destroy(ProtocolFilterWrapper.java:135) ~[dubbo-2.7.4.1.jar!/:2.7.4.1]
        at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.destroy(ProtocolListenerWrapper.java:79) ~[dubbo-2.7.4.1.jar!/:2.7.4.1]
        at org.apache.dubbo.config.DubboShutdownHook.destroyProtocols(DubboShutdownHook.java:103) [dubbo-2.7.4.1.jar!/:2.7.4.1]
        at org.apache.dubbo.config.DubboShutdownHook.doDestroy(DubboShutdownHook.java:91) [dubbo-2.7.4.1.jar!/:2.7.4.1]
        at org.apache.dubbo.config.spring.extension.SpringExtensionFactory$ShutdownHookListener.onApplicationEvent(SpringExtensionFactory.java:114) [dubbo-2.7.4.1.jar!/:2.7.4.1]
        at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]
        at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:402) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1009) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:945) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]"><pre class="notranslate"><code class="notranslate">2019-11-11 10:12:30.809 ERROR 5810 --- [NettyServerWorker-9-2] i.n.u.c.D.rejectedExecution              : Failed to submit a listener notification task. Event loop shut down?

java.lang.NoClassDefFoundError: io/netty/util/concurrent/GlobalEventExecutor$2
        at io.netty.util.concurrent.GlobalEventExecutor.startThread(GlobalEventExecutor.java:227) ~[netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at io.netty.util.concurrent.GlobalEventExecutor.execute(GlobalEventExecutor.java:215) ~[netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at io.netty.util.concurrent.DefaultPromise.safeExecute(DefaultPromise.java:841) [netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:498) [netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:615) [netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at io.netty.util.concurrent.DefaultPromise.setSuccess0(DefaultPromise.java:604) [netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:96) [netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1089) [netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-all-4.1.42.Final.jar!/:4.1.42.Final]
        at java.lang.Thread.run(Thread.java:748) [na:1.8.0_201]
Caused by: java.lang.ClassNotFoundException: io.netty.util.concurrent.GlobalEventExecutor$2
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[na:1.8.0_201]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_201]
        at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:93) ~[data-service.jar:0.0.1]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_201]
        ... 11 common frames omitted

2019-11-11 10:12:30.810  WARN 5810 --- [Thread-6] o.apache.dubbo.config.DubboShutdownHook  :  [DUBBO] Invalid value for MonthOfYear (valid values 1 - 12): 0, dubbo version: 2.7.4.1, current host: 10.31.120.92

java.time.DateTimeException: Invalid value for MonthOfYear (valid values 1 - 12): 0
        at java.time.temporal.ValueRange.checkValidValue(ValueRange.java:311) ~[na:1.8.0_201]
        at java.time.temporal.ChronoField.checkValidValue(ChronoField.java:703) ~[na:1.8.0_201]
        at java.time.LocalDate.of(LocalDate.java:267) ~[na:1.8.0_201]
        at java.time.LocalDateTime.of(LocalDateTime.java:336) ~[na:1.8.0_201]
        at org.springframework.boot.loader.jar.CentralDirectoryFileHeader.decodeMsDosFormatDateTime(CentralDirectoryFileHeader.java:127) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.jar.CentralDirectoryFileHeader.getTime(CentralDirectoryFileHeader.java:116) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.jar.JarEntry.&lt;init&gt;(JarEntry.java:58) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:316) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:300) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.jar.JarFileEntries.doGetEntry(JarFileEntries.java:288) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:243) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:203) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.jar.JarFile.getEntry(JarFile.java:225) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.LaunchedURLClassLoader.lambda$definePackage$0(LaunchedURLClassLoader.java:138) ~[data-service.jar:0.0.1]
        at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_201]
        at org.springframework.boot.loader.LaunchedURLClassLoader.definePackage(LaunchedURLClassLoader.java:130) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.LaunchedURLClassLoader.definePackageIfNecessary(LaunchedURLClassLoader.java:112) ~[data-service.jar:0.0.1]
        at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:81) ~[data-service.jar:0.0.1]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_201]
        at org.apache.dubbo.qos.protocol.QosProtocolWrapper.stopServer(QosProtocolWrapper.java:112) ~[dubbo-2.7.4.1.jar!/:2.7.4.1]
        at org.apache.dubbo.qos.protocol.QosProtocolWrapper.destroy(QosProtocolWrapper.java:79) ~[dubbo-2.7.4.1.jar!/:2.7.4.1]
        at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.destroy(ProtocolFilterWrapper.java:135) ~[dubbo-2.7.4.1.jar!/:2.7.4.1]
        at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.destroy(ProtocolListenerWrapper.java:79) ~[dubbo-2.7.4.1.jar!/:2.7.4.1]
        at org.apache.dubbo.config.DubboShutdownHook.destroyProtocols(DubboShutdownHook.java:103) [dubbo-2.7.4.1.jar!/:2.7.4.1]
        at org.apache.dubbo.config.DubboShutdownHook.doDestroy(DubboShutdownHook.java:91) [dubbo-2.7.4.1.jar!/:2.7.4.1]
        at org.apache.dubbo.config.spring.extension.SpringExtensionFactory$ShutdownHookListener.onApplicationEvent(SpringExtensionFactory.java:114) [dubbo-2.7.4.1.jar!/:2.7.4.1]
        at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]
        at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:402) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1009) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:945) [spring-context-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]
</code></pre></div>
<ul dir="auto">
<li>[X ] 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>[X ] 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 &amp; master</li>
<li>Operating System version: linux</li>
<li>Java version: JDK8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>update <a href="https://github.com/apache/dubbo/blob/master/dubbo-config/dubbo-config-spring/src/test/resources/org/apache/dubbo/config/spring/demo-provider.xml">https://github.com/apache/dubbo/blob/master/dubbo-config/dubbo-config-spring/src/test/resources/org/apache/dubbo/config/spring/demo-provider.xml</a><br>
from<br>
&lt;dubbo:protocol name="${dubbo.protocol.name}" port="${dubbo.protocol.port}"/&gt;<br>
to<br>
&lt;dubbo:protocol name="${dubbo.protocol.name}" port="${dubbo.protocol.port:8080}"/&gt;</li>
<li>run testProviderXml() in <a href="https://github.com/apache/dubbo/blob/master/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/schema/DubboNamespaceHandlerTest.java">https://github.com/apache/dubbo/blob/master/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/schema/DubboNamespaceHandlerTest.java</a></li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">UT should pass</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">UT fail as flow:<br>
java.lang.AssertionError:<br>
Expected: is &lt;20813&gt;<br>
but: was &lt;8080&gt;<br>
Expected :is &lt;20813&gt;<br>
Actual   :&lt;8080&gt;</p>
<p dir="auto">This issue may related with previous issue or change:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="603814574" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/6035" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/6035/hovercard" href="https://github.com/apache/dubbo/issues/6035">#6035</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="608102933" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/6079" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/6079/hovercard" href="https://github.com/apache/dubbo/pull/6079">#6079</a></p>