notnoop / java-apns

Java Apple Push Notification Service Provider
notnoop.github.com/java-apns
BSD 3-Clause "New" or "Revised" License
1.79k stars 656 forks source link

Issues of integration feedbacktest #370

Open ZexinLi0w0 opened 4 years ago

ZexinLi0w0 commented 4 years ago

My target revision is 180a190. I try to build this revision by Maven 3.6.3 and JDK1.8.0_191 / JDK1.7.0_80 / JDK8u252-b09 / JDK7u272-b10, The build can pass the compile stage normally, but is stuck in the test phase (Running com.notnoop.apns.integration.FeedbackTest). I have tried to build 10 recent revisions but met the same problem.

The full log of FeedbackTest is shown below:

Running com.notnoop.apns.integration.FeedbackTest javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateExpiredException: NotAfter: Tue Nov 19 23:34:38 CST 2019 2020-07-31T01:43:41.452Z [main] DEBUG com.notnoop.apns.internal.Utilities - close 4085f7ff[SSL_NULL_WITH_NULL_NULL: Socket[addr=localhost/127.0.0.1,port=45357,localport=42880]] at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) 2020-07-31T01:43:41.452Z [main] DEBUG com.notnoop.apns.internal.Utilities - close Optional.absent() at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1904) 2020-07-31T01:43:41.452Z [main] WARN com.notnoop.apns.internal.ApnsFeedbackConnection - Failed to retrieve invalid devices at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:279) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:273) at sun.security.ssl.ServerHandshaker.clientCertificate(ServerHandshaker.java:1682) at sun.security.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:176) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:913) at sun.security.ssl.Handshaker.process_record(Handshaker.java:849) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1023) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332) at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:709) at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122) at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:167) at com.notnoop.apns.utils.ApnsServerStub$FeedbackRunner.run(ApnsServerStub.java:275) Caused by: java.security.cert.CertificateExpiredException: NotAfter: Tue Nov 19 23:34:38 CST 2019 at sun.security.x509.CertificateValidity.valid(CertificateValidity.java:273) at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:575) at sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.java:188) at sun.security.validator.Validator.validate(Validator.java:260) at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229) at sun.security.ssl.X509TrustManagerImpl.checkClientTrusted(X509TrustManagerImpl.java:120) at sun.security.ssl.ServerHandshaker.clientCertificate(ServerHandshaker.java:1664) ... 9 more java.lang.RuntimeException: java.net.SocketException: Broken pipe at com.notnoop.apns.internal.Utilities.parseFeedbackStreamRaw(Utilities.java:171) at com.notnoop.apns.internal.Utilities.parseFeedbackStream(Utilities.java:181) at com.notnoop.apns.internal.ApnsFeedbackConnection.getInactiveDevicesImpl(ApnsFeedbackConnection.java:114) at com.notnoop.apns.internal.ApnsFeedbackConnection.getInactiveDevices(ApnsFeedbackConnection.java:82) at com.notnoop.apns.internal.AbstractApnsService.getInactiveDevices(AbstractApnsService.java:132) at com.notnoop.apns.internal.ApnsServiceImpl.getInactiveDevices(ApnsServiceImpl.java:36) at com.notnoop.apns.internal.QueuedApnsService.getInactiveDevices(QueuedApnsService.java:119) at com.notnoop.apns.integration.FeedbackTest.simpleQueuedFeedback(FeedbackTest.java:134) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113) at java.net.SocketOutputStream.write(SocketOutputStream.java:159) at sun.security.ssl.OutputRecord.writeBuffer(OutputRecord.java:377) at sun.security.ssl.OutputRecord.write(OutputRecord.java:363) at sun.security.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:837) at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:808) at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:679) at sun.security.ssl.Handshaker.sendChangeCipherSpec(Handshaker.java:1011) at sun.security.ssl.ClientHandshaker.sendChangeCipherAndFinish(ClientHandshaker.java:1161) at sun.security.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:1073) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:341) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:913) at sun.security.ssl.Handshaker.process_record(Handshaker.java:849) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1023) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332) at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:889) at sun.security.ssl.AppInputStream.read(AppInputStream.java:102) at sun.security.ssl.AppInputStream.read(AppInputStream.java:69) at java.io.DataInputStream.readInt(DataInputStream.java:387) at com.notnoop.apns.internal.Utilities.parseFeedbackStreamRaw(Utilities.java:162) ... 38 more