webpro2 / javapns

Automatically exported from code.google.com/p/javapns
0 stars 0 forks source link

push send success but ios client can not receive notice on jdk7. #177

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. send push by javapns lib. return success (notification.isSuccessful()== 
true,and no exception)
2. ios client can not receive notice.this program work normal previous day.
3. step by step exclude os env, ip,network,dns change.
4. finally,confirm reason is jdk version change from 1.6.0_27 ->1.7.0_11.
5. back to 1.6. it work normal.

What version of the product are you using? On what operating system?

java 1.6.0_27 --> 1.7.0_11
os Centos 5.4
javapns: 2.2 and latest from svn. same problem.

Please provide any additional information below.

i try debug javapns.

debug info is same on java1.6 and java1.7.

only different is:

ResponsePacketReader

134: private static ResponsePacket readResponsePacketData(InputStream input) 
throws IOException {
135:        int command = input.read();

on java1.6, will block and wait data and read timeout mostly(30 second 
timeout), but on java1.7, it return immediately,and no data readed.

i try several machine,same problem.

attach is test program and debug log.

Original issue reported on code.google.com by joles...@gmail.com on 22 Apr 2013 at 7:09

Attachments:

GoogleCodeExporter commented 9 years ago
Since this issue is a year old, it was probably solved by the OP, but if not 
please try again using the latest build available in the Trunk.  Support for 
Java 7 was recently improved.

Original comment by sype...@gmail.com on 13 Oct 2014 at 2:58