SMGPAPI SOCKET链接异常 急急

28 views
Skip to first unread message

zila...@163.com

unread,
Apr 1, 2014, 3:52:16 AM4/1/14
to smg...@googlegroups.com
我使用smgpapi 进行测试链接
//Client("服务器ip地址","服务器端口号",LoginMode,"账号","密码","企业代码",显示模式)
Client client = new Client("189.189.189.189", 8890, 2, "account","password", "12100001", 0);
Result result = client.Login();
System.out.println("ErrorCode:"+result.ErrorCode);
System.out.println("ErrorDescription:"+result.ErrorDescription);
总是报链接异常
Status:-2
MsgID:Can not creat socket!
Exception in thread "main" java.lang.NullPointerException
	at cn.com.zjtelecom.smgp.connect.PConnect.SendBuf(PConnect.java:869)
	at cn.com.zjtelecom.smgp.connect.PConnect.LogOut(PConnect.java:386)
	at cn.com.zjtelecom.smgp.Client.Close(Client.java:42)
	at Sample.SendSms.main(SendSms.java:49)
急求解决
应该不是端口问题

do well

unread,
Apr 1, 2014, 8:25:38 AM4/1/14
to smg...@googlegroups.com
对方的ip和端口号通吗?你直接telnet端口看下。


--
You received this message because you are subscribed to the Google Groups "smgp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smgpapi+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
林路(Dowell)
-----------------------------------------------------

zila...@163.com

unread,
Apr 10, 2014, 5:06:44 AM4/10/14
to smg...@googlegroups.com


在 2014年4月1日星期二UTC+8下午3时52分16秒,zila...@163.com写道:
Reply all
Reply to author
Forward
0 new messages