[兄弟们,帮忙顶一下,来者有分]CMPP的错误
null
java.io.EOFException at java.io.DataInputStream.readByte(DataInputStream.java:243)
at com.commerceware.cmpp.CMPP.readResPack(CMPP.java:448)
at test.readPa(test.java:161)
at test.main(test.java:115)
have a exception
null
java.io.
EOFException at java.io.DataInputStream.readInt(DataInputStream.java:358)
at com.commerceware.cmpp.CMPP.readHead(CMPP.java:158)
at com.commerceware.cmpp.CMPP.readResPack(CMPP.java:421)
at test.readPa(test.java:161)
at test.main(test.java:134)
have a exception
null
java.io.EOFException
at java.io.DataInputStream.readInt(DataInputStream.java:358)
at com.commerceware.cmpp.CMPP.readHead(CMPP.java:158)
at com.commerceware.cmpp.CMPP.readResPack(CMPP.java:421)
at test.readPa(test.java:161)
at test.main(test.java:137)
have a exception
null
java.io.EOFException
at java.io.DataInputStream.readInt(DataInputStream.java:358)
at com.commerceware.cmpp.CMPP.readHead(CMPP.java:158)
at com.commerceware.cmpp.CMPP.readResPack(CMPP.java:421)
at test.readPa(test.java:161)
at test.main(test.java:140)
have a exception
程序我贴出来了,大伙帮忙看下
try{
p.cmpp_connect_to_ismg( "211.***.***.*** ",8855,con);
System.out.println( "Conneted "); p.cmpp_login(con, "****** ", "****** ",(byte)1,0x12,(int)System.currentTimeMillis());
readPa(p,con);
sub.set_icpid(icp_id );
//sub.set_svctype(svc_type);
sub.set_feetype(fee_type );
sub.set_infofee(info_fee);
sub.set_protoid(proto_id);
sub.set_msgmode(msg_mode );
sub.set_priority(priority );
sub.set_validate(validate);
sub.set_schedule(schedule );
//sub.set_feeutype(fee_utype);
//sub.set_feeuser(fee_user);
sub.set_srcaddr(src_addr );
sub.set_dstaddr(dst_addr );
sub.set_ducount(du_count);
sub.set_msg(data_coding,12,short_msg );
p.cmpp_submit(con,sub);
readPa(p,con);
p.cmpp_active_test(con);
readPa(p,con);
p.cmpp_logout(con);
readPa(p,con);
System.in.read();
}catch(Exception e)
{
System.out.println(e.getMessage());