weixin_39517289
weixin_39517289
2020-11-29 00:48

Unable to Build.

Log is like follwing


SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for io.moquette:moquette-netty-parser:jar:0.9-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.moquette:moquette-parent:0.9-SNAPSHOT, D:\Git\moquette\pom.xml, line 91, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 71, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for io.moquette:moquette-broker:jar:0.9-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.moquette:moquette-parent:0.9-SNAPSHOT, D:\Git\moquette\pom.xml, line 91, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 144, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for io.moquette:distribution:pom:0.9-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.moquette:moquette-parent:0.9-SNAPSHOT, D:\Git\moquette\pom.xml, line 91, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for io.moquette:moquette-embedded-test:jar:0.9-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.moquette:moquette-parent:0.9-SNAPSHOT, D:\Git\moquette\pom.xml, line 91, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for io.moquette:moquette-parent:pom:0.9-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 91, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Moquette MQTT
[INFO] Moquette - Netty Parser
[INFO] Moquette - broker
[INFO] Moquette - distribution
[INFO] Moquette - Embedded test
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Moquette MQTT 0.9-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ moquette-parent ---
[INFO] Installing D:\Git\moquette\pom.xml to C:\Users\Jae\.m2\repository\io\moquette\moquette-parent\0.9-SNAPSHOT\moquette-parent-0.9-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Moquette - Netty Parser 0.9-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ moquette-netty-parser ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\Git\moquette\netty_parser\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ moquette-netty-parser ---
[INFO] Compiling 54 source files to D:\Git\moquette\netty_parser\target\classes
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ moquette-netty-parser ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ moquette-netty-parser ---
[INFO] Compiling 20 source files to D:\Git\moquette\netty_parser\target\test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ moquette-netty-parser ---
[INFO] Surefire report directory: D:\Git\moquette\netty_parser\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running io.moquette.parser.netty.ConnAckDecoderTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.158 sec
Running io.moquette.parser.netty.ConnAckEncoderTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.101 sec
Running io.moquette.parser.netty.ConnectDecoderTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec
Running io.moquette.parser.netty.ConnectEncoderTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec
Running io.moquette.parser.netty.PubAckDecoderTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running io.moquette.parser.netty.PubAckEncoderTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running io.moquette.parser.netty.PublishDecoderTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
Running io.moquette.parser.netty.PublishEncoderTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
Running io.moquette.parser.netty.PubRelDecoderTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec
Running io.moquette.parser.netty.PubRelEncoderTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running io.moquette.parser.netty.SubAckDecoderTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running io.moquette.parser.netty.SubAckEncoderTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running io.moquette.parser.netty.SubscribeDecoderTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running io.moquette.parser.netty.SubscribeEncoderTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running io.moquette.parser.netty.UnsubscribeDecoderTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running io.moquette.parser.netty.UnsubscribeEncoderTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running io.moquette.parser.netty.UtilsTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec

Results :

Tests run: 64, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ moquette-netty-parser ---
[INFO] Building jar: D:\Git\moquette\netty_parser\target\moquette-netty-parser-0.9-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ moquette-netty-parser ---
[INFO] Installing D:\Git\moquette\netty_parser\target\moquette-netty-parser-0.9-SNAPSHOT.jar to C:\Users\Jae\.m2\repository\io\moquette\moquette-netty-parser\0.9-SNAPSHOT\moquette-netty-parser-0.9-SNAPSHOT.jar
[INFO] Installing D:\Git\moquette\netty_parser\pom.xml to C:\Users\Jae\.m2\repository\io\moquette\moquette-netty-parser\0.9-SNAPSHOT\moquette-netty-parser-0.9-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Moquette - broker 0.9-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ moquette-broker ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\Git\moquette\broker\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ moquette-broker ---
[INFO] Compiling 58 source files to D:\Git\moquette\broker\target\classes
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ moquette-broker ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 9 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ moquette-broker ---
[INFO] Compiling 32 source files to D:\Git\moquette\broker\target\test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ moquette-broker ---
[INFO] Surefire report directory: D:\Git\moquette\broker\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running io.moquette.server.config.ConfigurationParserTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.105 sec
Running io.moquette.server.ConfigurationClassLoaderTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.657 sec
Running io.moquette.server.ServerIntegrationEmbeddedPublishTest
16:30:27,016 [nioEventLoopGroup-21-1] ERROR MapDBSessionsStore inFlightAck 176  - Can't find the inFlight record for client <testclient>
16:30:34,038 [nioEventLoopGroup-29-1] ERROR MapDBSessionsStore inFlightAck 176  - Can't find the inFlight record for client <testclient>
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 22.224 sec
Running io.moquette.server.ServerIntegrationFuseTest
16:30:36,878 [nioEventLoopGroup-33-1] ERROR NettyMQTTHandler exceptionCaught 110  - Ugly error on networking
java.io.IOException: ���� ������ ���� ȣ��Ʈ�� ���� ������ ������ϴ�
    at sun.nio.ch.SocketDispatcher.read0(Native Method)
    at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
    at sun.nio.ch.IOUtil.read(IOUtil.java:192)
    at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
    at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:357)
    at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:898)
    at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:242)
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
    at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
    at java.lang.Thread.run(Thread.java:745)
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.514 sec
Running io.moquette.server.ServerIntegrationPahoTest
16:30:42,309 [nioEventLoopGroup-41-3] ERROR MapDBSessionsStore inFlightAck 176  - Can't find the inFlight record for client <testclient>
16:30:43,856 [nioEventLoopGroup-43-3] ERROR MapDBSessionsStore inFlightAck 176  - Can't find the inFlight record for client <testclient>
16:30:48,180 [nioEventLoopGroup-49-3] ERROR MapDBSessionsStore inFlightAck 176  - Can't find the inFlight record for client <testclient>


 SEVER REBOOTING 


Before waiting to receive 1 sec from clientForSubscribe1
Waiting to receive 1 sec from clientForSubscribe2
16:30:54,068 [nioEventLoopGroup-59-3] ERROR MapDBSessionsStore inFlightAck 176  - Can't find the inFlight record for client <testclient>
16:30:59,638 [nioEventLoopGroup-67-2] ERROR MapDBSessionsStore inFlightAck 176  - Can't find the inFlight record for client <testclient>
16:31:04,641 [nioEventLoopGroup-75-3] ERROR MapDBSessionsStore inFlightAck 176  - Can't find the inFlight record for client <testclient>
16:31:04,646 [nioEventLoopGroup-75-3] ERROR MapDBSessionsStore inFlightAck 176  - Can't find the inFlight record for client <testclient>
16:31:08,844 [nioEventLoopGroup-81-3] ERROR MapDBSessionsStore inFlightAck 176  - Can't find the inFlight record for client <testclient>
16:31:09,373 [nioEventLoopGroup-81-5] ERROR MapDBSessionsStore inFlightAck 176  - Can't find the inFlight record for client <testclient>
Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 34.098 sec
Running io.moquette.server.ServerIntegrationQoSValidationTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.778 sec
Running io.moquette.server.ServerIntegrationSSLClientAuthTest
16:31:25,318 [nioEventLoopGroup-103-1] ERROR NettyMQTTHandler exceptionCaught 110  - Ugly error on networking
io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
    at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:391)
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:244)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
    at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
    at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:266)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
    at io.moquette.server.netty.metrics.BytesMetricsHandler.channelRead(BytesMetricsHandler.java:47)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
    at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
    at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
    at java.lang.Thread.run(Thread.java:745)
Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
    at sun.security.ssl.Handshaker.checkThrown(Handshaker.java:1431)
    at sun.security.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:535)
    at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:813)
    at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:781)
    at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
    at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1138)
    at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1028)
    at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:968)
    at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:360)
    ... 21 more
Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
    at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1728)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:304)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
    at sun.security.ssl.ServerHandshaker.clientCertificate(ServerHandshaker.java:1882)
    at sun.security.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:230)
    at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
    at sun.security.ssl.Handshaker$1.run(Handshaker.java:919)
    at sun.security.ssl.Handshaker$1.run(Handshaker.java:916)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.security.ssl.Handshaker$DelegatedTask.run(Handshaker.java:1369)
    at io.netty.handler.ssl.SslHandler.runDelegatedTasks(SslHandler.java:1164)
    at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1067)
    ... 23 more
Caused by: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed
    at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:352)
    at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:260)
    at sun.security.validator.Validator.validate(Validator.java:260)
    at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
    at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:279)
    at sun.security.ssl.X509TrustManagerImpl.checkClientTrusted(X509TrustManagerImpl.java:130)
    at sun.security.ssl.ServerHandshaker.clientCertificate(ServerHandshaker.java:1869)
    ... 31 more
Caused by: java.security.cert.CertPathValidatorException: signature check failed
    at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:129)
    at sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:219)
    at sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:140)
    at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:79)
    at java.security.cert.CertPathValidator.validate(CertPathValidator.java:292)
    at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:347)
    ... 37 more
Caused by: java.security.SignatureException: Signature does not match.
    at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:449)
    at sun.security.provider.certpath.BasicChecker.verifySignature(BasicChecker.java:166)
    at sun.security.provider.certpath.BasicChecker.check(BasicChecker.java:147)
    at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:119)
    ... 42 more
16:31:25,353 [nioEventLoopGroup-103-2] ERROR NettyMQTTHandler exceptionCaught 110  - Ugly error on networking
io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
    at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:391)
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:244)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
    at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
    at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:266)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
    at io.moquette.server.netty.metrics.BytesMetricsHandler.channelRead(BytesMetricsHandler.java:47)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
    at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
    at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
    at java.lang.Thread.run(Thread.java:745)
Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
    at sun.security.ssl.Handshaker.checkThrown(Handshaker.java:1431)
    at sun.security.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:535)
    at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:813)
    at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:781)
    at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
    at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1138)
    at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1028)
    at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:968)
    at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:360)
    ... 21 more
Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
    at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1728)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:304)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
    at sun.security.ssl.ServerHandshaker.clientCertificate(ServerHandshaker.java:1882)
    at sun.security.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:230)
    at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
    at sun.security.ssl.Handshaker$1.run(Handshaker.java:919)
    at sun.security.ssl.Handshaker$1.run(Handshaker.java:916)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.security.ssl.Handshaker$DelegatedTask.run(Handshaker.java:1369)
    at io.netty.handler.ssl.SslHandler.runDelegatedTasks(SslHandler.java:1164)
    at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1067)
    ... 23 more
Caused by: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed
    at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:352)
    at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:260)
    at sun.security.validator.Validator.validate(Validator.java:260)
    at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
    at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:279)
    at sun.security.ssl.X509TrustManagerImpl.checkClientTrusted(X509TrustManagerImpl.java:130)
    at sun.security.ssl.ServerHandshaker.clientCertificate(ServerHandshaker.java:1869)
    ... 31 more
Caused by: java.security.cert.CertPathValidatorException: signature check failed
    at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:129)
    at sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:219)
    at sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:140)
    at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:79)
    at java.security.cert.CertPathValidator.validate(CertPathValidator.java:292)
    at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:347)
    ... 37 more
Caused by: java.security.SignatureException: Signature does not match.
    at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:449)
    at sun.security.provider.certpath.BasicChecker.verifySignature(BasicChecker.java:166)
    at sun.security.provider.certpath.BasicChecker.check(BasicChecker.java:147)
    at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:119)
    ... 42 more
MqttException (0) - java.net.SocketException: Software caused connection abort: socket write error
    at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:38)
    at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:604)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.SocketException: Software caused connection abort: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
    at sun.security.ssl.OutputRecord.writeBuffer(OutputRecord.java:431)
    at sun.security.ssl.OutputRecord.write(OutputRecord.java:417)
    at sun.security.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:876)
    at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:847)
    at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:717)
    at sun.security.ssl.Handshaker.sendChangeCipherSpec(Handshaker.java:1077)
    at sun.security.ssl.ClientHandshaker.sendChangeCipherAndFinish(ClientHandshaker.java:1210)
    at sun.security.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:1122)
    at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:344)
    at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
    at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
    at org.eclipse.paho.client.mqttv3.internal.SSLNetworkModule.start(SSLNetworkModule.java:89)
    at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:590)
    ... 1 more
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.055 sec
Running io.moquette.server.ServerIntegrationSSLTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.919 sec
Running io.moquette.server.ServerIntegrationWebSocketTest
Got connect: WebSocketSession[websocket=JettyAnnotatedEventDriver[io.moquette.server.MQTTWebSocket],behavior=CLIENT,connection=WebSocketClientConnection{IDLE}{f=Flusher[queueSize=0,aggregateSize=0,failure=null],g=Generator[CLIENT,validating],p=Parser[ExtensionStack,s=START,c=0,len=0,f=null,p=WebSocketPolicy[behavior=CLIENT,maxTextMessageSize=65536,maxTextMessageBufferSize=32768,maxBinaryMessageSize=65536,maxBinaryMessageBufferSize=32768,asyncWriteTimeout=60000,idleTimeout=300000,inputBufferSize=4096]]},remote=WebSocketRemoteEndpoint[batching=true],incoming=JettyAnnotatedEventDriver[io.moquette.server.MQTTWebSocket],outgoing=ExtensionStack[queueSize=0,extensions=[],incoming=org.eclipse.jetty.websocket.common.WebSocketSession,outgoing=org.eclipse.jetty.websocket.client.io.WebSocketClientConnection]]
Connection closed: 1001 - Shutdown
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.015 sec
Running io.moquette.server.ServerRestartIntegrationTest
Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 2.847 sec <<< FAILURE!
Running io.moquette.spi.impl.BrokerInterceptorTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.505 sec
Running io.moquette.spi.impl.ProtocolProcessorTest
16:31:41,274 [main] WARN  ProtocolProcessor processUnsubscribe 662  - UNSUBSCRIBE found an invalid topic filter  for clientID <fake_123>
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.779 sec
Running io.moquette.spi.impl.ProtocolProcessor_CONNECT_Test
16:31:42,181 [main] WARN  ProtocolProcessor processConnect 145  - processConnect sent bad proto ConnAck
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.914 sec
Running io.moquette.spi.impl.security.ACLFileParserTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running io.moquette.spi.impl.security.AuthorizationsCollectorTest
Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running io.moquette.spi.impl.security.FileAuthenticatorTest
16:31:45,813 [main] WARN  FileAuthenticator <init> 53  - Bad file reference \ is a directory
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
Running io.moquette.spi.impl.subscriptions.SubscriptionsStoreTest

client
    test
        b
            ClientTopicCouple{topicFilter='client/test/b', clientID='client1'}
            ClientTopicCouple{topicFilter='client/test/b', clientID='client2'}

Tests run: 30, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec
Running io.moquette.spi.persistence.MapDBPersistentStoreTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.285 sec

Results :

Failed tests:   checkDontPublishInactiveClientsAfterServerRestart(io.moquette.server.ServerRestartIntegrationTest)
  testClientDoesntRemainSubscribedAfterASubscriptionAndServerRestart(io.moquette.server.ServerRestartIntegrationTest)
  checkRestartCleanSubscriptionTree(io.moquette.server.ServerRestartIntegrationTest)

Tests run: 148, Failures: 3, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Moquette MQTT ..................................... SUCCESS [0.244s]
[INFO] Moquette - Netty Parser ........................... SUCCESS [3.172s]
[INFO] Moquette - broker ................................. FAILURE [1:40.870s]
[INFO] Moquette - distribution ........................... SKIPPED
[INFO] Moquette - Embedded test .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:44.393s
[INFO] Finished at: Mon Mar 14 16:31:49 KST 2016
[INFO] Final Memory: 36M/266M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project moquette-broker: There are test failures.
[ERROR] 
[ERROR] Please refer to D:\Git\moquette\broker\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :moquette-broker
`
</goals></init></fake_123></testclient></testclient></testclient></testclient></testclient></testclient></testclient></testclient></testclient></testclient></testclient>

该提问来源于开源项目:moquette-io/moquette

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

12条回答